summaryrefslogtreecommitdiffstats
path: root/src/qt_theme_draw.c
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-19 04:31:26 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-19 04:31:26 +0000
commit0ee1f62b1333c5bccc4cba4db8afa50e80bd4fc2 (patch)
treefdfacc994c6f27b4b220796de2479aaeda891737 /src/qt_theme_draw.c
parent09b929ee257640d12bba384d5363a6c604e70b46 (diff)
downloadgtk-qt-engine-0ee1f62b1333c5bccc4cba4db8afa50e80bd4fc2.tar.gz
gtk-qt-engine-0ee1f62b1333c5bccc4cba4db8afa50e80bd4fc2.zip
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
Diffstat (limited to 'src/qt_theme_draw.c')
-rw-r--r--src/qt_theme_draw.c16
1 files changed, 8 insertions, 8 deletions
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;
}