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
This commit is contained in:
parent
2925aee8be
commit
5e3426947f
@ -1,3 +1,7 @@
|
||||
2004-11-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* docs/tools/widgets.c: Add a combo box.
|
||||
|
||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-11-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* docs/tools/widgets.c: Add a combo box.
|
||||
|
||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-11-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* docs/tools/widgets.c: Add a combo box.
|
||||
|
||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
|
||||
|
@ -1,3 +1,7 @@
|
||||
2004-11-28 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* docs/tools/widgets.c: Add a combo box.
|
||||
|
||||
2004-11-27 Matthias Clasen <mclasen@redhat.com>
|
||||
|
||||
* gtk/gtkcolorsel.c (key_press): Implement keynav for the color
|
||||
|
@ -1,3 +1,10 @@
|
||||
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
|
||||
|
||||
Sat Nov 20 16:01:51 2004 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gdk/gdk-sections.txt gdk/gdk.types : Update for GdkPangoRenderer
|
||||
|
@ -210,6 +210,7 @@ HTML_IMAGES = \
|
||||
$(srcdir)/images/button.png \
|
||||
$(srcdir)/images/check-button.png \
|
||||
$(srcdir)/images/color-button.png \
|
||||
$(srcdir)/images/combo-box.png \
|
||||
$(srcdir)/images/combo-box-entry.png \
|
||||
$(srcdir)/images/entry.png \
|
||||
$(srcdir)/images/file-button.png \
|
||||
|
BIN
docs/reference/gtk/images/combo-box.png
Normal file
BIN
docs/reference/gtk/images/combo-box.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.7 KiB |
@ -11,6 +11,9 @@
|
||||
<link linkend="GtkColorButton">
|
||||
<inlinegraphic fileref="color-button.png" format="PNG"></inlinegraphic>
|
||||
</link>
|
||||
<link linkend="GtkComboBox">
|
||||
<inlinegraphic fileref="combo-box.png" format="PNG"></inlinegraphic>
|
||||
</link>
|
||||
<link linkend="GtkComboBoxEntry">
|
||||
<inlinegraphic fileref="combo-box-entry.png" format="PNG"></inlinegraphic>
|
||||
</link>
|
||||
|
@ -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);
|
||||
@ -269,6 +273,26 @@ create_combo_box_entry (void)
|
||||
return new_widget_info ("combo-box-entry", align, SMALL);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
@ -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 ());
|
||||
|
Loading…
Reference in New Issue
Block a user