[gedit] Emit the tab-removed signal before the notebook-removed signal



commit 0fa10d0e87dc08fb667e2cd3bdc291631d663375
Author: Garrett Regier <alias301 gmail com>
Date:   Mon Jun 14 15:50:11 2010 -0700

    Emit the tab-removed signal before the notebook-removed signal

 gedit/gedit-multi-notebook.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-multi-notebook.c b/gedit/gedit-multi-notebook.c
index 4e18ee7..6ab9b32 100644
--- a/gedit/gedit-multi-notebook.c
+++ b/gedit/gedit-multi-notebook.c
@@ -286,6 +286,8 @@ notebook_page_removed (GtkNotebook        *notebook,
 		g_object_notify (G_OBJECT (mnb), "active-tab");
 	}
 
+	g_signal_emit (G_OBJECT (mnb), signals[TAB_REMOVED], 0, notebook, tab);
+
 	/* Not last notebook but last tab of the notebook, this means we have
 	   to remove the current notebook */
 	if (num_tabs == 0 && !mnb->priv->removing_notebook &&
@@ -293,8 +295,6 @@ notebook_page_removed (GtkNotebook        *notebook,
 	{
 		remove_notebook (mnb, GTK_WIDGET (notebook));
 	}
-
-	g_signal_emit (G_OBJECT (mnb), signals[TAB_REMOVED], 0, notebook, tab);
 }
 
 static void



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