Commit d7cd28c6 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

docs: Add gallery image for GtkPasswordEntry

parent 92cb6296
...@@ -331,6 +331,7 @@ images = [ ...@@ -331,6 +331,7 @@ images = [
'images/options.png', 'images/options.png',
'images/pagesetupdialog.png', 'images/pagesetupdialog.png',
'images/panes.png', 'images/panes.png',
'images/password-entry.png',
'images/picture.png', 'images/picture.png',
'images/placessidebar.png', 'images/placessidebar.png',
'images/popup-anchors.png', 'images/popup-anchors.png',
......
...@@ -123,6 +123,9 @@ ...@@ -123,6 +123,9 @@
<link linkend="GtkSearchEntry"> <link linkend="GtkSearchEntry">
<inlinegraphic fileref="search-entry.png" format="PNG"></inlinegraphic> <inlinegraphic fileref="search-entry.png" format="PNG"></inlinegraphic>
</link> </link>
<link linkend="GtkPasswordEntry">
<inlinegraphic fileref="password-entry.png" format="PNG"></inlinegraphic>
</link>
</para> </para>
</section> </section>
......
...@@ -231,6 +231,23 @@ create_entry (void) ...@@ -231,6 +231,23 @@ create_entry (void)
return new_widget_info ("entry", widget, SMALL); return new_widget_info ("entry", widget, SMALL);
} }
static WidgetInfo *
create_password_entry (void)
{
GtkWidget *widget;
widget = gtk_password_entry_new ();
gtk_password_entry_set_show_peek_icon (GTK_PASSWORD_ENTRY (widget), TRUE);
gtk_widget_set_halign (widget, GTK_ALIGN_FILL);
gtk_widget_set_valign (widget, GTK_ALIGN_CENTER);
gtk_editable_set_text (GTK_EDITABLE (widget), "Entry");
gtk_editable_set_position (GTK_EDITABLE (widget), -1);
add_margin (widget);
return new_widget_info ("password-entry", widget, SMALL);
}
static WidgetInfo * static WidgetInfo *
create_search_entry (void) create_search_entry (void)
{ {
...@@ -1533,6 +1550,7 @@ get_all_widgets (void) ...@@ -1533,6 +1550,7 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_video ()); retval = g_list_prepend (retval, create_video ());
retval = g_list_prepend (retval, create_media_controls ()); retval = g_list_prepend (retval, create_media_controls ());
retval = g_list_prepend (retval, create_picture ()); retval = g_list_prepend (retval, create_picture ());
retval = g_list_prepend (retval, create_password_entry ());
return retval; 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