[gnome-power-manager: 2/4] Convert a floating reference to prevent a GTK warning



commit 9c2a0a161405715be19276904154aedf1b7208b7
Author: Richard Hughes <richard hughsie com>
Date:   Sat Apr 18 09:44:28 2009 +0100

    Convert a floating reference to prevent a GTK warning
---
 src/gpm-tray-icon.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index de8e81b..794d52a 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -354,6 +354,7 @@ gpm_tray_icon_popup_cleared_cd (GtkWidget *widget, GpmTrayIcon *icon)
 {
 	g_return_if_fail (GPM_IS_TRAY_ICON (icon));
 	egg_debug ("clear tray");
+	g_object_ref_sink (widget);
 	g_object_unref (widget);
 }
 



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