[gitg] Set default button clone at clone widget
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] Set default button clone at clone widget
- Date: Mon, 29 Apr 2013 08:21:02 +0000 (UTC)
commit b8c14667967011e5a24af79bc1feba8df7492337
Author: Jose Manuel Pintor Freire <jmpintorfreire gmail com>
Date: Mon Apr 29 08:41:37 2013 +0200
Set default button clone at clone widget
https://bugzilla.gnome.org/show_bug.cgi?id=699129
Signed-off-by: Ignacio Casal Quinteiro <icq gnome org>
gitg/gitg-window.vala | 1 +
gitg/resources/ui/gitg-clone-dialog.ui | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index a229407..595266c 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -212,6 +212,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable, Gtk.
dlg.modal = true;
dlg.set_transient_for(this);
dlg.set_resizable(false);
+ dlg.set_default_response(Gtk.ResponseType.OK);
var default_dir = d_main_settings.get_string("clone-directory");
diff --git a/gitg/resources/ui/gitg-clone-dialog.ui b/gitg/resources/ui/gitg-clone-dialog.ui
index 6c049fb..25d8318 100644
--- a/gitg/resources/ui/gitg-clone-dialog.ui
+++ b/gitg/resources/ui/gitg-clone-dialog.ui
@@ -35,6 +35,7 @@
<property name="visible">True</property>
<property name="sensitive">False</property>
<property name="can_focus">True</property>
+ <property name="can_default">True</property>
<property name="receives_default">True</property>
<property name="use_underline">True</property>
</object>
@@ -81,6 +82,7 @@
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hexpand">True</property>
+ <property name="activates_default">True</property>
</object>
<packing>
<property name="left_attach">1</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]