Add more widget gallery images.

This commit is contained in:
Matthias Clasen 2004-10-11 15:14:27 +00:00
parent 7dd9eb5f93
commit b22707fde6
11 changed files with 186 additions and 68 deletions

View File

@ -1,7 +1,12 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain> 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create a toolbar, menubar and * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
messagedialog images. notebook and messagedialog images.
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all): * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all):
Avoid a warning. Avoid a warning.

View File

@ -1,7 +1,12 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain> 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create a toolbar, menubar and * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
messagedialog images. notebook and messagedialog images.
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all): * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all):
Avoid a warning. Avoid a warning.

View File

@ -1,7 +1,12 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain> 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create a toolbar, menubar and * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
messagedialog images. notebook and messagedialog images.
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all): * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all):
Avoid a warning. Avoid a warning.

View File

@ -1,7 +1,12 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create scrolledwindow and statusbar
images.
2004-10-10 Matthias Clasen <matthias@localhost.localdomain> 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
* docs/tools/widgets.c: Create a toolbar, menubar and * docs/tools/widgets.c: Create a toolbar, menubar, progressbar,
messagedialog images. notebook and messagedialog images.
* gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all): * gtk/gtkfilechooserdefault.c (gtk_file_chooser_default_select_all):
Avoid a warning. Avoid a warning.

View File

@ -1,3 +1,10 @@
2004-10-11 Matthias Clasen <matthias@localhost.localdomain>
* gtk/images/statusbar.png: New image.
* gtk/visual_index.xml:
* gtk/Makefile.am (HTML_IMAGES): Add statusbar image.
2004-10-11 Matthias Clasen <mclasen@redhat.com> 2004-10-11 Matthias Clasen <mclasen@redhat.com>
* gtk/migrating-GtkComboBox.sgml: Remove chapterinfo. * gtk/migrating-GtkComboBox.sgml: Remove chapterinfo.
@ -10,6 +17,12 @@
2004-10-10 Matthias Clasen <matthias@localhost.localdomain> 2004-10-10 Matthias Clasen <matthias@localhost.localdomain>
* gtk/images/spinbutton.png:
* gtk/images/scrolledwindow.png: New images.
* gtk/Makefile.am (HTML_IMAGES):
* gtk/visual_index.xml: Add scrolled window and spinbutton.
* gtk/images/progressbar.png: * gtk/images/progressbar.png:
* gtk/images/notebook.png: * gtk/images/notebook.png:
* gtk/images/toolbar.png: * gtk/images/toolbar.png:

View File

@ -224,6 +224,9 @@ HTML_IMAGES = \
$(srcdir)/images/menubar.png \ $(srcdir)/images/menubar.png \
$(srcdir)/images/notebook.png \ $(srcdir)/images/notebook.png \
$(srcdir)/images/progressbar.png \ $(srcdir)/images/progressbar.png \
$(srcdir)/images/scrolledwindow.png \
$(srcdir)/images/spinbutton.png \
$(srcdir)/images/statusbar.png \
$(srcdir)/images/messagedialog.png $(srcdir)/images/messagedialog.png
# Extra options to supply to gtkdoc-fixref # Extra options to supply to gtkdoc-fixref

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

View File

@ -1,48 +1,80 @@
<para role="gallery"> <para role="gallery">
<link linkend="GtkAccelLabel"><inlinegraphic fileref="accel-label.png" <link linkend="GtkAccelLabel">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="accel-label.png" format="PNG"></inlinegraphic>
linkend="GtkButton"><inlinegraphic fileref="button.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkButton">
linkend="GtkCheckButton"><inlinegraphic fileref="check-button.png" <inlinegraphic fileref="button.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkColorButton"><inlinegraphic fileref="color-button.png" <link linkend="GtkCheckButton">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="check-button.png" format="PNG"></inlinegraphic>
linkend="GtkComboBoxEntry"><inlinegraphic </link>
fileref="combo-box-entry.png" format="PNG"></inlinegraphic></link> <link linkend="GtkColorButton">
<link linkend="GtkEntry"><inlinegraphic fileref="entry.png" <inlinegraphic fileref="color-button.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="gtk-GtkFileChooserButton"><inlinegraphic <link linkend="GtkComboBoxEntry">
fileref="file-button.png" format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="combo-box-entry.png" format="PNG"></inlinegraphic>
linkend="GtkFontButton"><inlinegraphic fileref="font-button.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkEntry">
linkend="GtkFrame"><inlinegraphic fileref="frame.png" <inlinegraphic fileref="entry.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkIconView"><inlinegraphic fileref="icon-view.png" <link linkend="gtk-GtkFileChooserButton">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="file-button.png" format="PNG"></inlinegraphic>
linkend="GtkLabel"><inlinegraphic fileref="label.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkFontButton">
linkend="GtkTreeView"><inlinegraphic fileref="list-and-tree.png" <inlinegraphic fileref="font-button.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkTextView"><inlinegraphic fileref="multiline-text.png" <link linkend="GtkFrame">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="frame.png" format="PNG"></inlinegraphic>
linkend="GtkPaned"><inlinegraphic fileref="panes.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkIconView">
linkend="GtkRadioButton"><inlinegraphic fileref="radio-group.png" <inlinegraphic fileref="icon-view.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkSeparator"><inlinegraphic fileref="separator.png" <link linkend="GtkLabel">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="label.png" format="PNG"></inlinegraphic>
linkend="GtkToggleButton"><inlinegraphic fileref="toggle-button.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkTreeView">
linkend="GtkWindow"><inlinegraphic fileref="window.png" <inlinegraphic fileref="list-and-tree.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkNotebook"><inlinegraphic fileref="notebook.png" <link linkend="GtkTextView">
format="PNG"></inlinegraphic></link> <link <inlinegraphic fileref="multiline-text.png" format="PNG"></inlinegraphic>
linkend="GtkMessageDialog"><inlinegraphic fileref="messagedialog.png" </link>
format="PNG"></inlinegraphic></link> <link <link linkend="GtkPaned">
linkend="GtkToolbar"><inlinegraphic fileref="toolbar.png" <inlinegraphic fileref="panes.png" format="PNG"></inlinegraphic>
format="PNG"></inlinegraphic></link> <link </link>
linkend="GtkMenuBar"><inlinegraphic fileref="menubar.png" <link linkend="GtkRadioButton">
format="PNG"></inlinegraphic></link> <inlinegraphic fileref="radio-group.png" format="PNG"></inlinegraphic>
linkend="GtkProgressBar"><inlinegraphic fileref="progressbar.png" </link>
format="PNG"></inlinegraphic></link> <link linkend="GtkSeparator">
<inlinegraphic fileref="separator.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkToggleButton">
<inlinegraphic fileref="toggle-button.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkWindow">
<inlinegraphic fileref="window.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkNotebook">
<inlinegraphic fileref="notebook.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkMessageDialog">
<inlinegraphic fileref="messagedialog.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkToolbar">
<inlinegraphic fileref="toolbar.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkMenuBar">
<inlinegraphic fileref="menubar.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkProgressBar">
<inlinegraphic fileref="progressbar.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkScrolledWindow">
<inlinegraphic fileref="scrolledwindow.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkSpinButton">
<inlinegraphic fileref="spinbutton.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkStatusbar">
<inlinegraphic fileref="statusbar.png" format="PNG"></inlinegraphic>
</link>
</para> </para>

