Commit 9a3f410e authored by Matthias Clasen's avatar Matthias Clasen

More widget gallery.

parent 846e4389
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>
......
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>
......
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>
......
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>
......
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>
......
......@@ -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
......
......@@ -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>
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment