[gtk+] testdialog: Add a spinner



commit 297abd6e54948418e5dff471f066eb6fb338220f
Author: Matthias Clasen <mclasen redhat com>
Date:   Sun Jun 29 14:03:14 2014 -0400

    testdialog: Add a spinner
    
    Trying to track down a problem where animation stops when a modal
    dialog is opened and closed.

 tests/testdialog.c |    6 ++++++
 1 files changed, 6 insertions(+), 0 deletions(-)
---
diff --git a/tests/testdialog.c b/tests/testdialog.c
index e38cc0c..dbc2ff2 100644
--- a/tests/testdialog.c
+++ b/tests/testdialog.c
@@ -387,6 +387,12 @@ main (int argc, char *argv[])
   gtk_widget_set_halign (button, GTK_ALIGN_CENTER);
   gtk_container_add (GTK_CONTAINER (vbox), button);
 
+  button = gtk_spinner_new ();
+  gtk_spinner_start (GTK_SPINNER (button));
+  gtk_widget_show (button);
+  gtk_widget_set_halign (button, GTK_ALIGN_CENTER);
+  gtk_container_add (GTK_CONTAINER (vbox), button);
+
   gtk_widget_show (window);
   gtk_main ();
   


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]