Commit 34427f75 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

Minor code cleanup in glade-command.c

parent 8c711609
......@@ -1735,12 +1735,11 @@ glade_command_create(GladeWidgetAdaptor *adaptor, GladeWidget *parent, GladePlac
return NULL;
}
widgets = g_list_prepend(widgets, widget);
glade_command_push_group(_("Create %s"), g_list_length (widgets) == 1 ? widget->name : _("multiple"));
glade_command_push_group(_("Create %s"), widget->name);
glade_command_add(widgets, parent, placeholder, FALSE);
glade_command_pop_group();
if (widgets)
g_list_free(widgets);
g_list_free(widgets);
return widget;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment