summaryrefslogtreecommitdiffstats
path: root/src/qt_qt_wrapper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/qt_qt_wrapper.cpp')
-rw-r--r--src/qt_qt_wrapper.cpp5
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;
}