[gnome-power-manager] Convert a floating reference to prevent a GTK warning



commit 6311e4bee64b769e30409fafb8e024077912b703
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 dd2b971..332670d 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -356,6 +356,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]