Add some missing braces
svn path=/trunk/; revision=21005
This commit is contained in:
@ -1,3 +1,12 @@
|
|||||||
|
2008-08-04 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
Bug 545982 – missing braces cause bogus warnings when using GtkBuilder
|
||||||
|
|
||||||
|
* gtk/gtkcelllayout.c:
|
||||||
|
* gtk/gtkdialog.c:
|
||||||
|
* gtk/gtkcontainer.c: Add missing braces to some GtkBuildable
|
||||||
|
implementations. Patch by Antti Kaijanmäki
|
||||||
|
|
||||||
2008-08-05 Tor Lillqvist <tml@novell.com>
|
2008-08-05 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
* gtk/gtktext.c: Cast pointer to gintptr instead of gulong to
|
* gtk/gtktext.c: Cast pointer to gintptr instead of gulong to
|
||||||
|
@ -330,9 +330,11 @@ attributes_start_element (GMarkupParseContext *context,
|
|||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
if (strcmp (element_name, "attribute") == 0)
|
if (strcmp (element_name, "attribute") == 0)
|
||||||
|
{
|
||||||
for (i = 0; names[i]; i++)
|
for (i = 0; names[i]; i++)
|
||||||
if (strcmp (names[i], "name") == 0)
|
if (strcmp (names[i], "name") == 0)
|
||||||
parser_data->attr_name = g_strdup (values[i]);
|
parser_data->attr_name = g_strdup (values[i]);
|
||||||
|
}
|
||||||
else if (strcmp (element_name, "attributes") == 0)
|
else if (strcmp (element_name, "attributes") == 0)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
|
@ -367,9 +367,11 @@ attributes_start_element (GMarkupParseContext *context,
|
|||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
if (strcmp (element_name, "property") == 0)
|
if (strcmp (element_name, "property") == 0)
|
||||||
|
{
|
||||||
for (i = 0; names[i]; i++)
|
for (i = 0; names[i]; i++)
|
||||||
if (strcmp (names[i], "name") == 0)
|
if (strcmp (names[i], "name") == 0)
|
||||||
parser_data->child_prop_name = g_strdup (values[i]);
|
parser_data->child_prop_name = g_strdup (values[i]);
|
||||||
|
}
|
||||||
else if (strcmp (element_name, "packing") == 0)
|
else if (strcmp (element_name, "packing") == 0)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
|
@ -1310,9 +1310,11 @@ attributes_start_element (GMarkupParseContext *context,
|
|||||||
guint i;
|
guint i;
|
||||||
|
|
||||||
if (strcmp (element_name, "action-widget") == 0)
|
if (strcmp (element_name, "action-widget") == 0)
|
||||||
|
{
|
||||||
for (i = 0; names[i]; i++)
|
for (i = 0; names[i]; i++)
|
||||||
if (strcmp (names[i], "response") == 0)
|
if (strcmp (names[i], "response") == 0)
|
||||||
parser_data->response = g_strdup (values[i]);
|
parser_data->response = g_strdup (values[i]);
|
||||||
|
}
|
||||||
else if (strcmp (element_name, "action-widgets") == 0)
|
else if (strcmp (element_name, "action-widgets") == 0)
|
||||||
return;
|
return;
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user