mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-26 13:41:07 +00:00
Add color and font chooser to the widget gallery
This commit is contained in:
parent
fae1be06cd
commit
f9be52cb2f
@ -287,6 +287,7 @@ HTML_IMAGES = \
|
|||||||
$(srcdir)/images/check-button.png \
|
$(srcdir)/images/check-button.png \
|
||||||
$(srcdir)/images/color-button.png \
|
$(srcdir)/images/color-button.png \
|
||||||
$(srcdir)/images/colorsel.png \
|
$(srcdir)/images/colorsel.png \
|
||||||
|
$(srcdir)/images/colorchooser.png \
|
||||||
$(srcdir)/images/combo-box.png \
|
$(srcdir)/images/combo-box.png \
|
||||||
$(srcdir)/images/combo-box-entry.png \
|
$(srcdir)/images/combo-box-entry.png \
|
||||||
$(srcdir)/images/entry.png \
|
$(srcdir)/images/entry.png \
|
||||||
@ -296,6 +297,7 @@ HTML_IMAGES = \
|
|||||||
$(srcdir)/images/filechooser.png \
|
$(srcdir)/images/filechooser.png \
|
||||||
$(srcdir)/images/font-button.png \
|
$(srcdir)/images/font-button.png \
|
||||||
$(srcdir)/images/fontsel.png \
|
$(srcdir)/images/fontsel.png \
|
||||||
|
$(srcdir)/images/fontchooser.png \
|
||||||
$(srcdir)/images/frame.png \
|
$(srcdir)/images/frame.png \
|
||||||
$(srcdir)/images/icon-view.png \
|
$(srcdir)/images/icon-view.png \
|
||||||
$(srcdir)/images/image.png \
|
$(srcdir)/images/image.png \
|
||||||
|
BIN
docs/reference/gtk/images/colorchooser.png
Normal file
BIN
docs/reference/gtk/images/colorchooser.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 16 KiB |
BIN
docs/reference/gtk/images/fontchooser.png
Normal file
BIN
docs/reference/gtk/images/fontchooser.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 62 KiB |
@ -135,4 +135,10 @@
|
|||||||
<link linkend="GtkSwitch">
|
<link linkend="GtkSwitch">
|
||||||
<inlinegraphic fileref="switch.png" format="PNG"></inlinegraphic>
|
<inlinegraphic fileref="switch.png" format="PNG"></inlinegraphic>
|
||||||
</link>
|
</link>
|
||||||
|
<link linkend="GtkColorChooserDialog">
|
||||||
|
<inlinegraphic fileref="colorchooser.png" format="PNG"></inlinegraphic>
|
||||||
|
</link>
|
||||||
|
<link linkend="GtkFontChooserDialog">
|
||||||
|
<inlinegraphic fileref="fontchooser.png" format="PNG"></inlinegraphic>
|
||||||
|
</link>
|
||||||
</para>
|
</para>
|
||||||
|
@ -1154,6 +1154,33 @@ create_appchooserdialog (void)
|
|||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static WidgetInfo *
|
||||||
|
create_fontchooserdialog (void)
|
||||||
|
{
|
||||||
|
WidgetInfo *info;
|
||||||
|
GtkWidget *widget;
|
||||||
|
|
||||||
|
widget = gtk_font_chooser_dialog_new ("Font Chooser Dialog", NULL);
|
||||||
|
gtk_window_set_default_size (GTK_WINDOW (widget), 200, 300);
|
||||||
|
info = new_widget_info ("fontchooser", widget, ASIS);
|
||||||
|
info->include_decorations = TRUE;
|
||||||
|
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
|
static WidgetInfo *
|
||||||
|
create_colorchooserdialog (void)
|
||||||
|
{
|
||||||
|
WidgetInfo *info;
|
||||||
|
GtkWidget *widget;
|
||||||
|
|
||||||
|
widget = gtk_color_chooser_dialog_new ("Color Chooser Dialog", NULL);
|
||||||
|
info = new_widget_info ("colorchooser", widget, ASIS);
|
||||||
|
info->include_decorations = TRUE;
|
||||||
|
|
||||||
|
return info;
|
||||||
|
}
|
||||||
|
|
||||||
GList *
|
GList *
|
||||||
get_all_widgets (void)
|
get_all_widgets (void)
|
||||||
{
|
{
|
||||||
@ -1204,6 +1231,8 @@ get_all_widgets (void)
|
|||||||
retval = g_list_prepend (retval, create_appchooserbutton ());
|
retval = g_list_prepend (retval, create_appchooserbutton ());
|
||||||
retval = g_list_prepend (retval, create_appchooserdialog ());
|
retval = g_list_prepend (retval, create_appchooserdialog ());
|
||||||
retval = g_list_prepend (retval, create_lockbutton ());
|
retval = g_list_prepend (retval, create_lockbutton ());
|
||||||
|
retval = g_list_prepend (retval, create_fontchooserdialog ());
|
||||||
|
retval = g_list_prepend (retval, create_colorchooserdialog ());
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user