mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 02:40:11 +00:00
Unref the PangoFontMetrics. Patch from Steve Chaplin (#122257).
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).
This commit is contained in:
parent
b4d13a212e
commit
f649837613
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user