summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Murray <[email protected]>2014-12-23 16:22:20 +0100
committerinfirit <[email protected]>2015-07-07 11:27:28 +0200
commit89b136b9b86ef3f8710295f8023b7bd84c34d0ee (patch)
tree8edfcea34dc9c60d08959311d1dccccba56eefad
parent50be0d3c1a5d3110b9ec7493c43fe5eccc2a875e (diff)
downloadmate-sensors-applet-89b136b9b86ef3f8710295f8023b7bd84c34d0ee.tar.bz2
mate-sensors-applet-89b136b9b86ef3f8710295f8023b7bd84c34d0ee.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 97ba8f5..bdc7981 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 efda54b..d45df9c 100644
--- a/sensors-applet/sensor-config-dialog.c
+++ b/sensors-applet/sensor-config-dialog.c
@@ -418,7 +418,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);