GObject *menu_item;
gint *menu_data=NULL;
- g_return_if_fail (view->menu != NULL);
+ if (view->menu == NULL)
+ return;
menu_children = gtk_container_get_children (GTK_CONTAINER (view->menu));
gint display=1;
gint index=1;
- g_return_if_fail (view);
+ if (view->menu == NULL)
+ return;
egg_recent_view_gtk_clear (view);
g_free (view->uid);
- g_object_unref (view->menu);
g_object_unref (view->model);
#ifndef USE_STABLE_LIBGNOMEUI
g_object_unref (view->theme);
{
g_return_if_fail (view);
g_return_if_fail (EGG_IS_RECENT_VIEW_GTK (view));
- g_return_if_fail (menu);
if (view->menu != NULL)
- g_object_unref (view->menu);
+ g_object_remove_weak_pointer (G_OBJECT (view->menu),
+ (gpointer *) &view->menu);
view->menu = menu;
- g_object_ref (view->menu);
+
+ if (view->menu != NULL)
+ g_object_add_weak_pointer (G_OBJECT (view->menu),
+ (gpointer *) &view->menu);
}
/**