Commit dffe6b87 authored by Matthias Clasen's avatar Matthias Clasen

docs: Add GtkCalendar to the gallery

It has been missing far too long.
parent 28b7962b
......@@ -244,6 +244,7 @@ images = [
'images/box-packing.png',
'images/builder-shortcuts.png',
'images/button.png',
'images/calendar.png',
'images/capture-bubble.png',
'images/check-button.png',
'images/checks.png',
......
......@@ -18,6 +18,7 @@
<link linkend="GtkSeparator"><inlinegraphic fileref="separator.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkTextView"><inlinegraphic fileref="multiline-text.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkScale"><inlinegraphic fileref="scales.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkCalendar"><inlinegraphic fileref="calendar.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkGLArea"><inlinegraphic fileref="glarea.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkVideo"><inlinegraphic fileref="video.png" format="PNG"></inlinegraphic></link>
<link linkend="GtkMediaControls"><inlinegraphic fileref="media-controls.png" format="PNG"></inlinegraphic></link>
......
......@@ -1536,6 +1536,25 @@ create_window_controls (void)
return new_widget_info ("windowcontrols", vbox, SMALL);
}
static WidgetInfo *
create_calendar (void)
{
GtkWidget *widget;
GtkWidget *vbox;
widget = gtk_calendar_new ();
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 3);
gtk_widget_set_halign (widget, GTK_ALIGN_CENTER);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
gtk_box_append (GTK_BOX (vbox), widget);
gtk_box_append (GTK_BOX (vbox), gtk_label_new ("Calendar"));
add_margin (vbox);
return new_widget_info ("calendar", vbox, MEDIUM);
}
GList *
get_all_widgets (void)
{
......@@ -1602,6 +1621,7 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_editable_label ());
retval = g_list_prepend (retval, create_drop_down ());
retval = g_list_prepend (retval, create_window_controls ());
retval = g_list_prepend (retval, create_calendar ());
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