diff options
Diffstat (limited to 'plugins/gtkui/gdkdrawing.c')
-rw-r--r-- | plugins/gtkui/gdkdrawing.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/plugins/gtkui/gdkdrawing.c b/plugins/gtkui/gdkdrawing.c index 27174fa7..c7c2339b 100644 --- a/plugins/gtkui/gdkdrawing.c +++ b/plugins/gtkui/gdkdrawing.c @@ -95,6 +95,19 @@ static GtkStyle *font_style = NULL; static PangoWeight font_weight = PANGO_WEIGHT_NORMAL; void +draw_free (void) { + draw_end (); + if (pangoctx) { + g_object_unref (pangoctx); + pangoctx = NULL; + } + if (pangolayout) { + g_object_unref (pangolayout); + pangolayout = NULL; + } +} + +void draw_init_font (GtkStyle *new_font_style) { if (!pango_ready || (new_font_style && font_style != new_font_style)) { if (pangoctx) { |