[maemo-commits] [maemo-commits] r11048 - in projects/haf/trunk/hildon-1: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Apr 16 11:03:36 EEST 2007
- Previous message: [maemo-commits] r11046 - projects/haf/trunk/hildon-1
- Next message: [maemo-commits] r11049 - projects/haf/tags/libxml2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: xan Date: 2007-04-16 11:03:34 +0300 (Mon, 16 Apr 2007) New Revision: 11048 Modified: projects/haf/trunk/hildon-1/ChangeLog projects/haf/trunk/hildon-1/src/hildon-bread-crumb.c Log: * src/hildon-bread-crumb.c (hildon_bread_crumb_get_natural_size): don't leak the pango layout. Modified: projects/haf/trunk/hildon-1/ChangeLog =================================================================== --- projects/haf/trunk/hildon-1/ChangeLog 2007-04-16 07:54:38 UTC (rev 11047) +++ projects/haf/trunk/hildon-1/ChangeLog 2007-04-16 08:03:34 UTC (rev 11048) @@ -1,5 +1,10 @@ 2007-04-16 Xan Lopez <xan.lopez at nokia.com> + * src/hildon-bread-crumb.c (hildon_bread_crumb_get_natural_size): + don't leak the pango layout. + +2007-04-16 Xan Lopez <xan.lopez at nokia.com> + * src/hildon.h: * examples/hildon-bread-crumb-trail-example.c: Modified: projects/haf/trunk/hildon-1/src/hildon-bread-crumb.c =================================================================== --- projects/haf/trunk/hildon-1/src/hildon-bread-crumb.c 2007-04-16 07:54:38 UTC (rev 11047) +++ projects/haf/trunk/hildon-1/src/hildon-bread-crumb.c 2007-04-16 08:03:34 UTC (rev 11048) @@ -59,9 +59,9 @@ static void hildon_bread_crumb_finalize (GObject *object); static void hildon_bread_crumb_set_property (GObject *object, guint prop_id, - const GValue *value, GParamSpec *pspec); + const GValue *value, GParamSpec *pspec); static void hildon_bread_crumb_get_property (GObject *object, guint prop_id, - GValue *value, GParamSpec *pspec); + GValue *value, GParamSpec *pspec); G_DEFINE_TYPE (HildonBreadCrumb, hildon_bread_crumb, GTK_TYPE_BUTTON) @@ -133,7 +133,7 @@ static void hildon_bread_crumb_set_property (GObject *object, guint prop_id, - const GValue *value, GParamSpec *pspec) + const GValue *value, GParamSpec *pspec) { HildonBreadCrumb *item = HILDON_BREAD_CRUMB (object); @@ -153,7 +153,7 @@ static void hildon_bread_crumb_get_property (GObject *object, guint prop_id, - GValue *value, GParamSpec *pspec) + GValue *value, GParamSpec *pspec) { HildonBreadCrumb *item = HILDON_BREAD_CRUMB (object); @@ -173,7 +173,7 @@ void hildon_bread_crumb_set_text (HildonBreadCrumb *item, - const gchar *text) + const gchar *text) { HildonBreadCrumbPrivate *priv; @@ -208,7 +208,7 @@ void hildon_bread_crumb_set_show_separator (HildonBreadCrumb *item, - gboolean show_separator) + gboolean show_separator) { HildonBreadCrumbPrivate *priv; @@ -231,8 +231,8 @@ void hildon_bread_crumb_get_natural_size (HildonBreadCrumb *item, - gint *natural_width, - gint *natural_height) + gint *natural_width, + gint *natural_height) { GtkRequisition req; gint width, height; @@ -255,6 +255,7 @@ *natural_width -= req.width; layout = gtk_widget_create_pango_layout (priv->label, priv->text); pango_layout_get_size (layout, &width, &height); + g_object_unref (layout); if (natural_width) *natural_width += PANGO_PIXELS (width);
- Previous message: [maemo-commits] r11046 - projects/haf/trunk/hildon-1
- Next message: [maemo-commits] r11049 - projects/haf/tags/libxml2
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]