|
|
@ -152,9 +152,9 @@ static TQStyle::SFlags gtkToTQtStyleFlags(GtkThemingEngine* engine, GtkStateFlag
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (mousedown) {
|
|
|
|
if (mousedown) {
|
|
|
|
sflags |= TQStyle::Style_Down;
|
|
|
|
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;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (prelight) {
|
|
|
|
if (prelight) {
|
|
|
@ -1661,10 +1661,24 @@ tdegtk_draw_common_background (DRAW_ARGS)
|
|
|
|
// Where is this widget actually used?
|
|
|
|
// 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)) {
|
|
|
|
else if (gtk_theming_engine_has_class(engine, GTK_STYLE_CLASS_BACKGROUND)) {
|
|
|
|
// Do nothing
|
|
|
|
// 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))
|
|
|
|
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_BOX))
|
|
|
|
|| (gtk_widget_path_is_type(path, GTK_TYPE_VIEWPORT))
|
|
|
|
|| (gtk_widget_path_is_type(path, GTK_TYPE_VIEWPORT))
|
|
|
|