Lines 1208-1215
gint XAP_UnixFrameImpl::_fe::delete_event(GtkWidget * w, GdkEvent * /*event*/, g
Link Here
|
1208 |
{ |
1208 |
{ |
1209 |
XAP_UnixFrameImpl * pUnixFrameImpl = static_cast<XAP_UnixFrameImpl *>(g_object_get_data(G_OBJECT(w), "user_data")); |
1209 |
XAP_UnixFrameImpl * pUnixFrameImpl = static_cast<XAP_UnixFrameImpl *>(g_object_get_data(G_OBJECT(w), "user_data")); |
1210 |
FV_View * pView = static_cast<FV_View *>(pUnixFrameImpl->getFrame()->getCurrentView()); |
1210 |
FV_View * pView = static_cast<FV_View *>(pUnixFrameImpl->getFrame()->getCurrentView()); |
|
|
1211 |
double x, y, width, height; |
1211 |
#if GTK_CHECK_VERSION(3,0,0) |
1212 |
#if GTK_CHECK_VERSION(3,0,0) |
1212 |
GdkEventExpose *pExposeEvent = reinterpret_cast<GdkEventExpose *>(gtk_get_current_event()); |
1213 |
cairo_clip_extents (cr, &x, &y, &width, &height); |
|
|
1214 |
width -= x; |
1215 |
height -= y; |
1216 |
#else |
1217 |
x = pExposeEvent->area.x; |
1218 |
y = pExposeEvent->area.y; |
1219 |
width = pExposeEvent->area.width; |
1220 |
height = pExposeEvent->area.height; |
1213 |
#endif |
1221 |
#endif |
1214 |
/* Jean: commenting out next lines since the zoom update code does draw only |
1222 |
/* Jean: commenting out next lines since the zoom update code does draw only |
1215 |
* part of what needs to be updated. */ |
1223 |
* part of what needs to be updated. */ |
Lines 1230-1245
gint XAP_UnixFrameImpl::_fe::expose(GtkWidget * w, GdkEventExpose* pExposeEvent)
Link Here
|
1230 |
UT_Rect rClip; |
1238 |
UT_Rect rClip; |
1231 |
if (pGr->getPaintCount () > 0) |
1239 |
if (pGr->getPaintCount () > 0) |
1232 |
return TRUE; |
1240 |
return TRUE; |
1233 |
xxx_UT_DEBUGMSG(("Expose area: x %d y %d width %d height %d \n",pExposeEvent->area.x,pExposeEvent->area.y,pExposeEvent->area.width,pExposeEvent->area.height)); |
1241 |
rClip.left = pGr->tlu(x); |
1234 |
rClip.left = pGr->tlu(pExposeEvent->area.x); |
1242 |
rClip.top = pGr->tlu(y); |
1235 |
rClip.top = pGr->tlu(pExposeEvent->area.y); |
1243 |
#if GTK_CHECK_VERSION(3,0,0) |
1236 |
rClip.width = pGr->tlu(pExposeEvent->area.width)+1; |
1244 |
rClip.width = pGr->tlu(width); |
1237 |
rClip.height = pGr->tlu(pExposeEvent->area.height)+1; |
1245 |
rClip.height = pGr->tlu(height); |
1238 |
#if GTK_CHECK_VERSION(3,0,0) |
|
|
1239 |
static_cast<GR_CairoGraphics *>(pGr)->setCairo(cr); |
1246 |
static_cast<GR_CairoGraphics *>(pGr)->setCairo(cr); |
1240 |
pView->draw(&rClip); |
1247 |
pView->draw(&rClip); |
1241 |
static_cast<GR_CairoGraphics *>(pGr)->setCairo(NULL); |
1248 |
static_cast<GR_CairoGraphics *>(pGr)->setCairo(NULL); |
1242 |
#else |
1249 |
#else |
|
|
1250 |
rClip.width = pGr->tlu(width)+1; |
1251 |
rClip.height = pGr->tlu(height)+1; |
1243 |
pView->draw(&rClip); |
1252 |
pView->draw(&rClip); |
1244 |
#endif |
1253 |
#endif |
1245 |
} |
1254 |
} |