summaryrefslogtreecommitdiff
path: root/docs/tools
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2004-11-28 05:09:55 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2004-11-28 05:09:55 +0000
commit5e3426947f1cda36206b823802f0b2551b7df65f (patch)
treec42bde3454176ea9e080cf6feb7eb5ba9d3c673e /docs/tools
parent2925aee8bebe3e3b8aadf5f407dfc61a0614467e (diff)
downloadgtk+-5e3426947f1cda36206b823802f0b2551b7df65f.tar.gz
New image
2004-11-28 Matthias Clasen <mclasen@redhat.com> * gtk/images/combo-box.png: New image * gtk/visual_index.xml: * gtk/Makefile.am (HTML_IMAGES): Add combo-box.png
Diffstat (limited to 'docs/tools')
-rw-r--r--docs/tools/widgets.c25
1 files changed, 25 insertions, 0 deletions
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c
index 58c6889633..543c96b68d 100644
--- a/docs/tools/widgets.c
+++ b/docs/tools/widgets.c
@@ -261,6 +261,10 @@ create_combo_box_entry (void)
GtkWidget *widget;
GtkWidget *align;
+ gtk_rc_parse_string ("style \"combo-box-entry-style\" {\n"
+ " GtkComboBox::appears-as-list = 1\n"
+ "}\n"
+ "widget_class \"GtkComboBoxEntry\" style \"combo-box-entry-style\"\n" );
widget = gtk_combo_box_entry_new_text ();
gtk_entry_set_text (GTK_ENTRY (GTK_BIN (widget)->child), "Combo Box Entry");
align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
@@ -270,6 +274,26 @@ create_combo_box_entry (void)
}
static WidgetInfo *
+create_combo_box (void)
+{
+ GtkWidget *widget;
+ GtkWidget *align;
+
+ gtk_rc_parse_string ("style \"combo-box-style\" {\n"
+ " GtkComboBox::appears-as-list = 0\n"
+ "}\n"
+ "widget_class \"GtkComboBox\" style \"combo-box-style\"\n" );
+
+ widget = gtk_combo_box_new_text ();
+ gtk_combo_box_append_text (GTK_COMBO_BOX (widget), "Combo Box");
+ gtk_combo_box_set_active (GTK_COMBO_BOX (widget), 0);
+ align = gtk_alignment_new (0.5, 0.5, 0.0, 0.0);
+ gtk_container_add (GTK_CONTAINER (align), widget);
+
+ return new_widget_info ("combo-box", align, SMALL);
+}
+
+static WidgetInfo *
create_text_view (void)
{
GtkWidget *widget;
@@ -759,6 +783,7 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_button ());
retval = g_list_prepend (retval, create_check_button ());
retval = g_list_prepend (retval, create_color_button ());
+ retval = g_list_prepend (retval, create_combo_box ());
retval = g_list_prepend (retval, create_combo_box_entry ());
retval = g_list_prepend (retval, create_entry ());
retval = g_list_prepend (retval, create_file_button ());