From 0ee1f62b1333c5bccc4cba4db8afa50e80bd4fc2 Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 19 Oct 2011 04:31:26 +0000 Subject: Fix additional GTK theme engine problems git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1259599 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- src/qt_theme_draw.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/qt_theme_draw.c') diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c index 8e30d24..02e462f 100644 --- a/src/qt_theme_draw.c +++ b/src/qt_theme_draw.c @@ -1927,7 +1927,7 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type) GdkPixmap *pixmap; gint parent_relative; GdkPixmap* pix_test; - + /* What kind of horrible person would store a pointer to a widget here... */ void* parent = 0; gdk_window_get_user_data(window, &parent); @@ -1937,7 +1937,7 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type) } else pix_test = style->bg_pixmap[state_type]; - + if (pix_test) { if (pix_test == (GdkPixmap*) GDK_PARENT_RELATIVE) @@ -1951,7 +1951,7 @@ set_background (GtkStyle *style, GdkWindow *window, GtkStateType state_type) parent_relative = FALSE; gdk_drawable_set_colormap(pixmap, style->colormap); } - + if (pixmap && !gdk_drawable_get_colormap (pixmap)) gdk_drawable_set_colormap (pixmap, gdk_drawable_get_colormap (window)); gdk_window_set_back_pixmap (window, pixmap, parent_relative); } @@ -1984,20 +1984,20 @@ qtengine_style_class_init (QtEngineStyleClass *klass) style_class->draw_option = draw_option; style_class->draw_tab = draw_tab; style_class->draw_shadow_gap = draw_shadow_gap; - + /* box around notebooks */ style_class->draw_box_gap = draw_box_gap; /* the tab */ style_class->draw_extension = draw_extension; - + style_class->draw_focus = draw_focus; style_class->draw_handle = draw_handle; style_class->draw_layout = draw_layout; style_class->draw_slider = draw_slider; - + style_class->realize = realize; - - /* style_class->set_background = set_background;*/ + + style_class->set_background = set_background; } -- cgit v1.2.3