gnome-terminal r2852 - trunk/src
- From: chpe svn gnome org
- To: svn-commits-list gnome org
- Subject: gnome-terminal r2852 - trunk/src
- Date: Sat, 31 May 2008 18:36:55 +0000 (UTC)
Author: chpe
Date: Sat May 31 18:36:55 2008
New Revision: 2852
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=2852&view=rev
Log:
For each tab switch, we were getting 2 switch-page signals. Fix this by blocking the signal handler on the tab action while setting it to active.
Modified:
trunk/src/terminal-tabs-menu.c
Modified: trunk/src/terminal-tabs-menu.c
==============================================================================
--- trunk/src/terminal-tabs-menu.c (original)
+++ trunk/src/terminal-tabs-menu.c Sat May 31 18:36:55 2008
@@ -277,7 +277,9 @@
screen = terminal_screen_container_get_screen (container);
action = g_object_get_data (G_OBJECT (screen), DATA_KEY);
+ g_signal_handlers_block_by_func (action, G_CALLBACK (tab_action_activate_cb), menu);
gtk_toggle_action_set_active (GTK_TOGGLE_ACTION (action), TRUE);
+ g_signal_handlers_unblock_by_func (action, G_CALLBACK (tab_action_activate_cb), menu);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]