[gimp/gimp-2-8] Bug 739486 - Enter doesn't confirm "export image as brush"



commit e34a97a46b27f77dfd436d79a7a11e9fbde25788
Author: Michael Natterer <mitch gimp org>
Date:   Sat Nov 1 15:00:08 2014 +0100

    Bug 739486 - Enter doesn't confirm "export image as brush"
    
    Set the "activates-default" property on the spinbutton and entry in
    the file-gbr-save dialog.
    
    (cherry picked from commit 51c35d4c78afd7f3f1cd784a7be1360bbc01d85c)

 plug-ins/common/file-gbr.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plug-ins/common/file-gbr.c b/plug-ins/common/file-gbr.c
index 4b7e7c3..b028100 100644
--- a/plug-ins/common/file-gbr.c
+++ b/plug-ins/common/file-gbr.c
@@ -782,6 +782,7 @@ save_dialog (void)
 
   spinbutton = gimp_spin_button_new (&adj,
                                      info.spacing, 1, 1000, 1, 10, 0, 1, 0);
+  gtk_entry_set_activates_default (GTK_ENTRY (spinbutton), TRUE);
   gimp_table_attach_aligned (GTK_TABLE (table), 0, 0,
                              _("Spacing:"), 1.0, 0.5,
                              spinbutton, 1, TRUE);
@@ -793,6 +794,7 @@ save_dialog (void)
   entry = gtk_entry_new ();
   gtk_widget_set_size_request (entry, 200, -1);
   gtk_entry_set_text (GTK_ENTRY (entry), info.description);
+  gtk_entry_set_activates_default (GTK_ENTRY (entry), TRUE);
   gimp_table_attach_aligned (GTK_TABLE (table), 0, 1,
                              _("Description:"), 1.0, 0.5,
                              entry, 1, FALSE);


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