mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
testdmabuf: Use a spinner as overlay
Thats a bigger challenge, and it breaks.
This commit is contained in:
parent
933ce71ec6
commit
49e0ae8742
@ -693,8 +693,10 @@ toggle_overlay (GtkWidget *widget,
|
||||
}
|
||||
else
|
||||
{
|
||||
child = gtk_image_new_from_icon_name ("media-playback-start-symbolic");
|
||||
gtk_image_set_icon_size (GTK_IMAGE (child), GTK_ICON_SIZE_LARGE);
|
||||
child = gtk_spinner_new ();
|
||||
gtk_spinner_start (GTK_SPINNER (child));
|
||||
gtk_widget_set_halign (child, GTK_ALIGN_CENTER);
|
||||
gtk_widget_set_valign (child, GTK_ALIGN_CENTER);
|
||||
gtk_overlay_add_overlay (overlay, child);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user