mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-10 19:00:08 +00:00
toolitemgroup: Use gtk_widget_queue_draw()
This commit is contained in:
parent
4d4b355d0e
commit
b9aef64f09
@ -1097,8 +1097,7 @@ gtk_tool_item_group_size_allocate (GtkWidget *widget,
|
||||
{
|
||||
gtk_tool_item_group_real_size_allocate (widget, allocation);
|
||||
|
||||
if (gtk_widget_get_mapped (widget))
|
||||
gdk_window_invalidate_rect (gtk_widget_get_window (widget), NULL, FALSE);
|
||||
gtk_widget_queue_draw (widget);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1832,17 +1831,15 @@ gtk_tool_item_group_force_expose (GtkToolItemGroup *group)
|
||||
{
|
||||
GtkAllocation frame_allocation;
|
||||
GtkWidget *frame = gtk_tool_item_group_get_frame (group);
|
||||
GdkRectangle area;
|
||||
|
||||
/* Find the header button's arrow area... */
|
||||
/* Find the header button's arrow area and
|
||||
* invalidate it to get it animated. */
|
||||
gtk_widget_get_allocation (frame, &frame_allocation);
|
||||
area.x = frame_allocation.x;
|
||||
area.y = frame_allocation.y + (frame_allocation.height - priv->expander_size) / 2;
|
||||
area.height = priv->expander_size;
|
||||
area.width = priv->expander_size;
|
||||
|
||||
/* ... and invalidated it to get it animated. */
|
||||
gdk_window_invalidate_rect (gtk_widget_get_window (priv->header), &area, TRUE);
|
||||
gtk_widget_queue_draw_area (priv->header,
|
||||
frame_allocation.x,
|
||||
frame_allocation.y + (frame_allocation.height - priv->expander_size) / 2,
|
||||
priv->expander_size,
|
||||
priv->expander_size);
|
||||
}
|
||||
|
||||
if (gtk_widget_get_realized (widget))
|
||||
|
Loading…
Reference in New Issue
Block a user