Created
September 18, 2014 14:03
-
-
Save nachanon/94933516e0a3a8f43df9 to your computer and use it in GitHub Desktop.
Patch for MATE desktop 1.8.1 to display a correct icon for `mate-about` program
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
From: Nachanon Vetjasit <nachanon@users.noreply.github.com> | |
Subject: Change mate-about's program icon to official MATE desktop icon | |
Bug: https://github.com/mate-desktop/mate-desktop/issues/132 | |
--- a/mate-about/mate-about.c | |
+++ b/mate-about/mate-about.c | |
@@ -72,16 +72,16 @@ | |
{ | |
mate_about_dialog = (GtkAboutDialog*) gtk_about_dialog_new(); | |
- gtk_window_set_default_icon_name(desktop_icon); | |
- | |
GtkIconTheme* icon_theme = gtk_icon_theme_get_default(); | |
if (gtk_icon_theme_has_icon(icon_theme, icon)) | |
{ | |
+ gtk_window_set_default_icon_name(icon); | |
gtk_about_dialog_set_logo_icon_name(mate_about_dialog, icon); | |
} | |
else | |
{ | |
+ gtk_window_set_default_icon_name(desktop_icon); | |
gtk_about_dialog_set_logo_icon_name(mate_about_dialog, desktop_icon); | |
} | |
--- a/mate-about/mate-about.desktop.in.in | |
+++ b/mate-about/mate-about.desktop.in.in | |
@@ -2,7 +2,7 @@ | |
_Name=About MATE | |
_Comment=Learn more about MATE | |
Exec=mate-about | |
-Icon=desktop | |
+Icon=mate | |
Terminal=false | |
Type=Application | |
Categories=GTK;Core;Utility; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment