diff --git a/docs/reference/gtk/tmpl/.gitignore b/docs/reference/gtk/tmpl/.gitignore index d8fbb174c6..c30497604f 100644 --- a/docs/reference/gtk/tmpl/.gitignore +++ b/docs/reference/gtk/tmpl/.gitignore @@ -6,6 +6,7 @@ gtkmessagedialog.sgml gtkobject.sgml gtkorientable.sgml gtkpagesetupunixdialog.sgml +gtkrecentaction.sgml gtkseparator.sgml gtktesting.sgml gtktextiter.sgml diff --git a/docs/reference/gtk/tmpl/gtkrecentaction.sgml b/docs/reference/gtk/tmpl/gtkrecentaction.sgml deleted file mode 100644 index d47ea4c88e..0000000000 --- a/docs/reference/gtk/tmpl/gtkrecentaction.sgml +++ /dev/null @@ -1,84 +0,0 @@ - -GtkRecentAction - - -An action of which represents a list of recently used files - - - -A GtkRecentAction represents a list of recently used files, which -can be shown by widgets such as #GtkRecentChooserDialog or -#GtkRecentChooserMenu. - - -To construct a submenu showing recently used files, use a GtkRecentAction -as the action for a <menuitem>. To construct a menu toolbutton showing -the recently used files in the popup menu, use a GtkRecentAction as the -action for a <toolitem> element. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -@name: -@label: -@tooltip: -@stock_id: -@Returns: - - - - - - - -@name: -@label: -@tooltip: -@stock_id: -@manager: -@Returns: - - - - - - - -@action: -@Returns: - - - - - - - -@action: -@show_numbers: - - diff --git a/gtk/gtkrecentaction.c b/gtk/gtkrecentaction.c index 14acfb426a..458d23f019 100644 --- a/gtk/gtkrecentaction.c +++ b/gtk/gtkrecentaction.c @@ -32,6 +32,23 @@ #include "gtkprivate.h" #include "gtkalias.h" + +/** + * SECTION:gtkrecentaction + * @Short_description: An action of which represents a list of recently used files + * @Title: GtkRecentAction + * + * A #GtkRecentAction represents a list of recently used files, which + * can be shown by widgets such as #GtkRecentChooserDialog or + * #GtkRecentChooserMenu. + * + * To construct a submenu showing recently used files, use a #GtkRecentAction + * as the action for a <menuitem>. To construct a menu toolbutton showing + * the recently used files in the popup menu, use a #GtkRecentAction as the + * action for a <toolitem> element. + */ + + #define FALLBACK_ITEM_LIMIT 10 #define GTK_RECENT_ACTION_GET_PRIVATE(obj) \