summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Murray <[email protected]>2014-12-23 16:22:20 +0100
committermonsta <[email protected]>2015-07-10 11:04:51 +0300
commitcc00230076c62ee2a8717609b6a8007e53213c82 (patch)
tree7f37d833d2fffd14e93ae98a37f60a3e97f7795e
parent71cc075711a0d44ab7bc2ff62b043203f0547493 (diff)
downloadmate-sensors-applet-cc00230076c62ee2a8717609b6a8007e53213c82.tar.bz2
mate-sensors-applet-cc00230076c62ee2a8717609b6a8007e53213c82.tar.xz
Set icon name for dialog windows
Taken from sensors-applet commit: c2596b4534f612ae890fac1719d4e6e6ef35ef91 and adapted for MATE by [email protected]
-rw-r--r--sensors-applet/prefs-dialog.c3
-rw-r--r--sensors-applet/sensor-config-dialog.c4
2 files changed, 6 insertions, 1 deletions
diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c
index ab2278c..7dedb36 100644
--- a/sensors-applet/prefs-dialog.c
+++ b/sensors-applet/prefs-dialog.c
@@ -415,6 +415,9 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE,
NULL));
+ gtk_window_set_icon_name(GTK_WINDOW(prefs_dialog->dialog),
+ "mate-sensors-applet");
+
g_object_set(prefs_dialog->dialog,
"border-width", 12,
"default-width", 480,
diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c
index bb76da6..0c1b659 100644
--- a/sensors-applet/sensor-config-dialog.c
+++ b/sensors-applet/sensor-config-dialog.c
@@ -403,7 +403,9 @@ void sensor_config_dialog_create(SensorsApplet *sensors_applet) {
GTK_STOCK_CLOSE,
GTK_RESPONSE_CLOSE,
NULL);
-
+ gtk_window_set_icon_name(GTK_WINDOW(config_dialog->dialog),
+ "sensors-applet");
+
g_free(header_text);
g_free(sensor_label);