Commit 873f4228 authored by Matthias Clasen's avatar Matthias Clasen
Browse files

Add recent chooser to the widget gallery

parent bbec8800
2006-03-30 Matthias Clasen <mclasen@redhat.com>
* docs/tools/widgets.c (get_all_widgets): Add
GtkRecentChooserDialog.
* gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
icon window when constructing the fallback_icon. This
fixes a crash when dragging icons between screens in
......
2006-03-30 Matthias Clasen <mclasen@redhat.com>
* docs/tools/widgets.c (get_all_widgets): Add
GtkRecentChooserDialog.
* gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
icon window when constructing the fallback_icon. This
fixes a crash when dragging icons between screens in
......
2006-03-30 Matthias Clasen <mclasen@redhat.com>
* gtk/Makefile.am (HTML_IMAGES): add
recentchooserdialog.png
* gtk/visual_index.xml: add GtkRecentChooserDialog
* gtk/images/recentchooserdialog.png: New image
* gtk/images/filechooser.png: Updated
2006-03-23 Matthias Clasen <mclasen@redhat.com>
* gtk/tmpl/gtkrc.sgml: Document <classname> in paths.
......
......@@ -276,6 +276,7 @@ HTML_IMAGES = \
$(srcdir)/images/panes.png \
$(srcdir)/images/progressbar.png \
$(srcdir)/images/radio-group.png \
$(srcdir)/images/recentchooserdialog.png \
$(srcdir)/images/scales.png \
$(srcdir)/images/scrolledwindow.png \
$(srcdir)/images/separator.png \
......
......@@ -56,6 +56,9 @@
<link linkend="GtkRadioButton">
<inlinegraphic fileref="radio-group.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkRecentChooserDialog">
<inlinegraphic fileref="recentchooserdialog.png" format="PNG"></inlinegraphic>
</link>
<link linkend="GtkScale">
<inlinegraphic fileref="scales.png" format="PNG"></inlinegraphic>
</link>
......
......@@ -310,6 +310,25 @@ create_combo_box (void)
return new_widget_info ("combo-box", align, SMALL);
}
static WidgetInfo *
create_recent_chooser_dialog (void)
{
WidgetInfo *info;
GtkWidget *widget;
widget = gtk_recent_chooser_dialog_new ("Recent Chooser Dialog",
NULL,
GTK_STOCK_CANCEL, GTK_RESPONSE_CANCEL,
GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
NULL);
gtk_window_set_default_size (GTK_WINDOW (widget), 505, 305);
info = new_widget_info ("recentchooserdialog", widget, ASIS);
info->include_decorations = TRUE;
return info;
}
static WidgetInfo *
create_text_view (void)
{
......@@ -626,6 +645,7 @@ create_fontsel (void)
return info;
}
static WidgetInfo *
create_filesel (void)
{
......@@ -919,6 +939,7 @@ get_all_widgets (void)
retval = g_list_prepend (retval, create_filesel ());
retval = g_list_prepend (retval, create_fontsel ());
retval = g_list_prepend (retval, create_assistant ());
retval = g_list_prepend (retval, create_recent_chooser_dialog ());
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