gtk+ r21005 - in trunk: . gtk



Author: matthiasc
Date: Tue Aug  5 00:21:49 2008
New Revision: 21005
URL: http://svn.gnome.org/viewvc/gtk+?rev=21005&view=rev

Log:
Add some missing braces


Modified:
   trunk/ChangeLog
   trunk/gtk/gtkcelllayout.c
   trunk/gtk/gtkcontainer.c
   trunk/gtk/gtkdialog.c

Modified: trunk/gtk/gtkcelllayout.c
==============================================================================
--- trunk/gtk/gtkcelllayout.c	(original)
+++ trunk/gtk/gtkcelllayout.c	Tue Aug  5 00:21:49 2008
@@ -330,9 +330,11 @@
   guint i;
 
   if (strcmp (element_name, "attribute") == 0)
-    for (i = 0; names[i]; i++)
-      if (strcmp (names[i], "name") == 0)
-	parser_data->attr_name = g_strdup (values[i]);
+    {
+      for (i = 0; names[i]; i++)
+	if (strcmp (names[i], "name") == 0)
+	  parser_data->attr_name = g_strdup (values[i]);
+    }
   else if (strcmp (element_name, "attributes") == 0)
     return;
   else

Modified: trunk/gtk/gtkcontainer.c
==============================================================================
--- trunk/gtk/gtkcontainer.c	(original)
+++ trunk/gtk/gtkcontainer.c	Tue Aug  5 00:21:49 2008
@@ -367,9 +367,11 @@
   guint i;
 
   if (strcmp (element_name, "property") == 0)
-    for (i = 0; names[i]; i++)
-      if (strcmp (names[i], "name") == 0)
-	parser_data->child_prop_name = g_strdup (values[i]);
+    {
+      for (i = 0; names[i]; i++)
+	if (strcmp (names[i], "name") == 0)
+	  parser_data->child_prop_name = g_strdup (values[i]);
+    }
   else if (strcmp (element_name, "packing") == 0)
     return;
   else

Modified: trunk/gtk/gtkdialog.c
==============================================================================
--- trunk/gtk/gtkdialog.c	(original)
+++ trunk/gtk/gtkdialog.c	Tue Aug  5 00:21:49 2008
@@ -1310,9 +1310,11 @@
   guint i;
 
   if (strcmp (element_name, "action-widget") == 0)
-    for (i = 0; names[i]; i++)
-      if (strcmp (names[i], "response") == 0)
-	parser_data->response = g_strdup (values[i]);
+    {
+      for (i = 0; names[i]; i++)
+	if (strcmp (names[i], "response") == 0)
+	  parser_data->response = g_strdup (values[i]);
+    }
   else if (strcmp (element_name, "action-widgets") == 0)
     return;
   else



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