aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-14 21:20:29 +0800
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>2011-03-14 21:47:06 +0800
commit525107a21db785a0105c68393a148dc1bfaacc4c (patch)
tree04d2535de2751288dd9471f9015d2e5652ed882d
parent07ecd3f4d9cc71d4192599a89a9c8f45f7958c3e (diff)
downloadgsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar.gz
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar.bz2
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar.lz
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar.xz
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.tar.zst
gsoc2013-empathy-525107a21db785a0105c68393a148dc1bfaacc4c.zip
individual_view_remove_dialog_show: set a mnemonic on the 'Delete and Block' button
-rw-r--r--libempathy-gtk/empathy-individual-view.c15
1 files changed, 13 insertions, 2 deletions
diff --git a/libempathy-gtk/empathy-individual-view.c b/libempathy-gtk/empathy-individual-view.c
index 34bb7f32d..f455cd74e 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -2236,8 +2236,19 @@ individual_view_remove_dialog_show (GtkWindow *parent,
GTK_MESSAGE_QUESTION, GTK_BUTTONS_NONE, "%s", message);
if (block_button)
- gtk_dialog_add_button (GTK_DIALOG (dialog),
- _("Remove and Block"), GTK_RESPONSE_REJECT);
+ {
+ GtkWidget *button;
+
+ /* gtk_dialog_add_button() doesn't allow us to pass a string with a
+ * mnemonic so we have to create the button manually. */
+ button = gtk_button_new_with_mnemonic (
+ _("Delete and _Block"));
+
+ gtk_dialog_add_action_widget (GTK_DIALOG (dialog), button,
+ GTK_RESPONSE_REJECT);
+
+ gtk_widget_show (button);
+ }
gtk_dialog_add_buttons (GTK_DIALOG (dialog),
GTK_STOCK_CANCEL, GTK_RESPONSE_NO,