summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonsta <[email protected]>2018-03-17 20:24:56 +0300
committermonsta <[email protected]>2018-03-17 20:28:17 +0300
commit85f1fb713fd2fea2d46e8a42404f09de4b8769c2 (patch)
tree9c04a0c5458df125fdc0eedf3af57d49e55026a0
parentb03b7935bc0f25abfd97d2ad93f2255bbd8c0256 (diff)
downloadmate-power-manager-85f1fb713fd2fea2d46e8a42404f09de4b8769c2.tar.bz2
mate-power-manager-85f1fb713fd2fea2d46e8a42404f09de4b8769c2.tar.xz
add missing window icon to About dialogs
-rw-r--r--applets/brightness/brightness-applet.c2
-rw-r--r--applets/inhibit/inhibit-applet.c2
-rw-r--r--src/gpm-tray-icon.c1
3 files changed, 5 insertions, 0 deletions
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index 8813293..462637f 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -836,6 +836,8 @@ gpm_applet_dialog_about_cb (GtkAction *action, gpointer data)
gtk_about_dialog_set_license (about, license_trans);
gtk_about_dialog_set_website (about, "http://www.mate-desktop.org/");
+ gtk_window_set_icon_name (GTK_WINDOW (about), GPM_BRIGHTNESS_APPLET_ICON);
+
g_signal_connect (G_OBJECT(about), "response",
G_CALLBACK(gtk_widget_destroy), NULL);
diff --git a/applets/inhibit/inhibit-applet.c b/applets/inhibit/inhibit-applet.c
index 6d7deba..3845dae 100644
--- a/applets/inhibit/inhibit-applet.c
+++ b/applets/inhibit/inhibit-applet.c
@@ -403,6 +403,8 @@ gpm_applet_dialog_about_cb (GtkAction *action, gpointer data)
gtk_about_dialog_set_license (about, license_trans);
gtk_about_dialog_set_website (about, "http://www.mate-desktop.org/");
+ gtk_window_set_icon_name (GTK_WINDOW (about), GPM_INHIBIT_APPLET_ICON_INHIBIT);
+
g_signal_connect (G_OBJECT(about), "response",
G_CALLBACK(gtk_widget_destroy), NULL);
diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index dbf14ab..94efc5e 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -193,6 +193,7 @@ gpm_tray_icon_show_about_cb (GtkMenuItem *item, gpointer data)
* box to give credit to the translator(s).
*/
"translator-credits", _("translator-credits"),
+ "icon-name", "mate-power-manager",
"logo-icon-name", "mate-power-manager",
"website", "http://www.mate-desktop.org",
NULL);