diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-02-25 20:57:20 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-02-25 20:59:04 -0500 |
commit | b5bacb3be640a25eb7573090df6d1af6a9adcc7e (patch) | |
tree | 4bb50d67d3952387b5a9f99f63db68f5e95f58ba /demos/gtk-demo/transparent.c | |
parent | a9c05193a7b7366989b75471150b1f6d644e2285 (diff) | |
download | gtk+-b5bacb3be640a25eb7573090df6d1af6a9adcc7e.tar.gz |
Drop the margin property
Replace it with margin-start, -end, -top, -bottom throughout.
Diffstat (limited to 'demos/gtk-demo/transparent.c')
-rw-r--r-- | demos/gtk-demo/transparent.c | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/demos/gtk-demo/transparent.c b/demos/gtk-demo/transparent.c index 65373b8943..ae9873a4e9 100644 --- a/demos/gtk-demo/transparent.c +++ b/demos/gtk-demo/transparent.c @@ -33,7 +33,10 @@ do_transparent (GtkWidget *do_widget) button = gtk_button_new_with_label ("Don't click this button!"); label = gtk_bin_get_child (GTK_BIN (button)); - g_object_set (label, "margin", 50, NULL); + gtk_widget_set_margin_start (label, 50); + gtk_widget_set_margin_end (label, 50); + gtk_widget_set_margin_top (label, 50); + gtk_widget_set_margin_bottom (label, 50); gtk_widget_set_opacity (button, 0.7); gtk_widget_set_halign (button, GTK_ALIGN_FILL); @@ -43,7 +46,10 @@ do_transparent (GtkWidget *do_widget) button = gtk_button_new_with_label ("Maybe this one?"); label = gtk_bin_get_child (GTK_BIN (button)); - g_object_set (label, "margin", 50, NULL); + gtk_widget_set_margin_start (label, 50); + gtk_widget_set_margin_end (label, 50); + gtk_widget_set_margin_top (label, 50); + gtk_widget_set_margin_bottom (label, 50); gtk_widget_set_opacity (button, 0.7); gtk_widget_set_halign (button, GTK_ALIGN_FILL); |