aboutsummaryrefslogtreecommitdiffstats
path: root/libempathy-gtk/empathy-individual-view.c
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:25:53 +0800
commit9b5ff539e9075f4efb718dd9473c07aaf37c990a (patch)
treeec2b210f11d249f6170caac383843a1f56af76dd /libempathy-gtk/empathy-individual-view.c
parent82aa40180c8cdf81ea3d8a7b217f3435a2ffcbbc (diff)
downloadgsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar.gz
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar.bz2
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar.lz
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar.xz
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.tar.zst
gsoc2013-empathy-9b5ff539e9075f4efb718dd9473c07aaf37c990a.zip
individual_view_remove_dialog_show: set a mnemonic on the 'Delete and Block' button
Diffstat (limited to 'libempathy-gtk/empathy-individual-view.c')
-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 172b1facd..2c1f3b76d 100644
--- a/libempathy-gtk/empathy-individual-view.c
+++ b/libempathy-gtk/empathy-individual-view.c
@@ -2283,8 +2283,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),
- _("Delete 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,