Add GtkSpinner to the widget gallery

Yes, our documentation setup is wierd and wonderful.
This commit is contained in:
Matthias Clasen 2009-10-14 13:52:52 -04:00
parent d1ee8e2d4b
commit 9112194791
4 changed files with 25 additions and 0 deletions

View File

@ -335,6 +335,7 @@ HTML_IMAGES = \
$(srcdir)/images/scrolledwindow.png \
$(srcdir)/images/separator.png \
$(srcdir)/images/spinbutton.png \
$(srcdir)/images/spinner.png \
$(srcdir)/images/statusbar.png \
$(srcdir)/images/toggle-button.png \
$(srcdir)/images/toolbar.png \

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

View File

@ -39,6 +39,9 @@
<link linkend="GtkImage">
<inlinegraphic fileref="image.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkSpinner">
<inlinegraphic fileref="spinner.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkLabel">
<inlinegraphic fileref="label.png" format="PNG"></inlinegraphic>
</link>

View File

@ -939,6 +939,26 @@ create_image (void)
return new_widget_info ("image", vbox, SMALL);
}
static WidgetInfo *
create_spinner (void)
{
GtkWidget *widget;
GtkWidget *align, *vbox;
widget = gtk_spinner_new ();
gtk_widget_set_size_request (widget, 24, 24);
vbox = gtk_vbox_new (FALSE, 3);
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
gtk_container_add (GTK_CONTAINER (align), widget);
gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox),
gtk_label_new ("Spinner"),
FALSE, FALSE, 0);
return new_widget_info ("spinner", vbox, SMALL);
}
static WidgetInfo *
create_volume_button (void)
{
@ -985,6 +1005,7 @@ get_all_widgets (void)
{
GList *retval = NULL;
retval = g_list_prepend (retval, create_spinner ());
retval = g_list_prepend (retval, create_about_dialog ());
retval = g_list_prepend (retval, create_accel_label ());
retval = g_list_prepend (retval, create_button ());