[gitg] User information dialog now saves with Enter/Return key
- From: Sindhu S <sindhus src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gitg] User information dialog now saves with Enter/Return key
- Date: Fri, 14 Jun 2013 13:36:01 +0000 (UTC)
commit 7ef86761abc99b65daf156d28290d237db2fef6f
Author: Sindhu Sundar <sindhus live in>
Date: Sat Jun 8 21:15:50 2013 +0530
User information dialog now saves with Enter/Return key
User information dialog saves data upon edit of either Name or
email fields with Enter/Return key.
Fix tab order of widgets.
gitg/gitg-window.vala | 1 +
gitg/resources/ui/gitg-user-dialog.ui | 6 ++++--
2 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/gitg/gitg-window.vala b/gitg/gitg-window.vala
index b978d38..cf6990b 100644
--- a/gitg/gitg-window.vala
+++ b/gitg/gitg-window.vala
@@ -385,6 +385,7 @@ public class Window : Gtk.ApplicationWindow, GitgExt.Application, Initable
try
{
+ config.refresh();
user_name = config.get_string("user.name");
}
catch {}
diff --git a/gitg/resources/ui/gitg-user-dialog.ui b/gitg/resources/ui/gitg-user-dialog.ui
index bfc5528..48077d5 100644
--- a/gitg/resources/ui/gitg-user-dialog.ui
+++ b/gitg/resources/ui/gitg-user-dialog.ui
@@ -138,7 +138,7 @@
<property name="label" translatable="yes">Cancel</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
@@ -151,7 +151,9 @@
<property name="label" translatable="yes">Save</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
- <property name="receives_default">True</property>
+ <property name="can_default">True</property>
+ <property name="has_default">True</property>
+ <property name="use_stock">True</property>
</object>
<packing>
<property name="expand">False</property>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]