From 4b23394a5f3a52557a2bfaa55dd8203fd65ff69e Mon Sep 17 00:00:00 2001 From: tpearson Date: Mon, 24 Oct 2011 18:08:17 +0000 Subject: [PATCH] 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 --- src/qt_qt_wrapper.cpp | 5 +++-- 1 file 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; }