2008-09-11 Alberto Garcia <agarcia@igalia.com>
authorAlberto Garcia <agarcia@igalia.com>
Thu, 11 Sep 2008 14:39:31 +0000 (14:39 +0000)
committerAlberto Garcia <agarcia@igalia.com>
Thu, 11 Sep 2008 14:39:31 +0000 (14:39 +0000)
* src/hildon-edit-toolbar.c: Update documentation.

ChangeLog
src/hildon-edit-toolbar.c

index b62781c..d37ad30 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2008-09-11  Alberto Garcia  <agarcia@igalia.com>
 
 2008-09-11  Alberto Garcia  <agarcia@igalia.com>
 
+       * src/hildon-edit-toolbar.c: Update documentation.
+
+2008-09-11  Alberto Garcia  <agarcia@igalia.com>
+
        * src/hildon-check-button.h
        * src/hildon-check-button.c
        (hildon_check_button_set_label, hildon_check_button_get_label)
        * src/hildon-check-button.h
        * src/hildon-check-button.c
        (hildon_check_button_set_label, hildon_check_button_get_label)
index bb35778..52c47b1 100644 (file)
  * Note that those widgets don't do anything themselves by default. To
  * actually peform actions the developer must provide callbacks for
  * them.
  * Note that those widgets don't do anything themselves by default. To
  * actually peform actions the developer must provide callbacks for
  * them.
+ *
+ * <example>
+ * <title>HildonEditToolbar example</title>
+ * <programlisting>
+ * GtkWidget *window;
+ * GtkWidget *vbox;
+ * GtkWidget *toolbar;
+ * // Declare more widgets here ...
+ * <!-- -->
+ * window = hildon_stackable_window_new ();
+ * vbox = gtk_vbox_new (FALSE, 10);
+ * toolbar = hildon_edit_toolbar_new_with_text ("Choose items to delete", "Delete");
+ * // Create more widgets here ...
+ * <!-- -->
+ * gtk_container_add (GTK_CONTAINER (window), vbox);
+ * gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0);
+ * // Pack more widgets here ...
+ * <!-- -->
+ * g_signal_connect (toolbar, "button-clicked", G_CALLBACK (delete_button_clicked), someparameter);
+ * g_signal_connect_swapped (toolbar, "arrow-clicked", G_CALLBACK (gtk_widget_destroy), window);
+ * <!-- -->
+ * gtk_widget_show_all (window);
+ * gtk_window_fullscreen (GTK_WINDOW (window));
+ * </programlisting>
+ * </example>
  */
 
 #include                                        "hildon-edit-toolbar.h"
  */
 
 #include                                        "hildon-edit-toolbar.h"