gnome_dock_layout_remove_item



Hi all,
Is gnome_dock_layout_remove_item broken or am I missing something in the
following code?

<slightly editted from gnome-libs/libgnomeui/dock-demo.c, the only thing I've
done is to add the call to gnome_dock_layout_remove_item.>

gnome_dock_layout_add_item (layout,
 	                    GNOME_DOCK_ITEM (dock_items[i]),
                            GNOME_DOCK_TOP,
                            i, 0, 0);

gnome_dock_layout_add_to_dock (GNOME_DOCK_LAYOUT (layout),
                                 GNOME_DOCK (dock));
gtk_object_unref (GTK_OBJECT(layout));

gnome_dock_layout_remove_item (gnome_dock_get_layout (GNOME_DOCK (dock)),
			       dock_items[2]);

This enters calls all the correct remove functions, but it doesn't actually
remove the item from the dock. Am I going about it the wrong way?

iain



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]