[vte/vte-next: 19/47] Remove antialias arg from vte_terminal_set_font_full_internal
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 19/47] Remove antialias arg from vte_terminal_set_font_full_internal
- Date: Tue, 3 May 2011 00:06:33 +0000 (UTC)
commit ea567cee9d957e4db95da1c1d964fd455a37bb28
Author: Christian Persch <chpe gnome org>
Date: Mon May 2 21:22:23 2011 +0200
Remove antialias arg from vte_terminal_set_font_full_internal
src/vte.c | 23 ++++++++---------------
1 files changed, 8 insertions(+), 15 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index e774692..05bfd89 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -131,8 +131,7 @@ static void remove_update_timeout (VteTerminal *terminal);
static void reset_update_regions (VteTerminal *terminal);
static void vte_terminal_set_cursor_blinks_internal(VteTerminal *terminal, gboolean blink);
static void vte_terminal_set_font_full_internal(VteTerminal *terminal,
- const PangoFontDescription *font_desc,
- VteTerminalAntiAlias antialias);
+ const PangoFontDescription *font_desc);
static void _vte_check_cursor_blink(VteTerminal *terminal);
static gboolean process_timeout (gpointer data);
@@ -4530,9 +4529,7 @@ vte_terminal_style_set (GtkWidget *widget,
if (gtk_widget_get_style(widget) == prev_style)
return;
- vte_terminal_set_font_full_internal(terminal, terminal->pvt->fontdesc,
- terminal->pvt->fontantialias);
-
+ vte_terminal_set_font_full_internal(terminal, terminal->pvt->fontdesc);
vte_terminal_set_inner_border(terminal);
gtk_widget_style_get(widget, "cursor-aspect-ratio", &aspect, NULL);
@@ -7269,8 +7266,7 @@ vte_terminal_ensure_font (VteTerminal *terminal)
/* Load default fonts, if no fonts have been loaded. */
if (!terminal->pvt->has_fonts) {
vte_terminal_set_font_full_internal(terminal,
- terminal->pvt->fontdesc,
- terminal->pvt->fontantialias);
+ terminal->pvt->fontdesc);
}
if (terminal->pvt->fontdirty) {
gint width, height, ascent;
@@ -7308,13 +7304,12 @@ vte_terminal_set_font_full(VteTerminal *terminal,
const PangoFontDescription *font_desc,
VteTerminalAntiAlias antialias)
{
- vte_terminal_set_font_full_internal(terminal, font_desc, antialias);
+ vte_terminal_set_font_full_internal(terminal, font_desc);
}
static void
vte_terminal_set_font_full_internal(VteTerminal *terminal,
- const PangoFontDescription *font_desc,
- VteTerminalAntiAlias antialias)
+ const PangoFontDescription *font_desc)
{
GObject *object;
GtkStyle *style;
@@ -7362,7 +7357,6 @@ vte_terminal_set_font_full_internal(VteTerminal *terminal,
pango_font_description_free(terminal->pvt->fontdesc);
}
pvt->fontdesc = desc;
- pvt->fontantialias = antialias;
pvt->fontdirty = TRUE;
pvt->has_fonts = TRUE;
@@ -7393,8 +7387,7 @@ vte_terminal_set_font(VteTerminal *terminal,
const PangoFontDescription *font_desc)
{
g_return_if_fail(VTE_IS_TERMINAL(terminal));
- vte_terminal_set_font_full_internal(terminal, font_desc,
- VTE_ANTI_ALIAS_USE_DEFAULT);
+ vte_terminal_set_font_full_internal(terminal, font_desc);
}
static void
@@ -7407,7 +7400,7 @@ vte_terminal_set_font_from_string_full_internal(VteTerminal *terminal,
if (name)
font_desc = pango_font_description_from_string(name);
- vte_terminal_set_font_full_internal(terminal, font_desc, antialias);
+ vte_terminal_set_font_full_internal(terminal, font_desc);
pango_font_description_free(font_desc);
}
@@ -11168,7 +11161,7 @@ vte_terminal_set_property (GObject *object,
vte_terminal_set_encoding (terminal, g_value_get_string (value));
break;
case PROP_FONT_DESC:
- vte_terminal_set_font_full_internal (terminal, g_value_get_boxed (value), pvt->fontantialias);
+ vte_terminal_set_font_full_internal (terminal, g_value_get_boxed (value));
break;
case PROP_MOUSE_POINTER_AUTOHIDE:
vte_terminal_set_mouse_autohide (terminal, g_value_get_boolean (value));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]