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
v3.5.13-sru
tpearson 13 years ago
parent 06969072e5
commit 4b23394a5f

@ -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;
}

Loading…
Cancel
Save