[nautilus/gnome-3-20] files-view: add default response to file chooser
- From: Carlos Soriano Sánchez <csoriano src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/gnome-3-20] files-view: add default response to file chooser
- Date: Thu, 17 Mar 2016 17:57:50 +0000 (UTC)
commit f790d2980ff769224e97702117d8e07a8a8da807
Author: Carlos Soriano <csoriano gnome org>
Date: Thu Mar 17 16:03:33 2016 +0100
files-view: add default response to file chooser
So the file chooser adds a hint about it, making the button blue.
src/nautilus-files-view.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-files-view.c b/src/nautilus-files-view.c
index f0110d4..cdf7b59 100644
--- a/src/nautilus-files-view.c
+++ b/src/nautilus-files-view.c
@@ -5279,6 +5279,10 @@ copy_or_move_selection (NautilusFilesView *view,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_Select"), GTK_RESPONSE_OK,
NULL);
+
+ gtk_dialog_set_default_response (GTK_DIALOG (dialog),
+ GTK_RESPONSE_OK);
+
gtk_window_set_destroy_with_parent (GTK_WINDOW (dialog), TRUE);
gtk_window_set_modal (GTK_WINDOW (dialog), TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]