diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-08-04 00:33:37 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-08-04 00:33:37 -0400 |
commit | f49d26718785a40bb1bd9aa5ea924fc6091f4754 (patch) | |
tree | 8336d8c94845d5d7e10daaeb84044b2b1fc3cb4c /docs | |
parent | 2c306f75c4929030913ece2c9595c04a36123aa8 (diff) | |
download | gtk+-f49d26718785a40bb1bd9aa5ea924fc6091f4754.tar.gz |
docs: Add a gallery image for GtkDropDown
Diffstat (limited to 'docs')
-rw-r--r-- | docs/reference/gtk/images/drop-down.png | bin | 0 -> 2906 bytes | |||
-rw-r--r-- | docs/reference/gtk/meson.build | 1 | ||||
-rw-r--r-- | docs/reference/gtk/visual_index.xml | 3 | ||||
-rw-r--r-- | docs/tools/widgets.c | 14 |
4 files changed, 18 insertions, 0 deletions
diff --git a/docs/reference/gtk/images/drop-down.png b/docs/reference/gtk/images/drop-down.png Binary files differnew file mode 100644 index 0000000000..55b0acf23e --- /dev/null +++ b/docs/reference/gtk/images/drop-down.png diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index 70f660bd2f..c9b63cad64 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -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', diff --git a/docs/reference/gtk/visual_index.xml b/docs/reference/gtk/visual_index.xml index c482979cf8..8bc3a4f8e9 100644 --- a/docs/reference/gtk/visual_index.xml +++ b/docs/reference/gtk/visual_index.xml @@ -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> diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index a636c20e70..556da8325f 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -378,6 +378,19 @@ create_combo_box_text (void) } 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) { GtkWidget *widget; @@ -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; } |