[gnome-documents] properties: Set a default response and let it be activated
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-documents] properties: Set a default response and let it be activated
- Date: Mon, 25 Mar 2013 21:58:39 +0000 (UTC)
commit 44e17613f12054da15064afe1edcbf733e599056
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 25 21:46:42 2013 +0100
properties: Set a default response and let it be activated
https://bugzilla.gnome.org/show_bug.cgi?id=696588
src/properties.js | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/properties.js b/src/properties.js
index 04eedd1..abb14bb 100644
--- a/src/properties.js
+++ b/src/properties.js
@@ -57,6 +57,7 @@ const PropertiesDialog = new Lang.Class({
title: _("Properties"),
hexpand: true });
this.widget.add_button(_("Done"), Gtk.ResponseType.OK);
+ this.widget.set_default_response(Gtk.ResponseType.OK);
let grid = new Gtk.Grid ({ orientation: Gtk.Orientation.VERTICAL,
row_homogeneous: true,
@@ -120,7 +121,8 @@ const PropertiesDialog = new Lang.Class({
// Title value
if (doc instanceof Documents.LocalDocument) {
- this._titleEntry = new Gtk.Entry({ text: doc.name,
+ this._titleEntry = new Gtk.Entry({ activates_default: true,
+ text: doc.name,
editable: true,
hexpand: true,
width_chars: 40,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]