aboutsummaryrefslogtreecommitdiff
path: root/hardinfo2/shell.c
diff options
context:
space:
mode:
authorLeandro A. F. Pereira <leandro@hardinfo.org>2007-10-09 12:25:57 +0000
committerLeandro A. F. Pereira <leandro@hardinfo.org>2007-10-09 12:25:57 +0000
commitd5160894773f5be501469fd3bba06211000ca798 (patch)
tree27c0325539bd730c456d5e6e8b9be1bb92196f11 /hardinfo2/shell.c
parent1435676447fae1584c9a38c3465690387bd7413a (diff)
Cleanups, plug memleak
Diffstat (limited to 'hardinfo2/shell.c')
-rw-r--r--hardinfo2/shell.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/hardinfo2/shell.c b/hardinfo2/shell.c
index c43a2db6..0d32f2a9 100644
--- a/hardinfo2/shell.c
+++ b/hardinfo2/shell.c
@@ -419,8 +419,6 @@ static void add_module_to_menu(gchar * name, GdkPixbuf * pixbuf)
{
gchar *about_module = g_strdup_printf("AboutModule%s", name);
- stock_icon_register_pixbuf(pixbuf, name);
-
GtkActionEntry entries[] = {
{
name, /* name */
@@ -440,6 +438,8 @@ static void add_module_to_menu(gchar * name, GdkPixbuf * pixbuf)
},
};
+ stock_icon_register_pixbuf(pixbuf, name);
+
gtk_action_group_add_actions(shell->action_group, entries, 2, NULL);
gtk_ui_manager_add_ui(shell->ui_manager,
@@ -458,8 +458,6 @@ static void
add_module_entry_to_view_menu(gchar * module, gchar * name,
GdkPixbuf * pixbuf, GtkTreeIter * iter)
{
- stock_icon_register_pixbuf(pixbuf, name);
-
GtkActionEntry entries[] = {
{
name, /* name */
@@ -471,6 +469,7 @@ add_module_entry_to_view_menu(gchar * module, gchar * name,
},
};
+ stock_icon_register_pixbuf(pixbuf, name);
gtk_action_group_add_actions(shell->action_group, entries, 1, iter);
gtk_ui_manager_add_ui(shell->ui_manager,