diff --git a/panels/region/cc-format-chooser.c b/panels/region/cc-format-chooser.c
index 59520e1e8..550373056 100644
--- a/panels/region/cc-format-chooser.c
+++ b/panels/region/cc-format-chooser.c
@@ -199,7 +199,7 @@ padded_label_new (char *text, gboolean narrow)
gtk_widget_set_margin_bottom (widget, 10);
gtk_widget_set_margin_start (widget, narrow ? 10 : 80);
gtk_widget_set_margin_end (widget, narrow ? 10 : 80);
- gtk_box_pack_start (GTK_BOX (widget), gtk_label_new (text), FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (widget), gtk_label_new (text));
return widget;
}
@@ -230,14 +230,14 @@ region_widget_new (const gchar *locale_id,
gtk_image_set_from_icon_name (GTK_IMAGE (check), "object-select-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_set_opacity (check, 0.0);
g_object_set (check, "icon-size", GTK_ICON_SIZE_MENU, NULL);
- gtk_box_pack_start (GTK_BOX (box), check, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (box), check);
gtk_box_reorder_child (GTK_BOX (box), check, 0);
check = gtk_image_new ();
gtk_image_set_from_icon_name (GTK_IMAGE (check), "object-select-symbolic", GTK_ICON_SIZE_MENU);
gtk_widget_set_opacity (check, 0.0);
g_object_set (check, "icon-size", GTK_ICON_SIZE_MENU, NULL);
- gtk_box_pack_start (GTK_BOX (box), check, FALSE, FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (box), check);
g_object_set_data (G_OBJECT (row), "check", check);
g_object_set_data_full (G_OBJECT (row), "locale-id", g_strdup (locale_id), g_free);
@@ -262,9 +262,10 @@ more_widget_new (void)
arrow = gtk_image_new_from_icon_name ("view-more-symbolic", GTK_ICON_SIZE_MENU);
gtk_style_context_add_class (gtk_widget_get_style_context (arrow), "dim-label");
+ gtk_widget_set_hexpand (arrow, TRUE);
gtk_widget_set_margin_top (box, 10);
gtk_widget_set_margin_bottom (box, 10);
- gtk_box_pack_start (GTK_BOX (box), arrow, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (box), arrow);
return GTK_LIST_BOX_ROW (row);
}
diff --git a/panels/region/cc-format-chooser.ui b/panels/region/cc-format-chooser.ui
index 7e915f0e6..2813b553a 100644
--- a/panels/region/cc-format-chooser.ui
+++ b/panels/region/cc-format-chooser.ui
@@ -42,6 +42,7 @@
6
6
True
+ True
20
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- True
- True
- 1
-
diff --git a/panels/region/cc-input-chooser.c b/panels/region/cc-input-chooser.c
index 674662052..9646017e3 100644
--- a/panels/region/cc-input-chooser.c
+++ b/panels/region/cc-input-chooser.c
@@ -135,21 +135,22 @@ padded_label_new (const gchar *text,
if (direction == ROW_TRAVEL_DIRECTION_BACKWARD)
{
arrow = gtk_image_new_from_icon_name ("go-previous-symbolic", GTK_ICON_SIZE_MENU);
- gtk_box_pack_start (GTK_BOX (widget), arrow, FALSE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (widget), arrow);
}
label = gtk_label_new (text);
gtk_label_set_ellipsize (GTK_LABEL (label), PANGO_ELLIPSIZE_MIDDLE);
+ gtk_widget_set_hexpand (label, TRUE);
gtk_widget_set_halign (label, alignment);
set_row_widget_margins (label);
- gtk_box_pack_start (GTK_BOX (widget), label, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (widget), label);
if (dim_label)
gtk_style_context_add_class (gtk_widget_get_style_context (label), "dim-label");
if (direction == ROW_TRAVEL_DIRECTION_FORWARD)
{
arrow = gtk_image_new_from_icon_name ("go-next-symbolic", GTK_ICON_SIZE_MENU);
- gtk_box_pack_start (GTK_BOX (widget), arrow, FALSE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (widget), arrow);
}
return widget;
@@ -169,8 +170,9 @@ more_row_new (void)
arrow = gtk_image_new_from_icon_name ("view-more-symbolic", GTK_ICON_SIZE_MENU);
gtk_style_context_add_class (gtk_widget_get_style_context (arrow), "dim-label");
+ gtk_widget_set_hexpand (arrow, TRUE);
set_row_widget_margins (arrow);
- gtk_box_pack_start (GTK_BOX (box), arrow, TRUE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (box), arrow);
return GTK_LIST_BOX_ROW (row);
}
@@ -249,7 +251,7 @@ input_source_row_new (GtkWidget *chooser,
image = gtk_image_new_from_icon_name ("system-run-symbolic", GTK_ICON_SIZE_MENU);
set_row_widget_margins (image);
gtk_style_context_add_class (gtk_widget_get_style_context (image), "dim-label");
- gtk_box_pack_start (GTK_BOX (widget), image, FALSE, TRUE, 0);
+ gtk_container_add (GTK_CONTAINER (widget), image);
g_object_set_data_full (G_OBJECT (row), "name", display_name, g_free);
g_object_set_data_full (G_OBJECT (row), "unaccented-name",
diff --git a/panels/region/region.ui b/panels/region/region.ui
index e5b4646a1..d3af5be75 100644
--- a/panels/region/region.ui
+++ b/panels/region/region.ui
@@ -18,17 +18,6 @@
-
-
-
- end
-
-
-
-
- True
- True
- 0
-
-
- False
- True
- 1
-
@@ -120,11 +100,6 @@
-
- False
- True
- 0
-
-
- False
- True
- 1
-
@@ -172,12 +142,8 @@
0
_Formats
True
+ True
-
- True
- True
- 0
-
-
- False
- True
- 1
-
@@ -205,11 +166,6 @@
-
- False
- True
- 0
-
-
- True
- True
- 0
-
-
- False
- True
- 1
-
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- False
-
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- False
-
-
- False
- True
- 0
-
-
- False
- True
- 1
-
-
- False
-
-
- False
- True
- 2
-
-
- False
- True
- 1
-
+
+
+
+
@@ -759,11 +655,6 @@
-
- False
- True
- 1
-