summaryrefslogtreecommitdiff
path: root/sensors-applet/prefs-dialog.c
diff options
context:
space:
mode:
authorraveit65 <[email protected]>2017-04-30 19:41:47 +0200
committerraveit65 <[email protected]>2017-04-30 19:41:47 +0200
commit9d488e64f0cdd3b2235baa2b0655481451b8faf8 (patch)
tree5e9af946f966149fe12c733f08a0a1184350ebc0 /sensors-applet/prefs-dialog.c
parent687d37642f0a477c339a011a30cbbd3305ebd600 (diff)
downloadmate-sensors-applet-9d488e64f0cdd3b2235baa2b0655481451b8faf8.tar.bz2
mate-sensors-applet-9d488e64f0cdd3b2235baa2b0655481451b8faf8.tar.xz
prefs-dialog: avoid deprecated GTK_VBUTTON_BOX, GTK_TYPE_{H,V}BOX
Diffstat (limited to 'sensors-applet/prefs-dialog.c')
-rw-r--r--sensors-applet/prefs-dialog.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/sensors-applet/prefs-dialog.c b/sensors-applet/prefs-dialog.c
index 43b2630..1d85c17 100644
--- a/sensors-applet/prefs-dialog.c
+++ b/sensors-applet/prefs-dialog.c
@@ -838,7 +838,7 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
prefs_dialog);
- prefs_dialog->buttons_box = GTK_VBUTTON_BOX(gtk_vbutton_box_new());
+ prefs_dialog->buttons_box = GTK_BUTTON_BOX(gtk_button_box_new(GTK_ORIENTATION_VERTICAL));
gtk_button_box_set_layout(GTK_BUTTON_BOX(prefs_dialog->buttons_box),
GTK_BUTTONBOX_SPREAD);
@@ -847,7 +847,8 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
gtk_box_pack_start(GTK_BOX(prefs_dialog->buttons_box), GTK_WIDGET(prefs_dialog->sensor_down_button), FALSE, FALSE, 0);
- prefs_dialog->sensors_hbox = g_object_new(GTK_TYPE_HBOX,
+ prefs_dialog->sensors_hbox = g_object_new(GTK_TYPE_BOX,
+ "orientation", GTK_ORIENTATION_HORIZONTAL,
"border-width", 5,
"homogeneous", FALSE,
"spacing", 5,
@@ -884,7 +885,8 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
G_CALLBACK(prefs_dialog_sensor_config_button_clicked),
prefs_dialog);
- prefs_dialog->sensor_config_hbox = g_object_new(GTK_TYPE_HBOX,
+ prefs_dialog->sensor_config_hbox = g_object_new(GTK_TYPE_BOX,
+ "orientation", GTK_ORIENTATION_HORIZONTAL,
"border-width", 5,
"homogeneous", FALSE,
"spacing", 0,
@@ -894,7 +896,8 @@ void prefs_dialog_open(SensorsApplet *sensors_applet) {
FALSE, FALSE, 0);
/* pack sensors_vbox */
- prefs_dialog->sensors_vbox = g_object_new(GTK_TYPE_VBOX,
+ prefs_dialog->sensors_vbox = g_object_new(GTK_TYPE_BOX,
+ "orientation", GTK_ORIENTATION_VERTICAL,
"border-width", 5,
"homogeneous", FALSE,
"spacing", 0,