summaryrefslogtreecommitdiff
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
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
-rw-r--r--sensors-applet/prefs-dialog.c11
-rw-r--r--sensors-applet/prefs-dialog.h2
2 files changed, 8 insertions, 5 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,
diff --git a/sensors-applet/prefs-dialog.h b/sensors-applet/prefs-dialog.h
index 9e32b34..a61a250 100644
--- a/sensors-applet/prefs-dialog.h
+++ b/sensors-applet/prefs-dialog.h
@@ -49,7 +49,7 @@ typedef struct {
GtkCellRenderer *id_renderer, *label_renderer, *enable_renderer, *icon_renderer;
GtkScrolledWindow *scrolled_window;
- GtkVButtonBox *buttons_box; /* holds sensor reorder buttons */
+ GtkButtonBox *buttons_box; /* holds sensor reorder buttons */
GtkBox *sensors_hbox; /* holds scrolled window and
* buttons_vbox */
GtkAlignment *globals_alignment;