mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-12 21:40:19 +00:00
Add GtkSpinner to the widget gallery
Yes, our documentation setup is wierd and wonderful.
This commit is contained in:
parent
d1ee8e2d4b
commit
9112194791
@ -335,6 +335,7 @@ HTML_IMAGES = \
|
|||||||
$(srcdir)/images/scrolledwindow.png \
|
$(srcdir)/images/scrolledwindow.png \
|
||||||
$(srcdir)/images/separator.png \
|
$(srcdir)/images/separator.png \
|
||||||
$(srcdir)/images/spinbutton.png \
|
$(srcdir)/images/spinbutton.png \
|
||||||
|
$(srcdir)/images/spinner.png \
|
||||||
$(srcdir)/images/statusbar.png \
|
$(srcdir)/images/statusbar.png \
|
||||||
$(srcdir)/images/toggle-button.png \
|
$(srcdir)/images/toggle-button.png \
|
||||||
$(srcdir)/images/toolbar.png \
|
$(srcdir)/images/toolbar.png \
|
||||||
|
BIN
docs/reference/gtk/images/spinner.png
Normal file
BIN
docs/reference/gtk/images/spinner.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.4 KiB |
@ -39,6 +39,9 @@
|
|||||||
<link linkend="GtkImage">
|
<link linkend="GtkImage">
|
||||||
<inlinegraphic fileref="image.png" format="PNG"></inlinegraphic>
|
<inlinegraphic fileref="image.png" format="PNG"></inlinegraphic>
|
||||||
</link>
|
</link>
|
||||||
|
<link linkend="GtkSpinner">
|
||||||
|
<inlinegraphic fileref="spinner.png" format="PNG"></inlinegraphic>
|
||||||
|
</link>
|
||||||
<link linkend="GtkLabel">
|
<link linkend="GtkLabel">
|
||||||
<inlinegraphic fileref="label.png" format="PNG"></inlinegraphic>
|
<inlinegraphic fileref="label.png" format="PNG"></inlinegraphic>
|
||||||
</link>
|
</link>
|
||||||
|
@ -939,6 +939,26 @@ create_image (void)
|
|||||||
return new_widget_info ("image", vbox, SMALL);
|
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 *
|
static WidgetInfo *
|
||||||
create_volume_button (void)
|
create_volume_button (void)
|
||||||
{
|
{
|
||||||
@ -985,6 +1005,7 @@ get_all_widgets (void)
|
|||||||
{
|
{
|
||||||
GList *retval = NULL;
|
GList *retval = NULL;
|
||||||
|
|
||||||
|
retval = g_list_prepend (retval, create_spinner ());
|
||||||
retval = g_list_prepend (retval, create_about_dialog ());
|
retval = g_list_prepend (retval, create_about_dialog ());
|
||||||
retval = g_list_prepend (retval, create_accel_label ());
|
retval = g_list_prepend (retval, create_accel_label ());
|
||||||
retval = g_list_prepend (retval, create_button ());
|
retval = g_list_prepend (retval, create_button ());
|
||||||
|
Loading…
Reference in New Issue
Block a user