[vte] Chain up to style-set on parent class
- From: Christian Persch <chpe src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [vte] Chain up to style-set on parent class
- Date: Mon, 30 Nov 2009 21:40:28 +0000 (UTC)
commit 66d729e0b6d84d7cce204d5a3c9b8e6b98087f07
Author: Christian Persch <chpe gnome org>
Date: Mon Nov 30 22:39:55 2009 +0100
Chain up to style-set on parent class
src/vte.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index b6a0f80..35a45ae 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -4570,17 +4570,19 @@ static void
vte_terminal_style_set (GtkWidget *widget,
GtkStyle *prev_style)
{
- VteTerminal *terminal;
+ VteTerminal *terminal = VTE_TERMINAL(widget);
+
if (!GTK_WIDGET_REALIZED(widget)) {
_vte_debug_print(VTE_DEBUG_MISC,
"Don't change style if we aren't realized.\n");
return;
}
- terminal = VTE_TERMINAL(widget);
+ GTK_WIDGET_CLASS (vte_terminal_parent_class)->style_set (widget, prev_style);
vte_terminal_set_font_full_internal(terminal, terminal->pvt->fontdesc,
terminal->pvt->fontantialias);
+
}
static void
@@ -11127,7 +11129,6 @@ vte_terminal_class_init(VteTerminalClass *klass)
widget_class->focus_out_event = vte_terminal_focus_out;
widget_class->visibility_notify_event = vte_terminal_visibility_notify;
widget_class->unrealize = vte_terminal_unrealize;
- widget_class->style_set = NULL;
widget_class->style_set = vte_terminal_style_set;
widget_class->size_request = vte_terminal_size_request;
widget_class->size_allocate = vte_terminal_size_allocate;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]