[gnome-power-manager] 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] Convert a floating reference to prevent a GTK warning
- Date: Sat, 18 Apr 2009 05:02:09 -0400 (EDT)
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]