summaryrefslogtreecommitdiffstats
path: root/tdegtk/tdegtk-draw.cpp
diff options
context:
space:
mode:
authorTimothy Pearson <[email protected]>2013-01-14 09:30:13 -0600
committerTimothy Pearson <[email protected]>2013-01-14 09:30:13 -0600
commitc36c1233642e3bc6f35547453e2832da8afcbd86 (patch)
tree2b5211d8723cf8bcceda8c513356361846eebb08 /tdegtk/tdegtk-draw.cpp
parent4a9ef2722b9e89206708b5889838ff8541badaab (diff)
downloadgtk3-tqt-engine-c36c1233642e3bc6f35547453e2832da8afcbd86.tar.gz
gtk3-tqt-engine-c36c1233642e3bc6f35547453e2832da8afcbd86.zip
Fix checkbox drawing
Draw frame backgrounds
Diffstat (limited to 'tdegtk/tdegtk-draw.cpp')
-rw-r--r--tdegtk/tdegtk-draw.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/tdegtk/tdegtk-draw.cpp b/tdegtk/tdegtk-draw.cpp
index 8767c5f..60f90ed 100644
--- a/tdegtk/tdegtk-draw.cpp
+++ b/tdegtk/tdegtk-draw.cpp
@@ -152,8 +152,12 @@ static TQStyle::SFlags gtkToTQtStyleFlags(GtkThemingEngine* engine, GtkStateFlag
}
}
if (mousedown) {
- sflags |= TQStyle::Style_On;
- if (!gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkButton))) {
+ if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(checkButton))) {
+ sflags |= TQStyle::Style_On;
+ sflags |= TQStyle::Style_Down;
+ }
+ else {
+ sflags |= TQStyle::Style_Off;
sflags |= TQStyle::Style_Down;
}
}
@@ -1684,6 +1688,7 @@ tdegtk_draw_common_background (DRAW_ARGS)
|| (gtk_widget_path_is_type(path, GTK_TYPE_VIEWPORT))
|| (gtk_widget_path_is_type(path, GTK_TYPE_SCROLLED_WINDOW))
|| (gtk_widget_path_is_type(path, GTK_TYPE_PANED))
+ || (gtk_widget_path_is_type(path, GTK_TYPE_FRAME))
) {
TQStringList objectTypes;
objectTypes.append(TQWIDGET_OBJECT_NAME_STRING);