forked from AuroraMiddleware/gtk
Don't leak a PangoLayout here. (#322505, Paolo Borelli)
2005-11-27 Matthias Clasen <mclasen@redhat.com> * gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a PangoLayout here. (#322505, Paolo Borelli)
This commit is contained in:
parent
3ff34d06e8
commit
6662729301
@ -1,3 +1,8 @@
|
||||
2005-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a
|
||||
PangoLayout here. (#322505, Paolo Borelli)
|
||||
|
||||
2005-11-27 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
Once again rework Win32 window decoration code. Doesn't break
|
||||
|
@ -1,3 +1,8 @@
|
||||
2005-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorbutton.c (gtk_color_button_init): Don't leak a
|
||||
PangoLayout here. (#322505, Paolo Borelli)
|
||||
|
||||
2005-11-27 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
Once again rework Win32 window decoration code. Doesn't break
|
||||
|
@ -565,6 +565,8 @@ gtk_color_button_init (GtkColorButton *color_button)
|
||||
|
||||
layout = gtk_widget_create_pango_layout (GTK_WIDGET (color_button), "Black");
|
||||
pango_layout_get_pixel_extents (layout, NULL, &rect);
|
||||
g_object_unref (layout);
|
||||
|
||||
gtk_widget_set_size_request (color_button->priv->draw_area, rect.width - 2, rect.height - 2);
|
||||
g_signal_connect (color_button->priv->draw_area, "expose-event",
|
||||
G_CALLBACK (expose_event), color_button);
|
||||
|
Loading…
Reference in New Issue
Block a user