Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gtk
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1,123
Issues
1,123
List
Boards
Labels
Service Desk
Milestones
Merge Requests
151
Merge Requests
151
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
GNOME
gtk
Commits
1605ca01
Commit
1605ca01
authored
Oct 25, 2020
by
Matthias Clasen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs: Add GtkExpander to the gallery
parent
8692f5d8
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
21 additions
and
9 deletions
+21
-9
docs/reference/gtk/images/expander.png
docs/reference/gtk/images/expander.png
+0
-0
docs/reference/gtk/meson.build
docs/reference/gtk/meson.build
+1
-0
docs/reference/gtk/visual_index.xml
docs/reference/gtk/visual_index.xml
+6
-9
docs/tools/widgets.c
docs/tools/widgets.c
+14
-0
No files found.
docs/reference/gtk/images/expander.png
0 → 100644
View file @
1605ca01
2.29 KB
docs/reference/gtk/meson.build
View file @
1605ca01
...
...
@@ -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',
...
...
docs/reference/gtk/visual_index.xml
View file @
1605ca01
...
...
@@ -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=
"Gtk
Paned"
><inlinegraphic
fileref=
"panes
.png"
format=
"PNG"
></inlinegraphic></link>
<link
linkend=
"Gtk
HeaderBar"
><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"
>
...
...
docs/tools/widgets.c
View file @
1605ca01
...
...
@@ -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
;
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment