Add recent chooser to the widget gallery
This commit is contained in:
@ -1,5 +1,8 @@
|
|||||||
2006-03-30 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
|
||||||
icon window when constructing the fallback_icon. This
|
icon window when constructing the fallback_icon. This
|
||||||
fixes a crash when dragging icons between screens in
|
fixes a crash when dragging icons between screens in
|
||||||
|
@ -1,5 +1,8 @@
|
|||||||
2006-03-30 Matthias Clasen <mclasen@redhat.com>
|
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
|
* gtk/gtkdnd.c (gtk_drag_get_icon): Make sure to get an
|
||||||
icon window when constructing the fallback_icon. This
|
icon window when constructing the fallback_icon. This
|
||||||
fixes a crash when dragging icons between screens in
|
fixes a crash when dragging icons between screens in
|
||||||
|
@ -1,3 +1,12 @@
|
|||||||
|
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>
|
2006-03-23 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
* gtk/tmpl/gtkrc.sgml: Document <classname> in paths.
|
* gtk/tmpl/gtkrc.sgml: Document <classname> in paths.
|
||||||
|
@ -276,6 +276,7 @@ HTML_IMAGES = \
|
|||||||
$(srcdir)/images/panes.png \
|
$(srcdir)/images/panes.png \
|
||||||
$(srcdir)/images/progressbar.png \
|
$(srcdir)/images/progressbar.png \
|
||||||
$(srcdir)/images/radio-group.png \
|
$(srcdir)/images/radio-group.png \
|
||||||
|
$(srcdir)/images/recentchooserdialog.png \
|
||||||
$(srcdir)/images/scales.png \
|
$(srcdir)/images/scales.png \
|
||||||
$(srcdir)/images/scrolledwindow.png \
|
$(srcdir)/images/scrolledwindow.png \
|
||||||
$(srcdir)/images/separator.png \
|
$(srcdir)/images/separator.png \
|
||||||
|
Binary file not shown.
Before Width: | Height: | Size: 48 KiB After Width: | Height: | Size: 50 KiB |
BIN
docs/reference/gtk/images/recentchooserdialog.png
Normal file
BIN
docs/reference/gtk/images/recentchooserdialog.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 20 KiB |
@ -56,6 +56,9 @@
|
|||||||
<link linkend="GtkRadioButton">
|
<link linkend="GtkRadioButton">
|
||||||
<inlinegraphic fileref="radio-group.png" format="PNG"></inlinegraphic>
|
<inlinegraphic fileref="radio-group.png" format="PNG"></inlinegraphic>
|
||||||
</link>
|
</link>
|
||||||
|
<link linkend="GtkRecentChooserDialog">
|
||||||
|
<inlinegraphic fileref="recentchooserdialog.png" format="PNG"></inlinegraphic>
|
||||||
|
</link>
|
||||||
<link linkend="GtkScale">
|
<link linkend="GtkScale">
|
||||||
<inlinegraphic fileref="scales.png" format="PNG"></inlinegraphic>
|
<inlinegraphic fileref="scales.png" format="PNG"></inlinegraphic>
|
||||||
</link>
|
</link>
|
||||||
|
@ -310,6 +310,25 @@ create_combo_box (void)
|
|||||||
return new_widget_info ("combo-box", align, SMALL);
|
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 *
|
static WidgetInfo *
|
||||||
create_text_view (void)
|
create_text_view (void)
|
||||||
{
|
{
|
||||||
@ -626,6 +645,7 @@ create_fontsel (void)
|
|||||||
|
|
||||||
return info;
|
return info;
|
||||||
}
|
}
|
||||||
|
|
||||||
static WidgetInfo *
|
static WidgetInfo *
|
||||||
create_filesel (void)
|
create_filesel (void)
|
||||||
{
|
{
|
||||||
@ -919,6 +939,7 @@ get_all_widgets (void)
|
|||||||
retval = g_list_prepend (retval, create_filesel ());
|
retval = g_list_prepend (retval, create_filesel ());
|
||||||
retval = g_list_prepend (retval, create_fontsel ());
|
retval = g_list_prepend (retval, create_fontsel ());
|
||||||
retval = g_list_prepend (retval, create_assistant ());
|
retval = g_list_prepend (retval, create_assistant ());
|
||||||
|
retval = g_list_prepend (retval, create_recent_chooser_dialog ());
|
||||||
|
|
||||||
return retval;
|
return retval;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user