|
|
|
@ -2078,14 +2078,16 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
|
|
|
|
|
sc = sc2;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stream << parse_rc_string(TQString("GtkComboBox::appears-as-list = 1"), "*");
|
|
|
|
|
|
|
|
|
|
stream << parse_rc_string(TQString("GtkScrollbar::has-backward-stepper = ") + (back1 ? "1" : "0"), "*");
|
|
|
|
|
stream << parse_rc_string(TQString("GtkScrollbar::has-forward-stepper = ") + (forward2 ? "1" : "0"), "*");
|
|
|
|
|
stream << parse_rc_string(TQString("GtkScrollbar::has-secondary-forward-stepper = ") + (forward1 ? "1" : "0"), "*");
|
|
|
|
|
stream << parse_rc_string(TQString("GtkScrollbar::has-secondary-backward-stepper = ") + (back2 ? "1" : "0"), "*");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stream << parse_rc_string("GtkScrollbar::stepper-size = " + TQString::number(tqApp->style().querySubControlMetrics(TQStyle::CC_ScrollBar, &sbar, TQStyle::SC_ScrollBarSubLine).width() - 1), "*");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stream << parse_rc_string("GtkScrollbar::min-slider-length = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_ScrollBarSliderMin)), "*");
|
|
|
|
|
stream << parse_rc_string("GtkScrollbar::slider-width = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_ScrollBarExtent)-2), "*");
|
|
|
|
|
|
|
|
|
@ -2110,7 +2112,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
|
|
|
|
|
|
|
|
|
|
TQSlider slider(NULL); // To keep BlueCurve happy
|
|
|
|
|
stream << parse_rc_string("GtkScale::slider-length = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_SliderLength, &slider)), "*");
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
stream << parse_rc_string("xthickness = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)), "*.GtkMenu");
|
|
|
|
|
stream << parse_rc_string("ythickness = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_DefaultFrameWidth)), "*.GtkMenu");
|
|
|
|
|
stream << parse_rc_string("xthickness = 5", "*.GtkMenu.Gtk*MenuItem");
|
|
|
|
@ -2133,7 +2135,7 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
|
|
|
|
|
stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkNotebook*GtkToggleButton*");
|
|
|
|
|
|
|
|
|
|
// Qt calls them tab boxes, GTK calls them notebooks (!??!?) Either way they are a pain...
|
|
|
|
|
stream << parse_rc_string("GtkNotebook::tab-overlap = 1", "*");
|
|
|
|
|
stream << parse_rc_string("GtkNotebook::tab-overlap = " + TQString::number(tqApp->style().pixelMetric(TQStyle::PM_TabBarTabOverlap)), "*");
|
|
|
|
|
|
|
|
|
|
// This one may not work...
|
|
|
|
|
//insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->style().pixelMetric(TQStyle::PM_IndicatorHeight) );
|
|
|
|
|