summaryrefslogtreecommitdiff
path: root/tests/testheaderbar.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2020-02-25 20:57:20 -0500
committerMatthias Clasen <mclasen@redhat.com>2020-02-25 20:59:04 -0500
commitb5bacb3be640a25eb7573090df6d1af6a9adcc7e (patch)
tree4bb50d67d3952387b5a9f99f63db68f5e95f58ba /tests/testheaderbar.c
parenta9c05193a7b7366989b75471150b1f6d644e2285 (diff)
downloadgtk+-b5bacb3be640a25eb7573090df6d1af6a9adcc7e.tar.gz
Drop the margin property
Replace it with margin-start, -end, -top, -bottom throughout.
Diffstat (limited to 'tests/testheaderbar.c')
-rw-r--r--tests/testheaderbar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/testheaderbar.c b/tests/testheaderbar.c
index 5cd92fb0f7..386475d216 100644
--- a/tests/testheaderbar.c
+++ b/tests/testheaderbar.c
@@ -96,7 +96,10 @@ change_header (GtkButton *button, gpointer data)
header = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 10);
gtk_style_context_add_class (gtk_widget_get_style_context (header), "titlebar");
gtk_style_context_add_class (gtk_widget_get_style_context (header), "header-bar");
- g_object_set (header, "margin", 10, NULL);
+ gtk_widget_set_margin_start (header, 10);
+ gtk_widget_set_margin_end (header, 10);
+ gtk_widget_set_margin_top (header, 10);
+ gtk_widget_set_margin_bottom (header, 10);
label = gtk_label_new ("Label");
gtk_container_add (GTK_CONTAINER (header), label);
widget = gtk_level_bar_new ();