Commit f49d2671 authored by Matthias Clasen's avatar Matthias Clasen

docs: Add a gallery image for GtkDropDown

parent 2c306f75
Pipeline #201507 failed with stages
in 34 minutes and 26 seconds
......@@ -257,6 +257,7 @@ images = [
'images/down-center.png',
'images/down-end.png',
'images/down-start.png',
'images/drop-down.png',
'images/drawing.png',
'images/ease-in-out.png',
'images/ease-in.png',
......
......@@ -111,6 +111,9 @@
<link linkend="GtkFileChooserButton">
<inlinegraphic fileref="file-button.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkDropDown">
<inlinegraphic fileref="drop-down.png" format="PNG"></inlinegraphic>
</link>
</para>
</section>
......
......@@ -377,6 +377,19 @@ create_combo_box_text (void)
return new_widget_info ("combo-box-text", widget, SMALL);
}
static WidgetInfo *
create_drop_down (void)
{
GtkWidget *widget;
widget = gtk_drop_down_new_from_strings ((const char * const []){"Drop Down", "Almost a combo", NULL});
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
return new_widget_info ("drop-down", widget, SMALL);
}
static WidgetInfo *
create_info_bar (void)
{
......@@ -1573,6 +1586,7 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_picture ());
retval = g_list_prepend (retval, create_password_entry ());
retval = g_list_prepend (retval, create_editable_label ());
retval = g_list_prepend (retval, create_drop_down ());
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