mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Avoid adding unnecessary trailing newlines to g_warning calls.
2008-01-06 Johan Dahlin <johan@gnome.org> * gtk/gtkbuilder.c: Avoid adding unnecessary trailing newlines to g_warning calls. svn path=/trunk/; revision=19315
This commit is contained in:
parent
8568de818a
commit
bf4f21118a
@ -1,5 +1,8 @@
|
||||
2008-01-06 Johan Dahlin <johan@gnome.org>
|
||||
|
||||
* gtk/gtkbuilder.c: Avoid adding unnecessary trailing newlines
|
||||
to g_warning calls.
|
||||
|
||||
* gtk/gtktreestore.c (tree_model_end_element):
|
||||
Remove an unused variable
|
||||
|
||||
|
@ -275,7 +275,7 @@ gtk_builder_get_parameters (GtkBuilder *builder,
|
||||
prop->name);
|
||||
if (!pspec)
|
||||
{
|
||||
g_warning ("Unknown property: %s.%s\n",
|
||||
g_warning ("Unknown property: %s.%s",
|
||||
g_type_name (object_type), prop->name);
|
||||
continue;
|
||||
}
|
||||
@ -508,7 +508,7 @@ _gtk_builder_add (GtkBuilder *builder,
|
||||
|
||||
if (!child_info->parent)
|
||||
{
|
||||
g_warning ("%s: Not adding, No parent\n",
|
||||
g_warning ("%s: Not adding, No parent",
|
||||
gtk_buildable_get_name (GTK_BUILDABLE (object)));
|
||||
return;
|
||||
}
|
||||
@ -570,7 +570,7 @@ gtk_builder_apply_delayed_properties (GtkBuilder *builder)
|
||||
pspec = g_object_class_find_property (G_OBJECT_CLASS (oclass),
|
||||
property->name);
|
||||
if (!pspec)
|
||||
g_warning ("Unknown property: %s.%s\n", g_type_name (object_type),
|
||||
g_warning ("Unknown property: %s.%s", g_type_name (object_type),
|
||||
property->name);
|
||||
else
|
||||
{
|
||||
@ -578,7 +578,7 @@ gtk_builder_apply_delayed_properties (GtkBuilder *builder)
|
||||
|
||||
obj = g_hash_table_lookup (builder->priv->objects, property->value);
|
||||
if (!obj)
|
||||
g_warning ("No object called: %s\n", property->value);
|
||||
g_warning ("No object called: %s", property->value);
|
||||
else
|
||||
g_object_set (object, property->name, obj, NULL);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user