[glade3] Minor code cleanup in glade-command.c
- From: Tristan Van Berkom <tvb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glade3] Minor code cleanup in glade-command.c
- Date: Wed, 15 Dec 2010 12:43:03 +0000 (UTC)
commit 34427f75e3ef2722906567b1fb2e22dcab5d64fb
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date: Wed Dec 15 21:42:42 2010 +0900
Minor code cleanup in glade-command.c
gladeui/glade-command.c | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
---
diff --git a/gladeui/glade-command.c b/gladeui/glade-command.c
index ab4ef03..3394bd8 100644
--- a/gladeui/glade-command.c
+++ b/gladeui/glade-command.c
@@ -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;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]