[vte] Use gtk_widget_style_attach
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte] Use gtk_widget_style_attach
- Date: Sun, 29 Aug 2010 11:58:06 +0000 (UTC)
commit c9fd190d894354fa0d345c8f58524a83bab80524
Author: Christian Persch <chpe gnome org>
Date: Sun Aug 29 13:49:52 2010 +0200
Use gtk_widget_style_attach
Fix faulty code introduced in commit ac1e78c78e6a39834d35c525be01d50c348d33ba
from bug #612484.
Bug #627764.
src/vte.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/src/vte.c b/src/vte.c
index 640f3b0..56a9ac9 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -8781,9 +8781,11 @@ vte_terminal_realize(GtkWidget *widget)
}
#endif /* GTK >= 2.15.1 */
- style = gtk_widget_get_style (widget);
- style = gtk_style_attach (style, window);
- gtk_widget_set_style (widget, style);
+#if GTK_CHECK_VERSION (2, 20, 0)
+ gtk_widget_style_attach (widget);
+#else
+ widget->style = gtk_style_attach(widget->style, widget->window);
+#endif
vte_terminal_ensure_font (terminal);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]