as it skrews up the display,
Corrected disabling the closing of top level window
when there are open (modal) dialogs,
Minor change to redrawing window-less widgets.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@6556
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/generic/imaglist.h"
#ifndef wxUSE_GENERIC_LIST_EXTENSIONS
#include "wx/generic/imaglist.h"
#ifndef wxUSE_GENERIC_LIST_EXTENSIONS
-#define wxUSE_GENERIC_LIST_EXTENSIONS 1
+#define wxUSE_GENERIC_LIST_EXTENSIONS 0
#endif
// ============================================================================
#endif
// ============================================================================
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
wxTopLevelWindows.Append( this );
m_needParent = FALSE;
wxTopLevelWindows.Append( this );
m_needParent = FALSE;
{
wxTheApp->ExitMainLoop();
}
{
wxTheApp->ExitMainLoop();
}
}
void wxDialog::SetTitle( const wxString& title )
}
void wxDialog::SetTitle( const wxString& title )
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
return GetReturnCode();
}
return GetReturnCode();
}
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );
+ win->m_clipPaintRegion = TRUE;
+
wxEraseEvent eevent( win->GetId() );
eevent.SetEventObject( win );
win->GetEventHandler()->ProcessEvent(eevent);
wxEraseEvent eevent( win->GetId() );
eevent.SetEventObject( win );
win->GetEventHandler()->ProcessEvent(eevent);
win->GetUpdateRegion().Clear();
win->GetUpdateRegion().Clear();
+ win->m_clipPaintRegion = FALSE;
+
GList *children = pizza->children;
while (children)
{
GList *children = pizza->children;
while (children)
{
GdkRectangle child_area;
if (gtk_widget_intersect (child->widget, rect, &child_area))
GdkRectangle child_area;
if (gtk_widget_intersect (child->widget, rect, &child_area))
- gtk_widget_draw (child->widget, (GdkRectangle*) NULL );
+ {
+ gtk_widget_draw (child->widget, &child_area /* (GdkRectangle*) NULL*/ );
+ }
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
const wxPoint &pos, const wxSize &size,
long style, const wxString &name )
{
wxTopLevelWindows.Append( this );
m_needParent = FALSE;
wxTopLevelWindows.Append( this );
m_needParent = FALSE;
{
wxTheApp->ExitMainLoop();
}
{
wxTheApp->ExitMainLoop();
}
}
void wxDialog::SetTitle( const wxString& title )
}
void wxDialog::SetTitle( const wxString& title )
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
gtk_grab_add( m_widget );
gtk_main();
gtk_grab_remove( m_widget );
return GetReturnCode();
}
return GetReturnCode();
}
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );
win->GetUpdateRegion().Union( rect->x, rect->y,
rect->width, rect->height );
+ win->m_clipPaintRegion = TRUE;
+
wxEraseEvent eevent( win->GetId() );
eevent.SetEventObject( win );
win->GetEventHandler()->ProcessEvent(eevent);
wxEraseEvent eevent( win->GetId() );
eevent.SetEventObject( win );
win->GetEventHandler()->ProcessEvent(eevent);
win->GetUpdateRegion().Clear();
win->GetUpdateRegion().Clear();
+ win->m_clipPaintRegion = FALSE;
+
GList *children = pizza->children;
while (children)
{
GList *children = pizza->children;
while (children)
{
GdkRectangle child_area;
if (gtk_widget_intersect (child->widget, rect, &child_area))
GdkRectangle child_area;
if (gtk_widget_intersect (child->widget, rect, &child_area))
- gtk_widget_draw (child->widget, (GdkRectangle*) NULL );
+ {
+ gtk_widget_draw (child->widget, &child_area /* (GdkRectangle*) NULL*/ );
+ }