Skip to content

Commit

Permalink
Merge pull request #34 from hellcp/master
Browse files Browse the repository at this point in the history
Require yast2 on buildtime
  • Loading branch information
lslezak committed Nov 28, 2018
2 parents 83a61cc + db1983f commit 3c8145d
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
5 changes: 5 additions & 0 deletions package/yast2-control-center.changes
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Nov 28 12:56:19 UTC 2018 - Stasiek Michalski <hellcp@mailbox.org>

- Use yast-control-center icon for desktop files (boo#1109310)

-------------------------------------------------------------------
Sun Nov 25 01:53:03 UTC 2018 - Stasiek Michalski <hellcp@mailbox.org>

Expand Down
4 changes: 1 addition & 3 deletions package/yast2-control-center.spec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@


Name: yast2-control-center
Version: 4.1.3
Version: 4.1.4
Release: 0

BuildRoot: %{_tmppath}/%{name}-%{version}-build
Expand All @@ -36,8 +36,6 @@ BuildRequires: pkgconfig(Qt5Widgets)
Obsoletes: yast2-control-center-gnome < %{version}
Provides: yast2-control-center-gnome = %{version}

Requires: yast2

%if 0%{?force_gcc_46}
BuildRequires: gcc46
BuildRequires: gcc46-c++
Expand Down
2 changes: 1 addition & 1 deletion src/YaST-systemsettings.desktop
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Desktop Entry]
Type=Service
Name=YaST
Icon=yast
Icon=yast-control-center
GenericName=Administrator Settings
Exec=kdesu -c /sbin/yast2
X-KDE-System-Settings-Parent-Category=system-administration
Expand Down
2 changes: 1 addition & 1 deletion src/YaST.desktop
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Type=Application
Categories=Settings;System;
Name=YaST
Icon=yast
Icon=yast-control-center
GenericName=Control Center
Exec=/usr/bin/xdg-su -c /sbin/yast2
Encoding=UTF-8
Expand Down
2 changes: 1 addition & 1 deletion src/kde/kcmyast.desktop
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[Desktop Entry]
Exec=kcmshell4 kcm_yast
Icon=yast
Icon=yast-control-center
Type=Service
X-DocPath=kcontrol/emoticons/index.html

Expand Down
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -84,13 +84,13 @@ int main(int argc, char **argv)

mainWin.setFullScreen ( fullscreen );
mainWin.setNoBorder( noborder );
if (QIcon::hasThemeIcon("yast"))
if (QIcon::hasThemeIcon("yast-control-center"))
{
mainWin.setWindowIcon( QIcon::fromTheme( "yast" ) );
mainWin.setWindowIcon( QIcon::fromTheme( "yast-control-center" ) );
}
else
{
mainWin.setWindowIcon( QIcon::fromTheme( "yast-control-center" ) );
mainWin.setWindowIcon( QIcon::fromTheme( "yast" ) );
}

if ( fullscreen )
Expand Down

0 comments on commit 3c8145d

Please sign in to comment.