[egg-list-box] flow-box: Test single-click activation



commit 16b5fd9e86bc6a0ed4385ce9da2dab456c9eedf6
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Feb 20 21:12:28 2013 -0500

    flow-box: Test single-click activation
    
    Add a checkbox to the test-flow-box test for changing the
    activate-on-single-click property.

 test-flow-box.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/test-flow-box.c b/test-flow-box.c
index ef06eaa..3d2612e 100644
--- a/test-flow-box.c
+++ b/test-flow-box.c
@@ -363,6 +363,14 @@ create_window (void)
   g_signal_connect (G_OBJECT (widget), "toggled",
                     G_CALLBACK (homogeneous_toggled), flowbox);
 
+  widget = gtk_check_button_new_with_label ("Activate on single click");
+  gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (widget), FALSE);
+  g_object_bind_property (widget, "active",
+                          flowbox, "activate-on-single-click",
+                          G_BINDING_SYNC_CREATE);
+  gtk_widget_show (widget);
+  gtk_box_pack_start (GTK_BOX (flowbox_cntl), widget, FALSE, FALSE, 0);
+
   /* Add alignment controls */
   widget = gtk_combo_box_text_new ();
   gtk_combo_box_text_append_text (GTK_COMBO_BOX_TEXT (widget), "Fill");


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