]> Pileus Git - ~andy/gtk/commitdiff
Unref the PangoFontMetrics. Patch from Steve Chaplin (#122257).
authorSoeren Sandmann <sandmann@daimi.au.dk>
Sun, 14 Sep 2003 13:51:27 +0000 (13:51 +0000)
committerSøren Sandmann Pedersen <ssp@src.gnome.org>
Sun, 14 Sep 2003 13:51:27 +0000 (13:51 +0000)
Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>

* gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
PangoFontMetrics. Patch from Steve Chaplin (#122257).

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtktoolbar.c

index 0db332cb0b43d19e1efab8b361a2a83ab4736549..18aed370fe3e1e9098d8aa99f637c55efb2bb423 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
+       PangoFontMetrics. Patch from Steve Chaplin (#122257).
+
 2003-09-14  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
index 0db332cb0b43d19e1efab8b361a2a83ab4736549..18aed370fe3e1e9098d8aa99f637c55efb2bb423 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
+       PangoFontMetrics. Patch from Steve Chaplin (#122257).
+
 2003-09-14  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
index 0db332cb0b43d19e1efab8b361a2a83ab4736549..18aed370fe3e1e9098d8aa99f637c55efb2bb423 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
+       PangoFontMetrics. Patch from Steve Chaplin (#122257).
+
 2003-09-14  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
index 0db332cb0b43d19e1efab8b361a2a83ab4736549..18aed370fe3e1e9098d8aa99f637c55efb2bb423 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
+       PangoFontMetrics. Patch from Steve Chaplin (#122257).
+
 2003-09-14  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
index 0db332cb0b43d19e1efab8b361a2a83ab4736549..18aed370fe3e1e9098d8aa99f637c55efb2bb423 100644 (file)
@@ -1,3 +1,8 @@
+Sun Sep 14 15:49:00 2003  Soeren Sandmann  <sandmann@daimi.au.dk>
+
+       * gtk/gtktoolbar.c (toolbar_item_is_homogeneous): Unref the
+       PangoFontMetrics. Patch from Steve Chaplin (#122257).
+
 2003-09-14  Tor Lillqvist  <tml@iki.fi>
 
        * gdk/win32/gdkwindow-win32.c (show_window_internal): Remove
index 011db4b545e8679d71763e576bb36a8b99edb306..c2ce588c0c6b9c3de518df6d2fcccf5cc852d857 100644 (file)
@@ -638,6 +638,8 @@ toolbar_item_is_homogeneous (GtkToolbar  *toolbar,
                                       widget->style->font_desc,
                                       pango_context_get_language (context));
   char_width = pango_font_metrics_get_approximate_char_width (metrics);
+  pango_font_metrics_unref (metrics);
+      
   max_homogeneous_pixels = PANGO_PIXELS (MAX_HOMOGENEOUS_N_CHARS * char_width);
   
   result = gtk_tool_item_get_homogeneous (item) && !GTK_IS_SEPARATOR_TOOL_ITEM (item);