From cc00230076c62ee2a8717609b6a8007e53213c82 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 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); -- cgit v1.2.1