app: replace gtk_widget_queue_draw_region() with…
gtk_widget_queue_draw_area(). gtk_widget_queue_draw_region() has been introduced in GTK 3.0.
This commit is contained in:
@ -458,20 +458,14 @@ selection_timeout (Selection *selection)
|
|||||||
|
|
||||||
if ((time - selection->shell->selection_update) / 1000 > config->marching_ants_speed)
|
if ((time - selection->shell->selection_update) / 1000 > config->marching_ants_speed)
|
||||||
{
|
{
|
||||||
GdkWindow *window;
|
GdkWindow *window;
|
||||||
cairo_rectangle_int_t rect;
|
|
||||||
cairo_region_t *region;
|
|
||||||
|
|
||||||
window = gtk_widget_get_window (GTK_WIDGET (selection->shell));
|
window = gtk_widget_get_window (GTK_WIDGET (selection->shell));
|
||||||
|
|
||||||
rect.x = 0;
|
gtk_widget_queue_draw_area (GTK_WIDGET (selection->shell),
|
||||||
rect.y = 0;
|
0, 0,
|
||||||
rect.width = gdk_window_get_width (window);
|
gdk_window_get_width (window),
|
||||||
rect.height = gdk_window_get_height (window);
|
gdk_window_get_height (window));
|
||||||
|
|
||||||
region = cairo_region_create_rectangle (&rect);
|
|
||||||
gtk_widget_queue_draw_region (GTK_WIDGET (selection->shell), region);
|
|
||||||
cairo_region_destroy (region);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return G_SOURCE_CONTINUE;
|
return G_SOURCE_CONTINUE;
|
||||||
|
Reference in New Issue
Block a user