]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/gauge.cpp
Attempted to fix splittree problem by not pushing event handler
[wxWidgets.git] / src / gtk / gauge.cpp
index 35d9ad6f378f4afb743e0addb9c281468ae6fcc8..b85ec70964b6de200a7ddcdf44f1f8863560bd71 100644 (file)
@@ -15,8 +15,8 @@
 
 #if wxUSE_GAUGE
 
-#include "gdk/gdk.h"
-#include "gtk/gtk.h"
+#include <gdk/gdk.h>
+#include <gtk/gtk.h>
 
 //-----------------------------------------------------------------------------
 // wxGauge
@@ -33,7 +33,7 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id,  int range,
     if (!PreCreation( parent, pos, size ) ||
         !CreateBase( parent, id, pos, size, style, validator, name ))
     {
-        wxFAIL_MSG( _T("wxGauge creation failed") );
+        wxFAIL_MSG( wxT("wxGauge creation failed") );
        return FALSE;
     }
 
@@ -42,6 +42,8 @@ bool wxGauge::Create( wxWindow *parent, wxWindowID id,  int range,
     m_useProgressBar = TRUE;
   
     m_widget = gtk_progress_bar_new();
+    if( style & wxGA_VERTICAL)
+        gtk_progress_bar_set_orientation( GTK_PROGRESS_BAR(m_widget) , GTK_PROGRESS_BOTTOM_TO_TOP );
   
     m_parent->DoAddChild( this );