]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk1/dialog.cpp
explain why quotes/brackets should be used in #includes
[wxWidgets.git] / src / gtk1 / dialog.cpp
index 6da4337b2e8e3060bc62ded2f4860e4b4605024b..70c83e3c7732a7b6486978f49a4163f6f7b39f5b 100644 (file)
@@ -59,7 +59,8 @@ bool gtk_dialog_delete_callback( GtkWidget *WXUNUSED(widget), GdkEvent *WXUNUSED
     if (g_isIdle)
         wxapp_install_idle_handler();
 
-    win->Close();
+    if (win->IsEnabled())
+        win->Close();
 
     return TRUE;
 }
@@ -79,7 +80,7 @@ static void gtk_dialog_size_callback( GtkWidget *WXUNUSED(widget), GtkAllocation
     {
         win->m_width = alloc->width;
         win->m_height = alloc->height;
-        win->UpdateSize();
+        win->GtkUpdateSize();
     }
 }