[gnome-power-manager/gnome-2-26] Convert a floating reference to prevent a GTK warning
- From: Richard Hughes <rhughes src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnome-power-manager/gnome-2-26] Convert a floating reference to prevent a GTK warning
- Date: Sat, 18 Apr 2009 13:17:16 -0400 (EDT)
commit 7ded8edfd01fe3eeb04ecaee14b17dd662c08342
Author: Richard Hughes <richard hughsie com>
Date: Sat Apr 18 18:09:34 2009 +0100
Convert a floating reference to prevent a GTK warning
---
src/gpm-tray-icon.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c
index 3b8f2db..332670d 100644
--- a/src/gpm-tray-icon.c
+++ b/src/gpm-tray-icon.c
@@ -355,7 +355,9 @@ static void
gpm_tray_icon_popup_cleared_cd (GtkWidget *widget, GpmTrayIcon *icon)
{
g_return_if_fail (GPM_IS_TRAY_ICON (icon));
- egg_debug ("clear tray (icon = %p)", 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]