[gnome-settings-daemon/gnome-3-18] wacom: Remove double weak ref



commit 56e8c83300c2d047051ff629bf662e6fadd8d306
Author: Carlos Garnacho <carlosg gnome org>
Date:   Fri Jan 22 21:24:47 2016 +0100

    wacom: Remove double weak ref
    
    We're doing this call twice. This is safe, but unneeded.

 plugins/wacom/gsd-wacom-manager.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
---
diff --git a/plugins/wacom/gsd-wacom-manager.c b/plugins/wacom/gsd-wacom-manager.c
index 8e1ad3b..2604b87 100644
--- a/plugins/wacom/gsd-wacom-manager.c
+++ b/plugins/wacom/gsd-wacom-manager.c
@@ -993,8 +993,6 @@ osd_window_toggle_visibility (GsdWacomManager *manager,
 
        widget = gsd_wacom_osd_window_new (device, NULL);
 
-       g_object_add_weak_pointer (G_OBJECT (widget), (gpointer *) &manager->priv->osd_window);
-
        g_signal_connect (widget, "focus-out-event",
                          G_CALLBACK(osd_window_on_focus_out_event), manager);
        g_object_add_weak_pointer (G_OBJECT (widget), (gpointer *) &manager->priv->osd_window);


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