[california/wip/725788-recurring: 2/2] Don't allow update/remove of recurring events



commit c8ba40679b837255236283604537b8c55e6abd83
Author: Jim Nelson <jim yorba org>
Date:   Fri Mar 7 19:15:52 2014 -0800

    Don't allow update/remove of recurring events

 src/host/host-show-event.vala |   15 +++++++++++++++
 1 files changed, 15 insertions(+), 0 deletions(-)
---
diff --git a/src/host/host-show-event.vala b/src/host/host-show-event.vala
index afb5367..b55c0ac 100644
--- a/src/host/host-show-event.vala
+++ b/src/host/host-show-event.vala
@@ -11,6 +11,12 @@ public class ShowEvent : Gtk.Grid {
     [GtkChild]
     private Gtk.Label text_label;
     
+    [GtkChild]
+    private Gtk.Button update_button;
+    
+    [GtkChild]
+    private Gtk.Button remove_button;
+    
     private new Component.Event event;
     
     public signal void remove_event(Component.Event event);
@@ -83,6 +89,15 @@ public class ShowEvent : Gtk.Grid {
         add_lf_lf(builder).append_printf("<small>%s</small>", Markup.escape_text(span));
         
         text_label.label = builder.str;
+        
+        // don't current support updating or removing recurring events properly; see
+        // https://bugzilla.gnome.org/show_bug.cgi?id=725786
+        // https://bugzilla.gnome.org/show_bug.cgi?id=725787
+        bool visible = !event.is_recurring;
+        update_button.visible = visible;
+        update_button.no_show_all = !visible;
+        remove_button.visible = visible;
+        remove_button.no_show_all = !visible;
     }
     
     // Adds two linefeeds if there's existing text


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