[gnome-photos/wip/foo: 3/10] properties-dialog: Set a default response and let it be activated
- From: Debarshi Ray <debarshir src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-photos/wip/foo: 3/10] properties-dialog: Set a default response and let it be activated
- Date: Tue, 26 Mar 2013 21:13:26 +0000 (UTC)
commit 3977a6903ea4509a7315f090bc391774f0a126a7
Author: Debarshi Ray <debarshir gnome org>
Date: Mon Mar 25 21:27:31 2013 +0100
properties-dialog: Set a default response and let it be activated
src/photos-properties-dialog.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/photos-properties-dialog.c b/src/photos-properties-dialog.c
index 3e708b1..9abedb9 100644
--- a/src/photos-properties-dialog.c
+++ b/src/photos-properties-dialog.c
@@ -1,6 +1,6 @@
/*
* Photos - access, organize and share your photos on GNOME
- * Copyright © 2012 Red Hat, Inc.
+ * Copyright © 2012, 2013 Red Hat, Inc.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
@@ -202,6 +202,7 @@ photos_properties_dialog_constructed (GObject *object)
priv->title_entry = gtk_entry_new ();
gtk_widget_set_halign (priv->title_entry, GTK_ALIGN_START);
gtk_widget_set_hexpand (priv->title_entry, TRUE);
+ gtk_entry_set_activates_default (GTK_ENTRY (priv->title_entry), TRUE);
gtk_entry_set_text (GTK_ENTRY (priv->title_entry), name);
gtk_editable_set_editable (GTK_EDITABLE (priv->title_entry), TRUE);
@@ -326,6 +327,7 @@ photos_properties_dialog_init (PhotosPropertiesDialog *self)
priv->item_mngr = photos_item_manager_new ();
gtk_dialog_add_button (GTK_DIALOG (self), _("Done"), GTK_RESPONSE_OK);
+ gtk_dialog_set_default_response (GTK_DIALOG (self), GTK_RESPONSE_OK);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]