[zenity/gnome-2-32] Add default activation on entry.



commit 13952454ed100a8df717d71c4e6e53da71d3b3e9
Author: Luis Medinas <lmedinas gnome org>
Date:   Wed Sep 29 12:26:52 2010 +0100

    Add default activation on entry.
    
    Fixes bgo#630884 - Zenity --password dialog doesn't have a default
    action

 src/password.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/password.c b/src/password.c
index 00896ea..3d9311a 100644
--- a/src/password.c
+++ b/src/password.c
@@ -123,6 +123,8 @@ void zenity_password_dialog (ZenityData *data, ZenityPasswordData *password_data
   password_data->entry_password = gtk_entry_new();
   gtk_entry_set_visibility(GTK_ENTRY(password_data->entry_password), 
                            FALSE);
+  gtk_entry_set_activates_default (GTK_ENTRY(password_data->entry_password),
+				   TRUE);
   gtk_box_pack_start(GTK_BOX(vbox_entries),
                      password_data->entry_password,
                      TRUE,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]