summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authortpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-19 03:21:21 +0000
committertpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da>2011-10-19 03:21:21 +0000
commit09b929ee257640d12bba384d5363a6c604e70b46 (patch)
tree65bcc73a677e4fc80c5e1459217933d60c2a9348 /src
parent94a5414c7b3366cf894af40079d5ede1c6e17518 (diff)
downloadgtk-qt-engine-09b929ee257640d12bba384d5363a6c604e70b46.tar.gz
gtk-qt-engine-09b929ee257640d12bba384d5363a6c604e70b46.zip
Fix gtk-qt-engine tab bars
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1259596 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src')
-rw-r--r--src/qt_qt_wrapper.cpp3
-rw-r--r--src/qt_qt_wrapper.h1
-rw-r--r--src/qt_rc_style.c4
-rw-r--r--src/qt_theme_draw.c4
4 files changed, 10 insertions, 2 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp
index 90e060a..3560df1 100644
--- a/src/qt_qt_wrapper.cpp
+++ b/src/qt_qt_wrapper.cpp
@@ -2120,6 +2120,9 @@ void setRcProperties(GtkRcStyle* rc_style, int forceRecreate)
stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkToolbar*GtkToggleButton*");
stream << parse_rc_string("GtkButton::inner-border = {0, 0, 0, 0}", "*GtkNotebook*GtkButton*");
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", "*");
// This one may not work...
//insertIntProperty(rc_style, "GtkCheckButton", "indicator-size", tqApp->tqstyle().tqpixelMetric(TQStyle::PM_IndicatorHeight) );
diff --git a/src/qt_qt_wrapper.h b/src/qt_qt_wrapper.h
index 5d5c804..d1cdc9e 100644
--- a/src/qt_qt_wrapper.h
+++ b/src/qt_qt_wrapper.h
@@ -9,6 +9,7 @@
#include <gtk/gtkprogressbar.h>
// #define USE_NATIVE_GTK_BUTTON_DRAWING 1
+#define FORCE_RELOAD_THEMES_ON_STARTUP 1
#ifdef __cplusplus
extern "C" {
diff --git a/src/qt_rc_style.c b/src/qt_rc_style.c
index 9d9e4d3..3d4d95c 100644
--- a/src/qt_rc_style.c
+++ b/src/qt_rc_style.c
@@ -65,7 +65,11 @@ qtengine_rc_style_parse (GtkRcStyle *rc_style, GtkSettings *settings, GScanner *
guint token;
/* Sets Rc properties from QT settings */
+#ifdef FORCE_RELOAD_THEMES_ON_STARTUP
+ setRcProperties(rc_style, 1);
+#else
setRcProperties(rc_style, 0);
+#endif
/* The rest of this keeps GTK happy - therefore I don't care what it does */
if (!scope_id)
diff --git a/src/qt_theme_draw.c b/src/qt_theme_draw.c
index 2ccdaf8..8e30d24 100644
--- a/src/qt_theme_draw.c
+++ b/src/qt_theme_draw.c
@@ -858,10 +858,10 @@ draw_box(GtkStyle * style,
/* Now draw the tab -- tab position is also calculated in this function
checkout drawTabFrame() for drawing tabbarbase. */
- drawTabNG(window,style,state_type,x, y, width - 2, height, nb );
+ drawTabNG(window,style,state_type,x, y, width/*-2*/, height, nb );
}
else {
- drawTab(window,style,state_type,x,y,width-2,height);
+ drawTab(window,style,state_type,x,y,width/*-2*/,height);
}
return;
}