anjuta r4675 - in trunk: . plugins/debug-manager plugins/document-manager



Author: jhs
Date: Sun Feb  1 23:08:29 2009
New Revision: 4675
URL: http://svn.gnome.org/viewvc/anjuta?rev=4675&view=rev

Log:
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)

Modified:
   trunk/ChangeLog
   trunk/plugins/debug-manager/sharedlib.c
   trunk/plugins/debug-manager/signals.c
   trunk/plugins/document-manager/anjuta-docman.c

Modified: trunk/plugins/debug-manager/sharedlib.c
==============================================================================
--- trunk/plugins/debug-manager/sharedlib.c	(original)
+++ trunk/plugins/debug-manager/sharedlib.c	Sun Feb  1 23:08:29 2009
@@ -199,9 +199,7 @@
 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

Modified: trunk/plugins/debug-manager/signals.c
==============================================================================
--- trunk/plugins/debug-manager/signals.c	(original)
+++ trunk/plugins/debug-manager/signals.c	Sun Feb  1 23:08:29 2009
@@ -337,9 +337,7 @@
 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

Modified: trunk/plugins/document-manager/anjuta-docman.c
==============================================================================
--- trunk/plugins/document-manager/anjuta-docman.c	(original)
+++ trunk/plugins/document-manager/anjuta-docman.c	Sun Feb  1 23:08:29 2009
@@ -1025,7 +1025,6 @@
 	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))



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