[gedit] Do not remove the tabs ourselves.



commit c4b42def51a1c0c2658d139d77b27896b5abc687
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Sun May 23 23:48:55 2010 +0200

    Do not remove the tabs ourselves.
    
    Now that we use the gtknotebook signals there is no need to keep
    removing the tabs ourselves.

 gedit/gedit-notebook.c |   26 --------------------------
 1 files changed, 0 insertions(+), 26 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index b6f5676..5e7a055 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -104,30 +104,6 @@ gedit_notebook_finalize (GObject *object)
 }
 
 static void
-gedit_notebook_destroy (GtkObject *object)
-{
-	GeditNotebook *notebook = GEDIT_NOTEBOOK (object);
-
-	if (!notebook->priv->destroy_has_run)
-	{
-		GList *children, *l;
-
-		children = gtk_container_get_children (GTK_CONTAINER (notebook));
-
-		for (l = children; l != NULL; l = g_list_next (l))
-		{
-			gedit_notebook_remove_tab (notebook,
-						   GEDIT_TAB (l->data));
-		}
-
-		g_list_free (children);
-		notebook->priv->destroy_has_run = TRUE;
-	}
-
-	GTK_OBJECT_CLASS (gedit_notebook_parent_class)->destroy (object);
-}
-
-static void
 gedit_notebook_grab_focus (GtkWidget *widget)
 {
 	GtkNotebook *nb = GTK_NOTEBOOK (widget);
@@ -146,12 +122,10 @@ static void
 gedit_notebook_class_init (GeditNotebookClass *klass)
 {
 	GObjectClass *object_class = G_OBJECT_CLASS (klass);
-	GtkObjectClass *gtkobject_class = GTK_OBJECT_CLASS (klass);
 	GtkWidgetClass *gtkwidget_class = GTK_WIDGET_CLASS (klass);
 	GtkNotebookClass *notebook_class = GTK_NOTEBOOK_CLASS (klass);
 
 	object_class->finalize = gedit_notebook_finalize;
-	gtkobject_class->destroy = gedit_notebook_destroy;
 	gtkwidget_class->grab_focus = gedit_notebook_grab_focus;
 	
 	notebook_class->change_current_page = gedit_notebook_change_current_page;



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