[gtk/wip/exalm/test: 8/37] tests: Add missing margin to simple test



commit 1fd75d0fa26124f89a962d94beeaa8c12c1b35af
Author: Alexander Mikhaylenko <alexm gnome org>
Date:   Mon May 11 02:49:09 2020 +0500

    tests: Add missing margin to simple test

 tests/simple.c | 4 ++++
 1 file changed, 4 insertions(+)
---
diff --git a/tests/simple.c b/tests/simple.c
index 2bf39223bc..062afdc9fa 100644
--- a/tests/simple.c
+++ b/tests/simple.c
@@ -51,6 +51,10 @@ main (int argc, char *argv[])
 
   button = gtk_button_new ();
   gtk_button_set_label (GTK_BUTTON (button), "hello world");
+  gtk_widget_set_margin_top (button, 10);
+  gtk_widget_set_margin_bottom (button, 10);
+  gtk_widget_set_margin_start (button, 10);
+  gtk_widget_set_margin_end (button, 10);
   g_signal_connect (button, "clicked", G_CALLBACK (hello), NULL);
 
   gtk_window_set_child (GTK_WINDOW (window), button);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]