Skip to content

Commit

Permalink
Bug 13815 - draw event should return TRUE
Browse files Browse the repository at this point in the history
This fix the black drawing regression with Gtk3.22

git-svn-id: svn+ssh://svn.abisource.com/svnroot/abiword/branches/ABI-3-0-0-STABLE@35394 bcba8976-2d24-0410-9c9c-aab3bd5fdfd6
  • Loading branch information
hfiguiere committed Dec 8, 2016
1 parent 9ec47e9 commit cec2fda
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/af/xap/gtk/xap_UnixFrameImpl.cpp
Expand Up @@ -1208,9 +1208,9 @@ gint XAP_UnixFrameImpl::_fe::delete_event(GtkWidget * w, GdkEvent * /*event*/, g
}

#if GTK_CHECK_VERSION(3,0,0)
gint XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
gboolean XAP_UnixFrameImpl::_fe::draw(GtkWidget * w, cairo_t * cr)
#else
gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
gboolean XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
#endif
{
XAP_UnixFrameImpl * pUnixFrameImpl = static_cast<XAP_UnixFrameImpl *>(g_object_get_data(G_OBJECT(w), "user_data"));
Expand Down Expand Up @@ -1243,7 +1243,7 @@ gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
pView->draw(&rClip);
#endif
}
return FALSE;
return TRUE;
}

static bool bScrollWait = false;
Expand Down
4 changes: 2 additions & 2 deletions src/af/xap/gtk/xap_UnixFrameImpl.h
Expand Up @@ -152,9 +152,9 @@ class XAP_UnixFrameImpl : public XAP_FrameImpl
static gint key_release_event(GtkWidget* w, GdkEventKey* e);
static gint delete_event(GtkWidget * w, GdkEvent * /*event*/, gpointer /*data*/);
#if GTK_CHECK_VERSION(3,0,0)
static gint draw(GtkWidget * w, cairo_t * cr);
static gboolean draw(GtkWidget * w, cairo_t * cr);
#else
static gint expose(GtkWidget * w, GdkEventExpose* pExposeEvent);
static gboolean expose(GtkWidget * w, GdkEventExpose* pExposeEvent);
#endif
static gint do_ZoomUpdate( gpointer /* xap_UnixFrame * */ p);
static void vScrollChanged(GtkAdjustment * w, gpointer /*data*/);
Expand Down

0 comments on commit cec2fda

Please sign in to comment.