Commit f6131086 authored by Johannes Schmid's avatar Johannes Schmid Committed by Johannes Schmid

Don't destroy widgets where you don't own a reference (fixes some

2009-02-02  Johannes Schmid  <jhs@gnome.org>

	* plugins/debug-manager/sharedlib.c (destroy_sharedlibs_gui):
	* plugins/debug-manager/signals.c (destroy_signals_gui):
	* plugins/document-manager/anjuta-docman.c
	(anjuta_docman_remove_document):
	Don't destroy widgets where you don't own a reference (fixes some gtk-criticals)

svn path=/trunk/; revision=4675
parent a78d892c
2009-02-02 Johannes Schmid <jhs@gnome.org>
* plugins/debug-manager/sharedlib.c (destroy_sharedlibs_gui):
* plugins/debug-manager/signals.c (destroy_signals_gui):
* plugins/document-manager/anjuta-docman.c
(anjuta_docman_remove_document):
Don't destroy widgets where you don't own a reference (fixes some gtk-criticals)
2009-02-01 Sébastien Granjoux <seb.sfo@free.fr>
* plugins/message-view/plugin.c,
......@@ -199,9 +199,7 @@ sharedlibs_ui_create_treeview_and_store (Sharedlibs *sl)
static void
destroy_sharedlibs_gui (Sharedlibs *sl)
{
gtk_widget_destroy(sl->widgets.window);
gtk_widget_destroy(sl->widgets.menu);
g_object_unref (sl->widgets.store);
}
static void
......
......@@ -337,9 +337,7 @@ static GtkActionEntry actions_signals_program_stopped[] = {
static void
destroy_signals_gui (Signals *sg)
{
gtk_widget_destroy (sg->widgets.window);
gtk_widget_destroy (sg->widgets.menu);
g_object_unref (sg->widgets.store);
}
static void
......
......@@ -1025,7 +1025,6 @@ anjuta_docman_remove_document (AnjutaDocman *docman, IAnjutaDocument *doc)
page = anjuta_docman_get_page_for_document (docman, doc);
if (page)
{
gtk_container_remove (GTK_CONTAINER (page->widget), GTK_WIDGET(doc));
gtk_container_remove (GTK_CONTAINER (docman), page->widget);
docman->priv->pages = g_list_remove (docman->priv->pages, (gpointer)page);
if (!g_list_length (docman->priv->pages))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment