summaryrefslogtreecommitdiff
path: root/gtk/inspector
diff options
context:
space:
mode:
Diffstat (limited to 'gtk/inspector')
-rw-r--r--gtk/inspector/controllers.c5
-rw-r--r--gtk/inspector/css-editor.ui5
-rw-r--r--gtk/inspector/data-list.ui5
-rw-r--r--gtk/inspector/general.c8
-rw-r--r--gtk/inspector/general.ui100
-rw-r--r--gtk/inspector/logs.ui5
-rw-r--r--gtk/inspector/misc-info.ui110
-rw-r--r--gtk/inspector/recorder.c11
-rw-r--r--gtk/inspector/recorder.ui5
-rw-r--r--gtk/inspector/resource-list.ui5
-rw-r--r--gtk/inspector/size-groups.c15
-rw-r--r--gtk/inspector/type-info.c15
-rw-r--r--gtk/inspector/visual.ui105
-rw-r--r--gtk/inspector/window.ui25
14 files changed, 335 insertions, 84 deletions
diff --git a/gtk/inspector/controllers.c b/gtk/inspector/controllers.c
index deea5b866f..5f1b5735e5 100644
--- a/gtk/inspector/controllers.c
+++ b/gtk/inspector/controllers.c
@@ -123,7 +123,10 @@ create_controller_widget (gpointer item,
gtk_list_box_row_set_activatable (GTK_LIST_BOX_ROW (row), FALSE);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40);
gtk_container_add (GTK_CONTAINER (row), box);
- g_object_set (box, "margin", 10, NULL);
+ gtk_widget_set_margin_start (box, 10);
+ gtk_widget_set_margin_end (box, 10);
+ gtk_widget_set_margin_top (box, 10);
+ gtk_widget_set_margin_bottom (box, 10);
label = gtk_label_new (G_OBJECT_TYPE_NAME (controller));
g_object_set (label, "xalign", 0.0, NULL);
gtk_container_add (GTK_CONTAINER (box), label);
diff --git a/gtk/inspector/css-editor.ui b/gtk/inspector/css-editor.ui
index 5996ece5db..15984bc28d 100644
--- a/gtk/inspector/css-editor.ui
+++ b/gtk/inspector/css-editor.ui
@@ -23,7 +23,10 @@
<child>
<object class="GtkBox">
<property name="spacing">6</property>
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton" id="disable_button">
<property name="relief">none</property>
diff --git a/gtk/inspector/data-list.ui b/gtk/inspector/data-list.ui
index 081bbb1fc9..19549a9834 100644
--- a/gtk/inspector/data-list.ui
+++ b/gtk/inspector/data-list.ui
@@ -4,7 +4,10 @@
<child>
<object class="GtkBox">
<property name="spacing">6</property>
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton" id="show_button">
<property name="relief">none</property>
diff --git a/gtk/inspector/general.c b/gtk/inspector/general.c
index 2489d99c86..de3d9a6670 100644
--- a/gtk/inspector/general.c
+++ b/gtk/inspector/general.c
@@ -162,8 +162,10 @@ add_check_row (GtkInspectorGeneral *gen,
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40);
g_object_set (box,
- "margin", 10,
"margin-start", 10 + indent,
+ "margin-end", 10,
+ "margin-top", 10,
+ "margin-bottom", 10,
NULL);
label = gtk_label_new (name);
@@ -202,8 +204,10 @@ add_label_row (GtkInspectorGeneral *gen,
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 40);
g_object_set (box,
- "margin", 10,
"margin-start", 10 + indent,
+ "margin-end", 10,
+ "margin-top", 10,
+ "margin-bottom", 10,
NULL);
label = gtk_label_new (name);
diff --git a/gtk/inspector/general.ui b/gtk/inspector/general.ui
index 4651befc9b..e9de932fe7 100644
--- a/gtk/inspector/general.ui
+++ b/gtk/inspector/general.ui
@@ -7,7 +7,10 @@
<child>
<object class="GtkBox" id="box">
<property name="orientation">vertical</property>
- <property name="margin">60</property>
+ <property name="margin-start">60</property>
+ <property name="margin-end">60</property>
+ <property name="margin-top">60</property>
+ <property name="margin-bottom">60</property>
<property name="spacing">10</property>
<child>
<object class="GtkFrame" id="version_frame">
@@ -20,7 +23,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gtk_version_label">
@@ -47,7 +53,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gdk_backend_label">
@@ -74,7 +83,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gsk_renderer_label">
@@ -101,7 +113,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="pango_fontmap_label">
@@ -138,7 +153,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="prefix_label">
@@ -166,7 +184,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="xdg_data_home_label">
@@ -194,7 +215,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="xdg_data_dirs_label">
@@ -222,7 +246,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gtk_path_label">
@@ -250,7 +277,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gtk_exe_prefix_label">
@@ -278,7 +308,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gtk_data_prefix_label">
@@ -306,7 +339,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gsettings_schema_dir_label">
@@ -344,7 +380,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="display_label">
@@ -372,7 +411,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="display_rgba_label">
@@ -399,7 +441,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="display_composited_label">
@@ -436,7 +481,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gl_version_label">
@@ -464,7 +512,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="gl_vendor_label">
@@ -502,7 +553,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="vk_device_label">
@@ -530,7 +584,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="vk_api_version_label">
@@ -558,7 +615,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="vk_driver_version_label">
diff --git a/gtk/inspector/logs.ui b/gtk/inspector/logs.ui
index 9c7affcfd0..a73ba03286 100644
--- a/gtk/inspector/logs.ui
+++ b/gtk/inspector/logs.ui
@@ -2,7 +2,10 @@
<template class="GtkInspectorLogs" parent="GtkBox">
<child>
<object class="GtkBox">
- <property name="margin">20</property>
+ <property name="margin-start">20</property>
+ <property name="margin-end">20</property>
+ <property name="margin-top">20</property>
+ <property name="margin-bottom">20</property>
<property name="spacing">20</property>
<property name="halign">center</property>
<property name="hexpand">1</property>
diff --git a/gtk/inspector/misc-info.ui b/gtk/inspector/misc-info.ui
index 5f1fe8efe9..9761503e23 100644
--- a/gtk/inspector/misc-info.ui
+++ b/gtk/inspector/misc-info.ui
@@ -22,7 +22,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="address_label">
@@ -49,7 +52,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="type_label">
@@ -75,7 +81,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="refcount_label">
@@ -102,7 +111,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="state_label">
@@ -129,7 +141,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="buildable_id_label">
@@ -156,7 +171,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -182,7 +200,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -208,7 +229,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -234,7 +258,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -260,7 +287,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="surface_label">
@@ -296,7 +326,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="renderer_label">
@@ -332,7 +365,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="frame_clock_label">
@@ -368,7 +404,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -395,7 +434,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -421,7 +463,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -447,7 +492,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -473,7 +521,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -501,7 +552,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -529,7 +583,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -556,7 +613,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -583,7 +643,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
@@ -610,7 +673,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel">
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index eade68bcca..cc6b6ae9cc 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -1133,7 +1133,11 @@ gtk_inspector_recorder_recordings_list_create_widget (gpointer item,
gtk_label_set_use_markup (GTK_LABEL (widget), TRUE);
}
- g_object_set (widget, "margin", 6, NULL); /* Seriously? g_object_set() needed for that? */
+ gtk_widget_set_margin_start (widget, 6);
+ gtk_widget_set_margin_end (widget, 6);
+ gtk_widget_set_margin_top (widget, 6);
+ gtk_widget_set_margin_bottom (widget, 6);
+
return widget;
}
@@ -1168,7 +1172,10 @@ node_property_activated (GtkTreeView *tv,
gtk_popover_set_pointing_to (GTK_POPOVER (popover), &rect);
image = gtk_image_new_from_paintable (GDK_PAINTABLE (texture));
- g_object_set (image, "margin", 20, NULL);
+ gtk_widget_set_margin_start (image, 20);
+ gtk_widget_set_margin_end (image, 20);
+ gtk_widget_set_margin_top (image, 20);
+ gtk_widget_set_margin_bottom (image, 20);
gtk_container_add (GTK_CONTAINER (popover), image);
gtk_popover_popup (GTK_POPOVER (popover));
diff --git a/gtk/inspector/recorder.ui b/gtk/inspector/recorder.ui
index e9bd32c659..54fed8871e 100644
--- a/gtk/inspector/recorder.ui
+++ b/gtk/inspector/recorder.ui
@@ -7,7 +7,10 @@
<child>
<object class="GtkBox">
<property name="spacing">6</property>
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<child>
<object class="GtkToggleButton">
<property name="relief">none</property>
diff --git a/gtk/inspector/resource-list.ui b/gtk/inspector/resource-list.ui
index dabe1cae78..f18fac1c6d 100644
--- a/gtk/inspector/resource-list.ui
+++ b/gtk/inspector/resource-list.ui
@@ -124,7 +124,10 @@
<object class="GtkGrid" id="info_grid">
<property name="row-spacing">10</property>
<property name="column-spacing">10</property>
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="halign">center</property>
<child>
<object class="GtkLabel" id="name">
diff --git a/gtk/inspector/size-groups.c b/gtk/inspector/size-groups.c
index d45da94956..4aab813745 100644
--- a/gtk/inspector/size-groups.c
+++ b/gtk/inspector/size-groups.c
@@ -208,7 +208,10 @@ add_widget (GtkInspectorSizeGroups *sl,
text = g_strdup_printf ("%p (%s)", widget, g_type_name_from_instance ((GTypeInstance*)widget));
label = gtk_label_new (text);
g_free (text);
- g_object_set (label, "margin", 10, NULL);
+ gtk_widget_set_margin_start (label, 10);
+ gtk_widget_set_margin_end (label, 10);
+ gtk_widget_set_margin_top (label, 10);
+ gtk_widget_set_margin_bottom (label, 10);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_container_add (GTK_CONTAINER (row), label);
@@ -234,13 +237,19 @@ add_size_group (GtkInspectorSizeGroups *sl,
gtk_container_add (GTK_CONTAINER (box), box2);
label = gtk_label_new (_("Mode"));
- g_object_set (label, "margin", 10, NULL);
+ gtk_widget_set_margin_start (label, 10);
+ gtk_widget_set_margin_end (label, 10);
+ gtk_widget_set_margin_top (label, 10);
+ gtk_widget_set_margin_bottom (label, 10);
gtk_widget_set_halign (label, GTK_ALIGN_START);
gtk_widget_set_valign (label, GTK_ALIGN_BASELINE);
gtk_container_add (GTK_CONTAINER (box2), label);
combo = gtk_combo_box_text_new ();
- g_object_set (combo, "margin", 10, NULL);
+ gtk_widget_set_margin_start (combo, 10);
+ gtk_widget_set_margin_end (combo, 10);
+ gtk_widget_set_margin_top (combo, 10);
+ gtk_widget_set_margin_bottom (combo, 10);
gtk_widget_set_halign (combo, GTK_ALIGN_END);
gtk_widget_set_valign (combo, GTK_ALIGN_BASELINE);
gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (combo), C_("sizegroup mode", "None"));
diff --git a/gtk/inspector/type-info.c b/gtk/inspector/type-info.c
index 6f2f8bdbc5..313cd0361e 100644
--- a/gtk/inspector/type-info.c
+++ b/gtk/inspector/type-info.c
@@ -60,7 +60,10 @@ add_row (GtkContainer *box,
NULL);
label = g_object_new (GTK_TYPE_LABEL,
- "margin", 6,
+ "margin-start", 6,
+ "margin-end", 6,
+ "margin-top", 6,
+ "margin-bottom", 6,
"label", name,
"selectable", TRUE,
"xalign", 0.0,
@@ -142,14 +145,20 @@ gtk_inspector_type_popover_init (GtkInspectorTypePopover *self)
priv->type = G_TYPE_NONE;
label = g_object_new (GTK_TYPE_LABEL,
- "margin", 12,
+ "margin-start", 12,
+ "margin-end", 12,
+ "margin-top", 12,
+ "margin-bottom", 12,
"label", "None",
NULL);
gtk_list_box_set_placeholder (GTK_LIST_BOX (priv->parents), label);
label = g_object_new (GTK_TYPE_LABEL,
- "margin", 12,
+ "margin-start", 12,
+ "margin-end", 12,
+ "margin-top", 12,
+ "margin-bottom", 12,
"label", "None",
NULL);
diff --git a/gtk/inspector/visual.ui b/gtk/inspector/visual.ui
index d052c9d68c..c6d5ba9f8b 100644
--- a/gtk/inspector/visual.ui
+++ b/gtk/inspector/visual.ui
@@ -31,7 +31,10 @@
<child>
<object class="GtkBox" id="box">
<property name="orientation">vertical</property>
- <property name="margin">60</property>
+ <property name="margin-start">60</property>
+ <property name="margin-end">60</property>
+ <property name="margin-top">60</property>
+ <property name="margin-bottom">60</property>
<property name="spacing">10</property>
<child>
<object class="GtkFrame" id="visual_frame">
@@ -47,7 +50,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="theme_label">
@@ -72,7 +78,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="dark_label">
@@ -98,7 +107,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="cursor_label">
@@ -124,7 +136,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="cursor_size_label">
@@ -154,7 +169,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="icon_label">
@@ -180,7 +198,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="font_label">
@@ -206,7 +227,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">20</property>
<child>
<object class="GtkLabel" id="font_scale_label">
@@ -244,7 +268,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="direction_label">
@@ -275,7 +302,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="hidpi_label">
@@ -302,7 +332,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="animation_label">
@@ -328,7 +361,10 @@
<property name="activatable">0</property>
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">20</property>
<child>
<object class="GtkLabel" id="slowdown_label">
@@ -377,7 +413,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="fps_label">
@@ -403,7 +442,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="updates_label">
@@ -429,7 +471,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="fallback_label">
@@ -455,7 +500,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="baselines_label">
@@ -481,7 +529,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="layout_label">
@@ -507,7 +558,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="resize_label">
@@ -533,7 +587,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="focus_label">
@@ -570,7 +627,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="touchscreen_label">
@@ -595,7 +655,10 @@
<object class="GtkListBoxRow">
<child>
<object class="GtkBox">
- <property name="margin">10</property>
+ <property name="margin-start">10</property>
+ <property name="margin-end">10</property>
+ <property name="margin-top">10</property>
+ <property name="margin-bottom">10</property>
<property name="spacing">40</property>
<child>
<object class="GtkLabel" id="software_gl_label">
diff --git a/gtk/inspector/window.ui b/gtk/inspector/window.ui
index dbf005fc62..963464be7a 100644
--- a/gtk/inspector/window.ui
+++ b/gtk/inspector/window.ui
@@ -231,7 +231,10 @@
<property name="icon-name">go-previous-symbolic</property>
<property name="tooltip-text" translatable="yes">Toggle Sidebar</property>
<property name="relief">none</property>
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<property name="halign">center</property>
<property name="valign">center</property>
<signal name="clicked" handler="toggle_sidebar"/>
@@ -253,7 +256,10 @@
<property name="name">actions</property>
<property name="child">
<object class="GtkButton" id="refresh_actions_button">
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<property name="icon-name">view-refresh-symbolic</property>
<property name="tooltip-text" translatable="yes">Refresh action state</property>
<property name="relief">none</property>
@@ -266,7 +272,10 @@
<property name="name">magnifier</property>
<property name="child">
<object class="GtkScale">
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<property name="width-request">150</property>
<property name="draw-value">0</property>
<property name="adjustment">magnification_adjustment</property>
@@ -304,7 +313,10 @@
<property name="name">prop-search</property>
<property name="child">
<object class="GtkSearchEntry" id="prop_search_entry">
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<property name="max-width-chars">40</property>
</object>
</property>
@@ -315,7 +327,10 @@
<property name="name">layout-prop-search</property>
<property name="child">
<object class="GtkSearchEntry" id="layout_prop_search_entry">
- <property name="margin">6</property>
+ <property name="margin-start">6</property>
+ <property name="margin-end">6</property>
+ <property name="margin-top">6</property>
+ <property name="margin-bottom">6</property>
<property name="max-width-chars">40</property>
</object>
</property>