[california] Allow list box double-click in .ics import: Bug #736044



commit 7e064827935b30b24f33488efb9891b3658a657d
Author: Jim Nelson <jim yorba org>
Date:   Tue Sep 9 14:09:08 2014 -0700

    Allow list box double-click in .ics import: Bug #736044

 src/host/host-import-calendar.vala |    2 +-
 src/rc/calendar-import.ui          |    3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/host/host-import-calendar.vala b/src/host/host-import-calendar.vala
index 17b821b..dfe2e62 100644
--- a/src/host/host-import-calendar.vala
+++ b/src/host/host-import-calendar.vala
@@ -59,7 +59,7 @@ public class ImportCalendar : Gtk.Dialog {
     }
     
     [GtkCallback]
-    private void on_import_button_clicked() {
+    private void on_activated() {
         chosen = model.selected;
         
         response(Gtk.ResponseType.OK);
diff --git a/src/rc/calendar-import.ui b/src/rc/calendar-import.ui
index 7e7bb60..ff03b1b 100644
--- a/src/rc/calendar-import.ui
+++ b/src/rc/calendar-import.ui
@@ -40,7 +40,7 @@
                 <property name="has_default">True</property>
                 <property name="receives_default">True</property>
                 <property name="use_underline">True</property>
-                <signal name="clicked" handler="on_import_button_clicked" 
object="CaliforniaHostImportCalendar" swapped="no"/>
+                <signal name="clicked" handler="on_activated" object="CaliforniaHostImportCalendar" 
swapped="no"/>
                 <style>
                   <class name="suggested-action"/>
                 </style>
@@ -104,6 +104,7 @@
                         <property name="hexpand">True</property>
                         <property name="vexpand">True</property>
                         <property name="activate_on_single_click">False</property>
+                        <signal name="row-activated" handler="on_activated" 
object="CaliforniaHostImportCalendar" swapped="no"/>
                       </object>
                     </child>
                   </object>


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