[gedit/wip/tabs] Cleanup items in toggled after
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gedit/wip/tabs] Cleanup items in toggled after
- Date: Thu, 11 Jul 2013 14:58:40 +0000 (UTC)
commit 0361c31de909253d9316362c68b080e70a4084c1
Author: Ignacio Casal Quinteiro <ignacio casal nice-software com>
Date: Thu Jul 11 16:46:49 2013 +0200
Cleanup items in toggled after
gedit/gedit-notebook.c | 13 +++++++++++--
1 files changed, 11 insertions(+), 2 deletions(-)
---
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index f0b0128..851893f 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -578,8 +578,6 @@ populate_menu (GeditNotebook *notebook)
GList *l, *children;
gint i;
- g_menu_remove_all (priv->documents_menu);
-
children = gtk_container_get_children (GTK_CONTAINER (notebook));
for (l = children, i = 0; l != NULL; l = g_list_next (l), i++)
{
@@ -612,6 +610,15 @@ on_documents_button_toggled (GtkToggleButton *button,
}
static void
+on_documents_button_toggled_after (GtkToggleButton *button,
+ GeditNotebook *notebook)
+{
+ GeditNotebookPrivate *priv = notebook->priv;
+
+ g_menu_remove_all (priv->documents_menu);
+}
+
+static void
gedit_notebook_init (GeditNotebook *notebook)
{
GeditNotebookPrivate *priv;
@@ -652,6 +659,8 @@ gedit_notebook_init (GeditNotebook *notebook)
g_signal_connect (priv->documents_button, "toggled",
G_CALLBACK (on_documents_button_toggled), notebook);
+ g_signal_connect_after (priv->documents_button, "toggled",
+ G_CALLBACK (on_documents_button_toggled_after), notebook);
}
static GtkWidget *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]