use gtk_widget_queue_draw() to force update to drawingarea
This commit is contained in:
parent
b9dd97e383
commit
e0fe3be5b2
6
dwss.cc
6
dwss.cc
@ -134,11 +134,7 @@ configure (GtkWidget *da, GdkEventConfigure *event, gpointer user_data)
|
|||||||
static gboolean
|
static gboolean
|
||||||
update (void *user_data)
|
update (void *user_data)
|
||||||
{
|
{
|
||||||
GdkRectangle rect;
|
gtk_widget_queue_draw(drawing_area);
|
||||||
GdkWindow *win = gtk_widget_get_parent_window(drawing_area);
|
|
||||||
rect.x = rect.y = 0;
|
|
||||||
gdk_window_get_geometry(win, NULL, NULL, &rect.width, &rect.height, NULL);
|
|
||||||
gdk_window_invalidate_rect(win, &rect, TRUE);
|
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user