From 89b136b9b86ef3f8710295f8023b7bd84c34d0ee Mon Sep 17 00:00:00 2001 From: Alex Murray Date: Tue, 23 Dec 2014 16:22:20 +0100 Subject: Set icon name for dialog windows Taken from sensors-applet commit: c2596b4534f612ae890fac1719d4e6e6ef35ef91 and adapted for MATE by infirit@gmail.com --- sensors-applet/prefs-dialog.c | 3 +++ sensors-applet/sensor-config-dialog.c | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) 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); -- cgit v1.2.1