[gedit] Update the tab visibility in the page-added handler.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit] Update the tab visibility in the page-added handler.
- Date: Wed, 6 Oct 2010 09:29:17 +0000 (UTC)
commit ebe555eed6112a7eef211184d2d2ea689d0c32a6
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Wed Oct 6 11:28:57 2010 +0200
Update the tab visibility in the page-added handler.
gedit/gedit-notebook.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index 428cd5c..0da5557 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -392,6 +392,8 @@ gedit_notebook_page_added (GtkNotebook *notebook,
"close-clicked",
G_CALLBACK (close_button_clicked_cb),
nb);
+
+ update_tabs_visibility (GEDIT_NOTEBOOK (notebook), FALSE);
}
static void
@@ -519,8 +521,6 @@ gedit_notebook_add_tab (GeditNotebook *nb,
GTK_WIDGET (tab),
TRUE);
- update_tabs_visibility (nb, FALSE);
-
/* The signal handler may have reordered the tabs */
position = gtk_notebook_page_num (GTK_NOTEBOOK (nb),
GTK_WIDGET (tab));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]