]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/toplevel.cpp
Allow entering minus sign in wxMSW wxSpinCtrl if needed.
[wxWidgets.git] / src / gtk / toplevel.cpp
index a8a2b2bba13b38ef370e48cd78a9a2aa9e081f74..b6915adb51c2745b10eb34f034fea37029f02ac0 100644 (file)
@@ -662,7 +662,7 @@ wxTopLevelWindowGTK::~wxTopLevelWindowGTK()
 
     if (m_grabbed)
     {
-        wxFAIL_MSG(_T("Window still grabbed"));
+        wxFAIL_MSG(wxT("Window still grabbed"));
         RemoveGrab();
     }
 
@@ -780,9 +780,11 @@ bool wxTopLevelWindowGTK::ShowFullScreen(bool show, long)
 void wxTopLevelWindowGTK::Refresh( bool WXUNUSED(eraseBackground), const wxRect *WXUNUSED(rect) )
 {
     wxCHECK_RET( m_widget, wxT("invalid frame") );
-    
-   gtk_widget_queue_draw( m_widget );
-   gdk_window_invalidate_rect( m_wxwindow->window, NULL, TRUE );
+
+    gtk_widget_queue_draw( m_widget );
+
+    if (m_wxwindow && m_wxwindow->window)
+        gdk_window_invalidate_rect( m_wxwindow->window, NULL, TRUE );
 }
 
 bool wxTopLevelWindowGTK::Show( bool show )
@@ -1228,7 +1230,7 @@ static bool do_shape_combine_region(GdkWindow* window, const wxRegion& region)
 bool wxTopLevelWindowGTK::SetShape(const wxRegion& region)
 {
     wxCHECK_MSG( HasFlag(wxFRAME_SHAPED), false,
-                 _T("Shaped windows must be created with the wxFRAME_SHAPED style."));
+                 wxT("Shaped windows must be created with the wxFRAME_SHAPED style."));
 
     if ( GTK_WIDGET_REALIZED(m_widget) )
     {