revert a GTK+3 compatibility change

This commit is contained in:
Sebastian Ramacher 2012-02-13 15:00:53 +01:00
parent 16336cf065
commit bc0a9c99ca

View file

@ -391,7 +391,12 @@ redraw_rect(ZathuraPage* widget, zathura_rectangle_t* rectangle)
grect.y = rectangle->y1;
grect.width = rectangle->x2 - rectangle->x1;
grect.height = rectangle->y2 - rectangle->y1;
#if (GTK_MAJOR_VERSION == 3)
/* gtk_widget_get_parent_window is wrong here */
gdk_window_invalidate_rect(gtk_widget_get_parent_window(GTK_WIDGET(widget)), &grect, TRUE);
#else
gdk_window_invalidate_rect(GTK_WIDGET(widget)->window, &grect, TRUE);
#endif
}
static void