{
int i = 0;
int commandId = event.GetId();
-
- while (table.entries[i].m_fn !=
-#ifdef __SGI_CC__
- 0L
-#else
- NULL
-#endif
- )
- {
-// wxEventType eventType = (wxEventType) table.entries[i].m_eventType;
+ while (table.entries[i].m_fn)
+ {
if ((event.GetEventType() == table.entries[i].m_eventType) &&
(table.entries[i].m_id == -1 || // Match, if event spec says any id will do (id == -1)
(table.entries[i].m_lastId == -1 && commandId == table.entries[i].m_id) ||
{
wxEventTableEntry *entry = (wxEventTableEntry*)node->Data();
-// wxEventType eventType = (wxEventType) entry->m_eventType;
-
if (entry->m_fn)
{
if ((event.GetEventType() == entry->m_eventType) &&
else
return TRUE;
}
- };
+ }
node = node->Next();
}
return FALSE;
SetUpDC();
+/*
wxRegion update = window->GetUpdateRegion();
if (update.Empty()) return;
gdk_gc_set_clip_region( m_brushGC, update.GetRegion() );
gdk_gc_set_clip_region( m_textGC, update.GetRegion() );
gdk_gc_set_clip_region( m_bgGC, update.GetRegion() );
+*/
}
wxWindowDC::~wxWindowDC(void)
GtkStyleClass *viewport_class = viewport->style->klass;
- GtkWidget *hscrollbar = scroll_window->hscrollbar;
- GtkWidget *vscrollbar = scroll_window->vscrollbar;
-
if ((m_windowStyle & wxRAISED_BORDER) ||
(m_windowStyle & wxSUNKEN_BORDER))
{
void wxWindow::OnSize( wxSizeEvent &WXUNUSED(event) )
{
- //if (GetAutoLayout()) Layout();
+ if (GetAutoLayout()) Layout();
}
bool wxWindow::Show( bool show )
SetUpDC();
+/*
wxRegion update = window->GetUpdateRegion();
if (update.Empty()) return;
gdk_gc_set_clip_region( m_brushGC, update.GetRegion() );
gdk_gc_set_clip_region( m_textGC, update.GetRegion() );
gdk_gc_set_clip_region( m_bgGC, update.GetRegion() );
+*/
}
wxWindowDC::~wxWindowDC(void)
GtkStyleClass *viewport_class = viewport->style->klass;
- GtkWidget *hscrollbar = scroll_window->hscrollbar;
- GtkWidget *vscrollbar = scroll_window->vscrollbar;
-
if ((m_windowStyle & wxRAISED_BORDER) ||
(m_windowStyle & wxSUNKEN_BORDER))
{
void wxWindow::OnSize( wxSizeEvent &WXUNUSED(event) )
{
- //if (GetAutoLayout()) Layout();
+ if (GetAutoLayout()) Layout();
}
bool wxWindow::Show( bool show )