diff options
author | info-cppsp <[email protected]> | 2018-01-17 15:46:11 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2018-02-08 19:42:17 +0100 |
commit | 7e4869045b4327cbd8453e7a9b670680f8cfb87d (patch) | |
tree | 341cc701960676cd0ede20944b069aadd95b3beb /sensors-applet/sensor-config-dialog.c | |
parent | f30402084780b89859dc2000afabe2bc3f73076c (diff) | |
download | mate-sensors-applet-7e4869045b4327cbd8453e7a9b670680f8cfb87d.tar.bz2 mate-sensors-applet-7e4869045b4327cbd8453e7a9b670680f8cfb87d.tar.xz |
fix GtkStock deprecations
Diffstat (limited to 'sensors-applet/sensor-config-dialog.c')
-rw-r--r-- | sensors-applet/sensor-config-dialog.c | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/sensors-applet/sensor-config-dialog.c b/sensors-applet/sensor-config-dialog.c index ba095d1..3d3150b 100644 --- a/sensors-applet/sensor-config-dialog.c +++ b/sensors-applet/sensor-config-dialog.c @@ -30,7 +30,7 @@ typedef struct { SensorsApplet *sensors_applet; - GtkWidget *dialog; + GtkDialog *dialog; /* icon widgets */ GtkLabel *icon_header, *icon_type_label; GtkComboBox *icon_type_combo_box; @@ -387,14 +387,17 @@ void sensor_config_dialog_create(SensorsApplet *sensors_applet) { -1); header_text = g_strdup_printf("%s - %s", _("Sensor Properties"), sensor_label); - config_dialog->dialog = gtk_dialog_new_with_buttons(header_text, + + config_dialog->dialog = GTK_DIALOG(gtk_dialog_new_with_buttons(header_text, GTK_WINDOW(sensors_applet->prefs_dialog->dialog), GTK_DIALOG_DESTROY_WITH_PARENT, - GTK_STOCK_HELP, + "gtk-help", GTK_RESPONSE_HELP, - GTK_STOCK_CLOSE, + "gtk-close", GTK_RESPONSE_CLOSE, - NULL); + NULL)); + + gtk_window_set_icon_name(GTK_WINDOW(config_dialog->dialog), "sensors-applet"); g_free(header_text); @@ -823,8 +826,8 @@ void sensor_config_dialog_create(SensorsApplet *sensors_applet) { GTK_WIDGET(config_dialog->graph_color_button), 2, 14, 1, 1); - content_area = gtk_dialog_get_content_area (GTK_DIALOG(config_dialog->dialog)); + content_area = gtk_dialog_get_content_area (config_dialog->dialog); gtk_box_pack_start(GTK_BOX(content_area), GTK_WIDGET(config_dialog->grid), FALSE, FALSE, 0); - gtk_widget_show_all(config_dialog->dialog); + gtk_widget_show_all(GTK_WIDGET(config_dialog->dialog)); } |