From 27482cc31d07fa1f5aa8f00d51b9aa1d1629d26e Mon Sep 17 00:00:00 2001 From: monsta Date: Sat, 17 Mar 2018 20:24:56 +0300 Subject: add missing window icon to About dialogs --- applets/brightness/brightness-applet.c | 2 ++ applets/inhibit/inhibit-applet.c | 2 ++ src/gpm-tray-icon.c | 1 + 3 files changed, 5 insertions(+) diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c index 0f1dd77..5549132 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 a5c862a..52c4078 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 0aa44a7..6107443 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); -- cgit v1.2.1