Synopsis#include <gtk/gtk.h> GtkRecentAction; GtkAction* gtk_recent_action_new (const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id); GtkAction* gtk_recent_action_new_for_manager (const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id, GtkRecentManager *manager); gboolean gtk_recent_action_get_show_numbers (GtkRecentAction *action); void gtk_recent_action_set_show_numbers (GtkRecentAction *action, gboolean show_numbers); DescriptionA 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. Detailsgtk_recent_action_new ()GtkAction* gtk_recent_action_new (const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id);
Creates a new GtkRecentAction object. To add the action to
a GtkActionGroup and set the accelerator for the action,
call
Since 2.12 gtk_recent_action_new_for_manager ()GtkAction* gtk_recent_action_new_for_manager (const gchar *name, const gchar *label, const gchar *tooltip, const gchar *stock_id, GtkRecentManager *manager);
Creates a new GtkRecentAction object. To add the action to
a GtkActionGroup and set the accelerator for the action,
call
Since 2.12 gtk_recent_action_get_show_numbers ()gboolean gtk_recent_action_get_show_numbers (GtkRecentAction *action);
Returns the value set by
Since 2.12 gtk_recent_action_set_show_numbers ()void gtk_recent_action_set_show_numbers (GtkRecentAction *action, gboolean show_numbers);
Sets whether a number should be added to the items shown by the
widgets representing
Since 2.12 |