From d79f733942e7e9b308cc1e5691e0fd3d2ba697cc Mon Sep 17 00:00:00 2001 From: Chris Toshok Date: Mon, 27 Jan 2003 06:23:58 +0000 Subject: ref/sink the pilot settings to clear up that gtk warning. 2003-01-26 Chris Toshok * e-pilot-settings.c (e_pilot_settings_new): ref/sink the pilot settings to clear up that gtk warning. svn path=/trunk/; revision=19644 --- e-util/e-pilot-settings.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'e-util/e-pilot-settings.c') diff --git a/e-util/e-pilot-settings.c b/e-util/e-pilot-settings.c index 9eed8a9f79..7649f60287 100644 --- a/e-util/e-pilot-settings.c +++ b/e-util/e-pilot-settings.c @@ -114,7 +114,11 @@ init (EPilotSettings *ps) GtkWidget * e_pilot_settings_new (void) { - return g_object_new (E_TYPE_PILOT_SETTINGS, NULL); + GtkWidget *w = g_object_new (E_TYPE_PILOT_SETTINGS, NULL); + g_object_ref (w); + gtk_object_sink (GTK_OBJECT (w)); + + return w; } gboolean -- cgit