aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-12-10 00:16:06 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-12-19 17:43:00 +0800
commita85a11da129679dcc8a6bfc350462fcf1e877f97 (patch)
tree1466746bd8c3517e44e52c2f5b4bb2227f241196
parente0a06689b716a02927433796dfb1a1cc7b7820e4 (diff)
downloadgsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar.gz
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar.bz2
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar.lz
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar.xz
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.tar.zst
gsoc2013-empathy-a85a11da129679dcc8a6bfc350462fcf1e877f97.zip
empathy_chat_window_present_chat: move to the chat window desktop
This is more coherent with Shell's 'app is ready' notication which moves the view to the app desktop rather than moving the app itself. https://bugzilla.gnome.org/show_bug.cgi?id=649208
-rw-r--r--src/empathy-chat-window.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 9ad6b2975..1bb9de4aa 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -2488,8 +2488,12 @@ empathy_chat_window_present_chat (EmpathyChat *chat,
}
empathy_chat_window_switch_to_chat (window, chat);
- empathy_window_present_with_time (GTK_WINDOW (priv->dialog),
- x_timestamp);
+
+ /* Don't use empathy_window_present_with_time () which would move the window
+ * to our current desktop but move to the window's desktop instead. This is
+ * more coherent with Shell's 'app is ready' notication which moves the view
+ * to the app desktop rather than moving the app itself. */
+ empathy_move_to_window_desktop (GTK_WINDOW (priv->dialog), x_timestamp);
gtk_widget_grab_focus (chat->input_text_view);
}