expose handlers are supposed to return a gboolean;
false may be correct, at least it's not random git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@44274 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -166,7 +166,7 @@ gtk_glwindow_map_callback( GtkWidget * WXUNUSED(widget), wxGLCanvas *win )
|
|||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
static void
|
static gboolean
|
||||||
gtk_glwindow_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExpose *gdk_event, wxGLCanvas *win )
|
gtk_glwindow_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExpose *gdk_event, wxGLCanvas *win )
|
||||||
{
|
{
|
||||||
// don't need to install idle handler, its done from "event" signal
|
// don't need to install idle handler, its done from "event" signal
|
||||||
@@ -177,6 +177,7 @@ gtk_glwindow_expose_callback( GtkWidget *WXUNUSED(widget), GdkEventExpose *gdk_e
|
|||||||
gdk_event->area.y,
|
gdk_event->area.y,
|
||||||
gdk_event->area.width,
|
gdk_event->area.width,
|
||||||
gdk_event->area.height );
|
gdk_event->area.height );
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -58,12 +58,12 @@ static wxColor LightContrastColour(const wxColour& c)
|
|||||||
}
|
}
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *gdk_event, wxMiniFrame *win )
|
static gboolean gtk_window_own_expose_callback(GtkWidget* widget, GdkEventExpose* gdk_event, wxMiniFrame* win)
|
||||||
{
|
{
|
||||||
// don't need to install idle handler, its done from "event" signal
|
// don't need to install idle handler, its done from "event" signal
|
||||||
|
|
||||||
if (!win->m_hasVMT) return;
|
if (!win->m_hasVMT || gdk_event->count > 0)
|
||||||
if (gdk_event->count > 0) return;
|
return false;
|
||||||
|
|
||||||
GtkPizza *pizza = GTK_PIZZA(widget);
|
GtkPizza *pizza = GTK_PIZZA(widget);
|
||||||
|
|
||||||
@@ -107,6 +107,7 @@ static void gtk_window_own_expose_callback( GtkWidget *widget, GdkEventExpose *g
|
|||||||
if (style & wxCLOSE_BOX)
|
if (style & wxCLOSE_BOX)
|
||||||
dc.DrawBitmap( win->m_closeButton, win->m_width-19, 2, true );
|
dc.DrawBitmap( win->m_closeButton, win->m_width-19, 2, true );
|
||||||
}
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user