[gnome-clocks/wip/vala] Update libgd and remove workaround to fix crash on close



commit 54aeafe260d30369a1730562f12c38306df4499a
Author: Paolo Borelli <pborelli gnome org>
Date:   Sat Feb 16 17:28:21 2013 +0100

    Update libgd and remove workaround to fix crash on close

 libgd            |    2 +-
 src/widgets.vala |    8 ++------
 2 files changed, 3 insertions(+), 7 deletions(-)
---
diff --git a/libgd b/libgd
index 84c4b7c..50c03b3 160000
--- a/libgd
+++ b/libgd
@@ -1 +1 @@
-Subproject commit 84c4b7cb1df54df1cc3d84a2f2574945ade42782
+Subproject commit 50c03b305321e027630f97aef17a74434d9b8980
diff --git a/src/widgets.vala b/src/widgets.vala
index be8e046..3e47e95 100644
--- a/src/widgets.vala
+++ b/src/widgets.vala
@@ -56,15 +56,11 @@ public class Toolbar : Gd.MainToolbar {
 
     public signal void clock_changed (Clock clock);
 
-    public void add_clock (Clock c) {
-        // We do not need to hold a ref to the clock, but we need to be
-        // careful with emitting clock changed
-        unowned Clock clock = c;
-        c.add_weak_pointer (&clock);
+    public void add_clock (Clock clock) {
         var button = add_mode (clock.label) as Gtk.ToggleButton;
         clocks.prepend (clock);
         button.toggled.connect(() => {
-            if (button.active && clock != null) {
+            if (button.active) {
                 clock_changed (clock);
             }
         });


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