[gnome-boxes] wizard-source: Activate on URL entry activation



commit 2c08ea89c1d2a4ee0125500c65017a1142193c20
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Fri Oct 24 17:57:27 2014 +0100

    wizard-source: Activate on URL entry activation
    
    Proxy over the URL entry activation so that wizard continues to the next
    step if user hits 'Enter' key after typing URL.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=733975

 data/ui/wizard-source.ui |    1 +
 src/wizard-source.vala   |    5 +++++
 2 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/data/ui/wizard-source.ui b/data/ui/wizard-source.ui
index 297eada..920ab83 100644
--- a/data/ui/wizard-source.ui
+++ b/data/ui/wizard-source.ui
@@ -227,6 +227,7 @@
                 <property name="margin-top">10</property>
                 <property name="margin-start">20</property>
                 <property name="margin-end">20</property>
+                <signal name="activate" handler="on_url_entry_activated"/>
               </object>
             </child>
 
diff --git a/src/wizard-source.vala b/src/wizard-source.vala
index c30b041..cf8a8f5 100644
--- a/src/wizard-source.vala
+++ b/src/wizard-source.vala
@@ -200,6 +200,11 @@ private class Boxes.WizardSource: Gtk.Stack {
     }
 
     [GtkCallback]
+    private void on_url_entry_activated () {
+        activated ();
+    }
+
+    [GtkCallback]
     private void on_url_back_button_clicked () {
         selected = null;
         page = SourcePage.MAIN;


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