aboutsummaryrefslogtreecommitdiffstats
path: root/src/empathy-chat-window.c
diff options
context:
space:
mode:
authorDanielle Madeley <danielle.madeley@collabora.co.uk>2011-02-10 10:19:35 +0800
committerChandni Verma <chandniverma2112@gmail.com>2011-03-08 11:10:14 +0800
commit8e95ee8c1455390b18126d2280bcd218777379a8 (patch)
treec4a0a36be938f3a714cc27c1bec71712e1bf202a /src/empathy-chat-window.c
parent630a864d8ebac32fb7c11317308468ddbc535815 (diff)
downloadgsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar.gz
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar.bz2
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar.lz
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar.xz
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.tar.zst
gsoc2013-empathy-8e95ee8c1455390b18126d2280bcd218777379a8.zip
Add a confirmation dialog when you block a contact from the Contact menu
Diffstat (limited to 'src/empathy-chat-window.c')
-rw-r--r--src/empathy-chat-window.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/empathy-chat-window.c b/src/empathy-chat-window.c
index 799a8254d..73856adde 100644
--- a/src/empathy-chat-window.c
+++ b/src/empathy-chat-window.c
@@ -417,12 +417,15 @@ chat_window_contact_menu_update (EmpathyChatWindowPriv *priv,
if (orig_submenu == NULL || !gtk_widget_get_visible (orig_submenu)) {
submenu = empathy_chat_get_contact_menu (priv->current_chat);
+
+ /* gtk_menu_attach_to_widget() doesn't behave nicely here */
+ g_object_set_data (G_OBJECT (submenu), "window", priv->dialog);
+
if (submenu != NULL) {
gtk_menu_item_set_submenu (GTK_MENU_ITEM (menu), submenu);
gtk_widget_show (menu);
gtk_widget_set_sensitive (menu, TRUE);
- }
- else {
+ } else {
gtk_widget_set_sensitive (menu, FALSE);
}
} else {