diff --git a/docs/reference/gtk/images/expander.png b/docs/reference/gtk/images/expander.png new file mode 100644 index 0000000000..4b9548fcf1 Binary files /dev/null and b/docs/reference/gtk/images/expander.png differ diff --git a/docs/reference/gtk/meson.build b/docs/reference/gtk/meson.build index 3f7ff975f4..d3228b77a0 100644 --- a/docs/reference/gtk/meson.build +++ b/docs/reference/gtk/meson.build @@ -268,6 +268,7 @@ images = [ 'images/entry.png', 'images/exampleapp.png', 'images/expanders.png', + 'images/expander.png', 'images/extensions.png', 'images/figure-hierarchical-drawing.png', 'images/figure-windowed-label.png', diff --git a/docs/reference/gtk/visual_index.xml b/docs/reference/gtk/visual_index.xml index 4164e0ec86..80daea4717 100644 --- a/docs/reference/gtk/visual_index.xml +++ b/docs/reference/gtk/visual_index.xml @@ -63,24 +63,21 @@ Containers - + + + - + - - - + + - - - -
diff --git a/docs/tools/widgets.c b/docs/tools/widgets.c index a920ad21ac..9370c06798 100644 --- a/docs/tools/widgets.c +++ b/docs/tools/widgets.c @@ -1576,6 +1576,19 @@ create_emojichooser (void) return info; } +static WidgetInfo * +create_expander (void) +{ + GtkWidget *widget; + + widget = gtk_expander_new ("Expander"); + gtk_expander_set_child (GTK_EXPANDER (widget), gtk_label_new ("Hidden Content")); + gtk_widget_set_halign (widget, GTK_ALIGN_CENTER); + gtk_widget_set_valign (widget, GTK_ALIGN_CENTER); + + return new_widget_info ("expander", widget, SMALL); +} + GList * get_all_widgets (void) { @@ -1644,6 +1657,7 @@ get_all_widgets (void) retval = g_list_prepend (retval, create_window_controls ()); retval = g_list_prepend (retval, create_calendar ()); retval = g_list_prepend (retval, create_emojichooser ()); + retval = g_list_prepend (retval, create_expander ()); return retval; }