[gtk+/gtk-3-20] Fix formatting



commit 84e0bef15007cc8158e4e5695e4bcac1a1ff8c66
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 21 23:24:13 2016 -0400

    Fix formatting
    
    The previous change was not quite using the right coding style.

 gtk/gtkmenusectionbox.c |   14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)
---
diff --git a/gtk/gtkmenusectionbox.c b/gtk/gtkmenusectionbox.c
index 455637d..782b204 100644
--- a/gtk/gtkmenusectionbox.c
+++ b/gtk/gtkmenusectionbox.c
@@ -204,15 +204,15 @@ gtk_menu_section_box_remove_func (gint     position,
   widget = g_list_nth_data (children, position);
 
   item = g_object_get_data (G_OBJECT (widget), "GtkMenuTrackerItem");
-  if (gtk_menu_tracker_item_get_has_link (item, G_MENU_LINK_SUBMENU)) {
-    GtkWidget *stack, *subbox;
+  if (gtk_menu_tracker_item_get_has_link (item, G_MENU_LINK_SUBMENU))
+    {
+      GtkWidget *stack, *subbox;
 
-    stack = gtk_widget_get_ancestor (GTK_WIDGET (box->toplevel), GTK_TYPE_STACK);
-    subbox = gtk_stack_get_child_by_name (GTK_STACK (stack), gtk_menu_tracker_item_get_label (item));
-    if (subbox != NULL) {
-      gtk_container_remove (GTK_CONTAINER (stack), subbox);
+      stack = gtk_widget_get_ancestor (GTK_WIDGET (box->toplevel), GTK_TYPE_STACK);
+      subbox = gtk_stack_get_child_by_name (GTK_STACK (stack), gtk_menu_tracker_item_get_label (item));
+      if (subbox != NULL)
+        gtk_container_remove (GTK_CONTAINER (stack), subbox);
     }
-  }
 
   gtk_widget_destroy (g_list_nth_data (children, position));
   g_list_free (children);


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