gdl r441 - in trunk: . gdl



Author: sgranjoux
Date: Mon Feb 18 21:53:34 2008
New Revision: 441
URL: http://svn.gnome.org/viewvc/gdl?rev=441&view=rev

Log:
	* gdl/gdl-dock-item-grip.c:
	Avoid glib critical warnings


Modified:
   trunk/ChangeLog
   trunk/gdl/gdl-dock-item-grip.c

Modified: trunk/gdl/gdl-dock-item-grip.c
==============================================================================
--- trunk/gdl/gdl-dock-item-grip.c	(original)
+++ trunk/gdl/gdl-dock-item-grip.c	Mon Feb 18 21:53:34 2008
@@ -194,9 +194,11 @@
         ensure_title_and_icon_pixbuf (grip);
 
     } else if (strcmp (pspec->name, "long-name") == 0) {
+        if (grip->_priv->title_layout) {
+                g_object_unref (grip->_priv->title_layout);
+                grip->_priv->title_layout = NULL;
+        }
         g_free (grip->_priv->title);
-        g_object_unref (grip->_priv->title_layout);
-        grip->_priv->title_layout = NULL;
         grip->_priv->title = NULL;
         ensure_title_and_icon_pixbuf (grip);
 	gtk_widget_queue_draw (GTK_WIDGET (grip));



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