[gnome-disk-utility] Focus cancel button in confirmation dialogs
- From: David Zeuthen <davidz src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-disk-utility] Focus cancel button in confirmation dialogs
- Date: Sat, 24 Nov 2012 22:22:45 +0000 (UTC)
commit 377770297f57d2bc7179156e0bbf90857d3698f1
Author: David Zeuthen <zeuthen gmail com>
Date: Sat Nov 24 17:22:14 2012 -0500
Focus cancel button in confirmation dialogs
Signed-off-by: David Zeuthen <zeuthen gmail com>
src/libgdu/gduutils.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/libgdu/gduutils.c b/src/libgdu/gduutils.c
index 56ed2d9..4f65343 100644
--- a/src/libgdu/gduutils.c
+++ b/src/libgdu/gduutils.c
@@ -724,6 +724,7 @@ gdu_utils_show_confirmation (GtkWindow *parent_window,
affirmative_verb,
GTK_RESPONSE_OK);
+ gtk_widget_grab_focus (gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_CANCEL));
gtk_widget_show_all (dialog);
response = gtk_dialog_run (GTK_DIALOG (dialog));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]