Commit 18cb3ee1 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

Don't leak the PangoFontDescriptor.

2001-01-22    <alexl@redhat.com>

	* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
	Don't leak the PangoFontDescriptor.
parent 8c9eb8b6
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
2001-01-22 <alexl@redhat.com>
* gtk/gtkwindow-decorate.c (gtk_decorated_window_realize):
Don't leak the PangoFontDescriptor.
Sun Jan 21 09:58:00 2001 Jonathan Blandford <jrb@redhat.com>
* gtk/gtktreeview.c (gtk_tree_view_scroll_to_point): Make fail
......
......@@ -255,12 +255,14 @@ gtk_decorated_window_realize (GtkWindow *window)
{
GtkWindowDecoration *deco = get_decoration (window);
GtkWidget *widget = GTK_WIDGET (window);
PangoFontDescription *font_desc;
deco->title_layout = gtk_widget_create_pango_layout (widget,
(window->title)?window->title:"");
pango_layout_set_font_description (deco->title_layout,
pango_font_description_from_string(DECORATION_TITLE_FONT));
font_desc = pango_font_description_from_string(DECORATION_TITLE_FONT);
pango_layout_set_font_description (deco->title_layout, font_desc);
pango_font_description_free (font_desc);
gdk_fb_window_set_child_handler (window->frame,
gtk_decorated_window_inner_change,
......@@ -674,7 +676,7 @@ gtk_decorated_window_move_resize_window (GtkWindow *window,
GtkWindowDecoration *deco = get_decoration (window);
deco->real_inner_move = TRUE;
gdk_window_move_resize (GTK_WIDGET (window)->window,
gdk_window_move_resize (widget->window,
x, y, width, height);
}
#else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment