[gtk/expand-margin-cleanup: 2/2] Small fixups



commit 791f7c688c1b898033d3bcf488c1246b23a5995e
Author: Matthias Clasen <mclasen redhat com>
Date:   Tue Feb 25 20:57:20 2020 -0500

    Small fixups
    
    Trying to get the ci style test to pass.

 tests/testframe.c      | 8 ++++----
 testsuite/gtk/notify.c | 6 +++---
 2 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/tests/testframe.c b/tests/testframe.c
index e7ea521c40..63f8e6d195 100644
--- a/tests/testframe.c
+++ b/tests/testframe.c
@@ -153,10 +153,10 @@ int main (int argc, char **argv)
   g_signal_connect (window, "destroy", G_CALLBACK (quit_cb), &done);
 
   vbox = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 5));
-  gtk_widget_set_margin_start (vbox, 12);
-  gtk_widget_set_margin_end (vbox, 12);
-  gtk_widget_set_margin_top (vbox, 12);
-  gtk_widget_set_margin_bottom (vbox, 12);
+  gtk_widget_set_margin_start (GTK_WIDGET (vbox), 12);
+  gtk_widget_set_margin_end (GTK_WIDGET (vbox), 12);
+  gtk_widget_set_margin_top (GTK_WIDGET (vbox), 12);
+  gtk_widget_set_margin_bottom (GTK_WIDGET (vbox), 12);
   gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (vbox));
 
   frame = GTK_FRAME (gtk_frame_new ("Test GtkFrame"));
diff --git a/testsuite/gtk/notify.c b/testsuite/gtk/notify.c
index d1b1f71bd2..0e5045e0e1 100644
--- a/testsuite/gtk/notify.c
+++ b/testsuite/gtk/notify.c
@@ -492,12 +492,12 @@ test_type (gconstpointer data)
 
       /* These are special */
       if (g_type_is_a (pspec->owner_type, GTK_TYPE_WIDGET) &&
-         (g_str_equal (pspec->name, "has-focus") ||
-          g_str_equal (pspec->name, "has-default") ||
+          (g_str_equal (pspec->name, "has-focus") ||
+           g_str_equal (pspec->name, "has-default") ||
            g_str_equal (pspec->name, "is-focus") ||
            g_str_equal (pspec->name, "hexpand") ||
            g_str_equal (pspec->name, "vexpand")))
-       continue;
+        continue;
 
       if (pspec->owner_type == GTK_TYPE_ENTRY &&
           g_str_equal (pspec->name, "im-module"))


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