View File

@ -443,7 +443,7 @@ create_window (void)
static WidgetInfo * static WidgetInfo *
create_toolbar (void) create_toolbar (void)
{ {
GtkWidget *widget, *menu, *vbox, *align; GtkWidget *widget, *menu;
GtkToolItem *item; GtkToolItem *item;
widget = gtk_toolbar_new (); widget = gtk_toolbar_new ();
@ -461,16 +461,6 @@ create_toolbar (void)
gtk_toolbar_set_show_arrow (GTK_TOOLBAR (widget), FALSE); gtk_toolbar_set_show_arrow (GTK_TOOLBAR (widget), FALSE);
#if 0
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 ("Toolbar"),
FALSE, FALSE, 0);
#endif
return new_widget_info ("toolbar", widget, SMALL); return new_widget_info ("toolbar", widget, SMALL);
} }
@ -539,10 +529,11 @@ create_progressbar (void)
GtkWidget *widget; GtkWidget *widget;
GtkWidget *align; GtkWidget *align;
vbox = gtk_vbox_new (FALSE, 3);
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
widget = gtk_progress_bar_new (); widget = gtk_progress_bar_new ();
gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (widget), 0.5); gtk_progress_bar_set_fraction (GTK_PROGRESS_BAR (widget), 0.5);
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_container_add (GTK_CONTAINER (align), widget);
gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0); gtk_box_pack_start (GTK_BOX (vbox), align, FALSE, FALSE, 0);
gtk_box_pack_start (GTK_BOX (vbox), gtk_box_pack_start (GTK_BOX (vbox),
@ -552,11 +543,66 @@ create_progressbar (void)
return new_widget_info ("progressbar", vbox, SMALL); return new_widget_info ("progressbar", vbox, SMALL);
} }
static WidgetInfo *
create_scrolledwindow (void)
{
GtkWidget *scrolledwin, *label;
scrolledwin = gtk_scrolled_window_new (NULL, NULL);
label = gtk_label_new ("Scrolled Window");
gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolledwin),
label);
return new_widget_info ("scrolledwindow", scrolledwin, MEDIUM);
}
static WidgetInfo *
create_spinbutton (void)
{
GtkWidget *widget;
GtkWidget *vbox, *align;
widget = gtk_spin_button_new_with_range (0.0, 100.0, 1.0);
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 ("Spin Button"),
FALSE, FALSE, 0);
return new_widget_info ("spinbutton", vbox, SMALL);
}
static WidgetInfo *
create_statusbar (void)
{
GtkWidget *widget;
GtkWidget *vbox, *align;
widget = gtk_statusbar_new ();
gtk_statusbar_set_has_resize_grip (GTK_STATUSBAR (widget), TRUE);
gtk_statusbar_push (GTK_STATUSBAR (widget), 0, "Hold on...");
gtk_widget_set_size_request (widget, 220, -1);
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 ("Status Bar"),
FALSE, FALSE, 0);
return new_widget_info ("statusbar", vbox, SMALL);
}
GList * GList *
get_all_widgets (void) get_all_widgets (void)
{ {
GList *retval = NULL; GList *retval = NULL;
#if 0
retval = g_list_prepend (retval, create_button ()); retval = g_list_prepend (retval, create_button ());
retval = g_list_prepend (retval, create_toggle_button ()); retval = g_list_prepend (retval, create_toggle_button ());
retval = g_list_prepend (retval, create_check_button ()); retval = g_list_prepend (retval, create_check_button ());
@ -580,6 +626,10 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_notebook ()); retval = g_list_prepend (retval, create_notebook ());
retval = g_list_prepend (retval, create_message_dialog ()); retval = g_list_prepend (retval, create_message_dialog ());
retval = g_list_prepend (retval, create_progressbar ()); retval = g_list_prepend (retval, create_progressbar ());
retval = g_list_prepend (retval, create_scrolledwindow ());
retval = g_list_prepend (retval, create_spinbutton ());
#endif
retval = g_list_prepend (retval, create_statusbar ());
return retval; return retval;
} }