+2009-05-25 Alberto Garcia <agarcia@igalia.com>
+
+ * hildon/hildon-app-menu.c
+ (hildon_app_menu_insert, hildon_app_menu_add_filter):
+ Don't call gtk_widget_show() on added items.
+
+ Fixes: NB#109063 (HildonAppMenu shouldn't show its items
+ automatically when they're added)
+
2009-05-20 Alberto Garcia <agarcia@igalia.com>
* hildon/hildon-banner.c
HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH);
/* Add the item to the menu */
- gtk_widget_show (GTK_WIDGET (item));
g_object_ref_sink (item);
priv->buttons = g_list_insert (priv->buttons, item, position);
- hildon_app_menu_repack_items (menu, position);
+ if (GTK_WIDGET_VISIBLE (item))
+ hildon_app_menu_repack_items (menu, position);
/* Enable accelerators */
g_signal_connect (item, "can-activate-accel", G_CALLBACK (can_activate_accel), NULL);
HILDON_SIZE_FINGER_HEIGHT | HILDON_SIZE_AUTO_WIDTH);
/* Add the filter to the menu */
- gtk_widget_show (GTK_WIDGET (filter));
g_object_ref_sink (filter);
priv->filters = g_list_append (priv->filters, filter);
- hildon_app_menu_repack_filters (menu);
+ if (GTK_WIDGET_VISIBLE (filter))
+ hildon_app_menu_repack_filters (menu);
/* Enable accelerators */
g_signal_connect (filter, "can-activate-accel", G_CALLBACK (can_activate_accel), NULL);