More widget gallery.

This commit is contained in:
Matthias Clasen 2004-10-11 16:07:34 +00:00
parent 846e43898a
commit 9a3f410ecc
10 changed files with 65 additions and 10 deletions

View File

@ -1,7 +1,7 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
* docs/tools/widgets.c: Create scrolledwindow, statusbar,
scale and image images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain>

View File

@ -1,7 +1,7 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
* docs/tools/widgets.c: Create scrolledwindow, statusbar,
scale and image images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain>

View File

@ -1,7 +1,7 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
* docs/tools/widgets.c: Create scrolledwindow, statusbar,
scale and image images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain>

View File

@ -1,7 +1,7 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
* docs/tools/widgets.c: Create scrolledwindow, statusbar,
scale and image images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain>

View File

@ -1,9 +1,12 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* gtk/images/statusbar.png: New image.
* gtk/images/image.png:
* gtk/images/scales.png:
* gtk/images/statusbar.png: New images.
* gtk/visual_index.xml:
* gtk/Makefile.am (HTML_IMAGES): Add statusbar image.
* gtk/Makefile.am (HTML_IMAGES): Add statusbar, scale
and image images.
2004-10-11 Matthias Clasen <mclasen@redhat.com>

View File

@ -227,6 +227,7 @@ HTML_IMAGES = \
$(srcdir)/images/scrolledwindow.png \
$(srcdir)/images/spinbutton.png \
$(srcdir)/images/statusbar.png \
$(srcdir)/images/image.png \
$(srcdir)/images/messagedialog.png
# Extra options to supply to gtkdoc-fixref

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

View File

@ -77,4 +77,10 @@
<link linkend="GtkStatusbar">
<inlinegraphic fileref="statusbar.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkScale">
<inlinegraphic fileref="scales.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkImage">
<inlinegraphic fileref="image.png" format="PNG"></inlinegraphic>
</link>
</para>

View File

@ -598,6 +598,49 @@ create_statusbar (void)
return new_widget_info ("statusbar", vbox, SMALL);
}
static WidgetInfo *
create_scales (void)
{
GtkWidget *hbox;
GtkWidget *vbox;
vbox = gtk_vbox_new (FALSE, 3);
hbox = gtk_hbox_new (TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox),
gtk_hscale_new_with_range (0.0, 100.0, 1.0),
TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (hbox),
gtk_vscale_new_with_range (0.0, 100.0, 1.0),
TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox), hbox, TRUE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (vbox),
g_object_new (GTK_TYPE_LABEL,
"label", "Horizontal and Vertical\nScales",
"justify", GTK_JUSTIFY_CENTER,
NULL),
FALSE, FALSE, 0);
return new_widget_info ("scales", vbox, MEDIUM);}
static WidgetInfo *
create_image (void)
{
GtkWidget *widget;
GtkWidget *align, *vbox;
widget = gtk_image_new_from_stock (GTK_STOCK_DIALOG_WARNING,
GTK_ICON_SIZE_DND);
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 ("Image"),
FALSE, FALSE, 0);
return new_widget_info ("image", vbox, SMALL);
}
GList *
get_all_widgets (void)
{
@ -629,6 +672,8 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_scrolledwindow ());
retval = g_list_prepend (retval, create_spinbutton ());
retval = g_list_prepend (retval, create_statusbar ());
retval = g_list_prepend (retval, create_scales ());
retval = g_list_prepend (retval, create_image ());
return retval;
}