GdkRectangle rectangle; rectangle.x = GTK_WIDGET(time_and_progress)->allocation.x; rectangle.y = GTK_WIDGET(time_and_progress)->allocation.y; rectangle.width = GTK_WIDGET(time_and_progress)->allocation.width; rectangle.height = GTK_WIDGET(time_and_progress)->allocation.height; gdk_window_invalidate_rect(win->window, &rectangle, TRUE);