aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Ruprecht <mike.ruprecht@collabora.co.uk>2010-04-17 16:31:04 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2010-04-19 16:02:48 +0800
commit60597b2520aebd3b13a5e576ec72d53febc15a5f (patch)
tree535027f53f4c7dad7857c90fc0d0e6aa7e69c813
parent72f5c71dcb33e72e9f7b35d3f5c673360443eaa1 (diff)
downloadgsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar.gz
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar.bz2
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar.lz
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar.xz
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.tar.zst
gsoc2013-empathy-60597b2520aebd3b13a5e576ec72d53febc15a5f.zip
Update the Tabs menu when a tab is moved.
Previously when a tab was moved, the Tabs menu didn't update regarding the directions the tab could further be moved. If wrapping is off, a tab on the edge moved one way couldn't be moved back. Fixes #616012
-rw-r--r--src/empathy-chat-window.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 2934d35a8..1e43730a0 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -1078,7 +1078,7 @@ chat_window_tabs_left_activate_cb (GtkAction *action,
{
EmpathyChatWindowPriv *priv;
EmpathyChat *chat;
- gint index_;
+ gint index_, num_pages;
priv = GET_PRIV (window);
@@ -1091,6 +1091,9 @@ chat_window_tabs_left_activate_cb (GtkAction *action,
gtk_notebook_reorder_child (GTK_NOTEBOOK (priv->notebook),
GTK_WIDGET (chat),
index_ - 1);
+
+ num_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (priv->notebook));
+ chat_window_menu_context_update (priv, num_pages);
}
static void
@@ -1099,7 +1102,7 @@ chat_window_tabs_right_activate_cb (GtkAction *action,
{
EmpathyChatWindowPriv *priv;
EmpathyChat *chat;
- gint index_;
+ gint index_, num_pages;
priv = GET_PRIV (window);
@@ -1109,6 +1112,9 @@ chat_window_tabs_right_activate_cb (GtkAction *action,
gtk_notebook_reorder_child (GTK_NOTEBOOK (priv->notebook),
GTK_WIDGET (chat),
index_ + 1);
+
+ num_pages = gtk_notebook_get_n_pages (GTK_NOTEBOOK (priv->notebook));
+ chat_window_menu_context_update (priv, num_pages);
}
static void