window: implement removing and undoing the removal of a calendar

We're still facing the bug where the just-added calendar segfaults when removed.
This commit is contained in:
Georges Basile Stavracas Neto
2015-05-25 12:35:26 -04:00
committed by Erick Pérez Castellanos
parent 9d222e47fc
commit 9df8b8077d
5 changed files with 93 additions and 16 deletions
+1
View File
@@ -100,6 +100,7 @@
<property name="receives_default">True</property>
<property name="halign">end</property>
<property name="margin_top">6</property>
<signal name="clicked" handler="action_widget_activated" object="GcalSourceDialog" swapped="no"/>
<style>
<class name="destructive-action"/>
</style>
+1 -4
View File
@@ -145,10 +145,7 @@
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="no_show_all">True</property>
<signal name="clicked" handler="undo_remove_event" object="GcalWindow" swapped="no"/>
<style>
<class name="text-button"/>
</style>
<signal name="clicked" handler="undo_remove_action" object="GcalWindow" swapped="no"/>
</object>
<packing>
<property name="left_attach">1</property>