summaryrefslogtreecommitdiff
path: root/gtk/gtknotebook.c
diff options
context:
space:
mode:
authorJonathan Blandford <jrb@redhat.com>2001-12-12 20:10:52 +0000
committerJonathan Blandford <jrb@src.gnome.org>2001-12-12 20:10:52 +0000
commit59bdb19b0ebd20f1196a15a2fc1c2f6307102646 (patch)
tree87a0de2f079ee5f5011fda519f02c41623c2bce3 /gtk/gtknotebook.c
parenta4d12691fbd0b9d6fe47134df06b71f7ca76ef00 (diff)
downloadgtk+-59bdb19b0ebd20f1196a15a2fc1c2f6307102646.tar.gz
keep in sync with insert_page_menu. Code duplication is bad.
Wed Dec 12 15:01:33 2001 Jonathan Blandford <jrb@redhat.com> * gtk/gtknotebook.c (gtk_notebook_set_tab_label): keep in sync with insert_page_menu. Code duplication is bad. * gtk/gtklabel.c (gtk_label_mnemonic_activate): Whoops -- got the wrong fix yesterday.
Diffstat (limited to 'gtk/gtknotebook.c')
-rw-r--r--gtk/gtknotebook.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/gtk/gtknotebook.c b/gtk/gtknotebook.c
index 962dc26bf5..6c3466c2f1 100644
--- a/gtk/gtknotebook.c
+++ b/gtk/gtknotebook.c
@@ -4494,6 +4494,7 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
if (page->tab_label == tab_label)
return;
+
gtk_notebook_remove_tab_label (notebook, page);
if (tab_label)
@@ -4518,6 +4519,13 @@ gtk_notebook_set_tab_label (GtkNotebook *notebook,
}
}
+ if (page->tab_label)
+ page->mnemonic_activate_signal =
+ gtk_signal_connect (GTK_OBJECT (page->tab_label),
+ "mnemonic_activate",
+ (GtkSignalFunc) gtk_notebook_mnemonic_activate_switch_page,
+ notebook);
+
if (notebook->show_tabs && GTK_WIDGET_VISIBLE (child))
{
gtk_widget_show (page->tab_label);