diff options
author | Timothy Pearson <[email protected]> | 2012-12-01 02:40:06 -0600 |
---|---|---|
committer | Timothy Pearson <[email protected]> | 2012-12-01 02:40:06 -0600 |
commit | 4a9ef2722b9e89206708b5889838ff8541badaab (patch) | |
tree | d2b195328418bfd4442ca58bf5c58325fdf68c4c /tdegtk | |
parent | beb8adf263fc48b76da0eccba506daa657a16fe3 (diff) | |
download | gtk3-tqt-engine-4a9ef2722b9e89206708b5889838ff8541badaab.tar.gz gtk3-tqt-engine-4a9ef2722b9e89206708b5889838ff8541badaab.zip |
Fix checkbox drawing
Fix tree view background drawing
Diffstat (limited to 'tdegtk')
-rw-r--r-- | tdegtk/tdegtk-draw.cpp | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/tdegtk/tdegtk-draw.cpp b/tdegtk/tdegtk-draw.cpp index 1829289..8767c5f 100644 --- a/tdegtk/tdegtk-draw.cpp +++ b/tdegtk/tdegtk-draw.cpp @@ -152,9 +152,9 @@ static TQStyle::SFlags gtkToTQtStyleFlags(GtkThemingEngine* engine, GtkStateFlag } } if (mousedown) { - sflags |= TQStyle::Style_Down; - if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkButton))) { - sflags |= TQStyle::Style_On; + sflags |= TQStyle::Style_On; + if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkButton))) { + sflags |= TQStyle::Style_Down; } } if (prelight) { @@ -1661,10 +1661,24 @@ tdegtk_draw_common_background (DRAW_ARGS) // Where is this widget actually used? } + else if (widgetThemingEnginePath.endsWith("GtkEventBox")) { + // Do nothing + } + else if (gtk_theming_engine_has_class(engine, GTK_STYLE_CLASS_BACKGROUND)) { // Do nothing } + else if (widgetThemingEnginePath.endsWith("GtkTreeView.view")) { + TQStringList objectTypes; + objectTypes.append(TQLISTVIEW_OBJECT_NAME_STRING); + TQPalette objectPalette = tqApp->palette(objectTypes); + + // Draw background + TQBrush brush = objectPalette.brush(gtkToTQPaletteColorGroup(engine, state), TQColorGroup::Base); + DRAW_FILLED_RECTANGLE_OVER_ENTIRE_AREA(p, brush) + } + else if ((gtk_widget_path_is_type(path, GTK_TYPE_EXPANDER)) || (gtk_widget_path_is_type(path, GTK_TYPE_BOX)) || (gtk_widget_path_is_type(path, GTK_TYPE_VIEWPORT)) |