[evolution-data-server/openismus-work-3-8: 110/118] CursorExample: Touching up comments in example program.



commit 2710b73db1f33a776a16e628b8dcec30b7c1694e
Author: Tristan Van Berkom <tristanvb openismus com>
Date:   Fri Aug 30 14:25:36 2013 +0200

    CursorExample: Touching up comments in example program.

 tests/cursor-example/cursor-example.c |   11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)
---
diff --git a/tests/cursor-example/cursor-example.c b/tests/cursor-example/cursor-example.c
index ad10966..19ee11b 100644
--- a/tests/cursor-example/cursor-example.c
+++ b/tests/cursor-example/cursor-example.c
@@ -27,10 +27,8 @@
 #include "cursor-data.h"
 
 #define N_SLOTS         10
-
 #define INITIAL_TIMEOUT 600
 #define TICK_TIMEOUT    100
-
 #define d(x)
 
 typedef enum _TimeoutActivity TimeoutActivity;
@@ -160,11 +158,18 @@ cursor_example_init (CursorExample *example)
        example->priv = priv =
                cursor_example_get_instance_private (example);
 
+       /* Initialize the template, we use 2 private types in
+        * our GtkBuilder xml, the CursorNavigator is used to
+        * display the locale specific alphabet navigator and
+        * the CursorSearch object controls the query expression.
+        */
        g_type_ensure (CURSOR_TYPE_NAVIGATOR);
        g_type_ensure (CURSOR_TYPE_SEARCH);
-
        gtk_widget_init_template (GTK_WIDGET (example));
 
+       /* Pick up our dynamic 'slot' widgets, the CursorSlot widgets
+        * are used to display results (contacts).
+        */
        for (i = 0; i < N_SLOTS; i++) {
 
                gchar *name = g_strdup_printf ("contact_slot_%d", i + 1);


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