mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-27 06:00:22 +00:00
docs: Add GtkExpander to the gallery
This commit is contained in:
parent
8692f5d8e3
commit
1605ca0140
BIN
docs/reference/gtk/images/expander.png
Normal file
BIN
docs/reference/gtk/images/expander.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 2.3 KiB |
@ -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',
|
||||
|
@ -63,24 +63,21 @@
|
||||
<title>Containers</title>
|
||||
<para role="gallery">
|
||||
<link linkend="GtkScrolledWindow"><inlinegraphic fileref="scrolledwindow.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkHeaderBar"><inlinegraphic fileref="headerbar.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkPaned"><inlinegraphic fileref="panes.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkFrame"><inlinegraphic fileref="frame.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkExpander"><inlinegraphic fileref="expander.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkSearchBar"><inlinegraphic fileref="search-bar.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkActionBar"><inlinegraphic fileref="action-bar.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkPaned"><inlinegraphic fileref="panes.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkHeaderBar"><inlinegraphic fileref="headerbar.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkNotebook"><inlinegraphic fileref="notebook.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkFrame"><inlinegraphic fileref="frame.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkListBox"><inlinegraphic fileref="list-box.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkFlowBox"><inlinegraphic fileref="flow-box.png" format="PNG"></inlinegraphic></link>
|
||||
</para>
|
||||
<para role="gallery">
|
||||
<link linkend="GtkTreeView"><inlinegraphic fileref="list-and-tree.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkIconView"><inlinegraphic fileref="icon-view.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkStack"><inlinegraphic fileref="stack.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkStackSwitcher"><inlinegraphic fileref="stackswitcher.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkStackSidebar"><inlinegraphic fileref="sidebar.png" format="PNG"></inlinegraphic></link>
|
||||
</para>
|
||||
<para role="gallery">
|
||||
<link linkend="GtkTreeView"><inlinegraphic fileref="list-and-tree.png" format="PNG"></inlinegraphic></link>
|
||||
<link linkend="GtkIconView"><inlinegraphic fileref="icon-view.png" format="PNG"></inlinegraphic></link>
|
||||
</para>
|
||||
</section>
|
||||
|
||||
<section id="visual-windows">
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user