vte r2149 - in trunk: . src
- From: behdad svn gnome org
- To: svn-commits-list gnome org
- Subject: vte r2149 - in trunk: . src
- Date: Tue, 18 Nov 2008 13:25:08 +0000 (UTC)
Author: behdad
Date: Tue Nov 18 13:25:08 2008
New Revision: 2149
URL: http://svn.gnome.org/viewvc/vte?rev=2149&view=rev
Log:
2008-11-18 Behdad Esfahbod <behdad gnome org>
* src/vtepangocairo.c (font_info_create_for_screen),
(font_info_destroy): Remove copy of font desc and antialias from font
info object as they were not used.
Modified:
trunk/ChangeLog
trunk/src/vtepangocairo.c
Modified: trunk/src/vtepangocairo.c
==============================================================================
--- trunk/src/vtepangocairo.c (original)
+++ trunk/src/vtepangocairo.c Tue Nov 18 13:25:08 2008
@@ -127,8 +127,6 @@
}
struct font_info {
- PangoFontDescription *desc;
- VteTerminalAntiAlias antialias;
PangoLayout *layout;
PangoCoverage *coverage;
@@ -200,9 +198,6 @@
info = g_slice_new0 (struct font_info);
- info->antialias = antialias;
- info->desc = pango_font_description_copy (desc);
-
context = gdk_pango_context_get_for_screen (screen);
if (!PANGO_IS_CAIRO_FONT_MAP (pango_context_get_font_map (context))) {
/* Ouch, Gtk+ switched over to some drawing system?
@@ -213,8 +208,8 @@
}
pango_context_set_base_dir (context, PANGO_DIRECTION_LTR);
- if (info->desc)
- pango_context_set_font_description (context, info->desc);
+ if (desc)
+ pango_context_set_font_description (context, desc);
switch (antialias) {
cairo_font_options_t *font_options;
@@ -258,9 +253,6 @@
if (!info)
return;
- pango_font_description_free (info->desc);
- info->desc = NULL;
-
g_object_unref (info->layout);
info->layout = NULL;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]