diff options
author | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-24 18:08:17 +0000 |
---|---|---|
committer | tpearson <tpearson@283d02a7-25f6-0310-bc7c-ecb5cbfe19da> | 2011-10-24 18:08:17 +0000 |
commit | 4b23394a5f3a52557a2bfaa55dd8203fd65ff69e (patch) | |
tree | f7f430c9a728592fd736afb9585a3056659d845d /src/qt_qt_wrapper.cpp | |
parent | 06969072e57d2b915d307fe458485970ed1768f6 (diff) | |
download | gtk-qt-engine-4b23394a5f3a52557a2bfaa55dd8203fd65ff69e.tar.gz gtk-qt-engine-4b23394a5f3a52557a2bfaa55dd8203fd65ff69e.zip |
Fix GTK Qt engine when used with a compositor supporting ARGB visuals
git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/gtk-qt-engine@1260464 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r-- | src/qt_qt_wrapper.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/qt_qt_wrapper.cpp b/src/qt_qt_wrapper.cpp index 4b01622..20dcee7 100644 --- a/src/qt_qt_wrapper.cpp +++ b/src/qt_qt_wrapper.cpp @@ -371,7 +371,7 @@ void createTQApp() if (!tqApp) { - new KApplication(gdk_x11_get_default_xdisplay()); + new KApplication(gdk_x11_get_default_xdisplay(), true, 0, 0, true); tqAppOwner = true; } @@ -1719,7 +1719,7 @@ void drawTabNG(GdkWindow *window, GtkStyle* style, GtkStateType state, int x, in // Find tab position int sdiff = 10000, pos = -1, diff = 1; - for ( int i = 0; i < g_list_length(notebook->children); i++ ) + for ( unsigned int i = 0; i < g_list_length(notebook->children); i++ ) { GtkWidget *tab_label=gtk_notebook_get_tab_label(notebook,gtk_notebook_get_nth_page(notebook,i)); if (tab_label) diff = tab_label->allocation.x - x; @@ -1799,6 +1799,7 @@ void drawArrow(GdkWindow* window, GtkStyle* style, GtkStateType state, GtkArrowT case GTK_ARROW_DOWN: element = TQStyle::PE_ArrowDown; break; case GTK_ARROW_LEFT: element = TQStyle::PE_ArrowLeft; break; case GTK_ARROW_RIGHT: element = TQStyle::PE_ArrowRight; break; + case GTK_ARROW_NONE: return; } |