Ardour  9.0-pre0-384-ga76afae0e9
gtkrecentmanager.h File Reference
#include <gdk-pixbuf/gdk-pixbuf.h>
#include <gdk/gdk.h>
#include <time.h>
Include dependency graph for gtkrecentmanager.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  _GtkRecentData
 
struct  _GtkRecentManager
 
struct  _GtkRecentManagerClass
 

Macros

#define GTK_TYPE_RECENT_INFO   (gtk_recent_info_get_type ())
 
#define GTK_TYPE_RECENT_MANAGER   (gtk_recent_manager_get_type ())
 
#define GTK_RECENT_MANAGER(obj)   (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManager))
 
#define GTK_IS_RECENT_MANAGER(obj)   (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_MANAGER))
 
#define GTK_RECENT_MANAGER_CLASS(klass)   (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass))
 
#define GTK_IS_RECENT_MANAGER_CLASS(klass)   (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_MANAGER))
 
#define GTK_RECENT_MANAGER_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass))
 
#define GTK_RECENT_MANAGER_ERROR   (gtk_recent_manager_error_quark ())
 

Typedefs

typedef struct _GtkRecentInfo GtkRecentInfo
 
typedef struct _GtkRecentData GtkRecentData
 
typedef struct _GtkRecentManager GtkRecentManager
 
typedef struct _GtkRecentManagerClass GtkRecentManagerClass
 
typedef struct _GtkRecentManagerPrivate GtkRecentManagerPrivate
 

Enumerations

enum  GtkRecentManagerError {
  GTK_RECENT_MANAGER_ERROR_NOT_FOUND , GTK_RECENT_MANAGER_ERROR_INVALID_URI , GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING , GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED ,
  GTK_RECENT_MANAGER_ERROR_READ , GTK_RECENT_MANAGER_ERROR_WRITE , GTK_RECENT_MANAGER_ERROR_UNKNOWN
}
 

Functions

GQuark gtk_recent_manager_error_quark (void)
 
GType gtk_recent_manager_get_type (void) G_GNUC_CONST
 
GtkRecentManagergtk_recent_manager_new (void)
 
GtkRecentManagergtk_recent_manager_get_default (void)
 
GtkRecentManagergtk_recent_manager_get_for_screen (GdkScreen *screen)
 
void gtk_recent_manager_set_screen (GtkRecentManager *manager, GdkScreen *screen)
 
gboolean gtk_recent_manager_add_item (GtkRecentManager *manager, const gchar *uri)
 
gboolean gtk_recent_manager_add_full (GtkRecentManager *manager, const gchar *uri, const GtkRecentData *recent_data)
 
gboolean gtk_recent_manager_remove_item (GtkRecentManager *manager, const gchar *uri, GError **error)
 
GtkRecentInfogtk_recent_manager_lookup_item (GtkRecentManager *manager, const gchar *uri, GError **error)
 
gboolean gtk_recent_manager_has_item (GtkRecentManager *manager, const gchar *uri)
 
gboolean gtk_recent_manager_move_item (GtkRecentManager *manager, const gchar *uri, const gchar *new_uri, GError **error)
 
void gtk_recent_manager_set_limit (GtkRecentManager *manager, gint limit)
 
gint gtk_recent_manager_get_limit (GtkRecentManager *manager)
 
GList * gtk_recent_manager_get_items (GtkRecentManager *manager)
 
gint gtk_recent_manager_purge_items (GtkRecentManager *manager, GError **error)
 
GType gtk_recent_info_get_type (void) G_GNUC_CONST
 
GtkRecentInfogtk_recent_info_ref (GtkRecentInfo *info)
 
void gtk_recent_info_unref (GtkRecentInfo *info)
 
const gchar * gtk_recent_info_get_uri (GtkRecentInfo *info)
 
const gchar * gtk_recent_info_get_display_name (GtkRecentInfo *info)
 
const gchar * gtk_recent_info_get_description (GtkRecentInfo *info)
 
const gchar * gtk_recent_info_get_mime_type (GtkRecentInfo *info)
 
time_t gtk_recent_info_get_added (GtkRecentInfo *info)
 
time_t gtk_recent_info_get_modified (GtkRecentInfo *info)
 
time_t gtk_recent_info_get_visited (GtkRecentInfo *info)
 
gboolean gtk_recent_info_get_private_hint (GtkRecentInfo *info)
 
gboolean gtk_recent_info_get_application_info (GtkRecentInfo *info, const gchar *app_name, const gchar **app_exec, guint *count, time_t *time_)
 
gchar ** gtk_recent_info_get_applications (GtkRecentInfo *info, gsize *length) G_GNUC_MALLOC
 
gchar * gtk_recent_info_last_application (GtkRecentInfo *info) G_GNUC_MALLOC
 
gboolean gtk_recent_info_has_application (GtkRecentInfo *info, const gchar *app_name)
 
gchar ** gtk_recent_info_get_groups (GtkRecentInfo *info, gsize *length) G_GNUC_MALLOC
 
gboolean gtk_recent_info_has_group (GtkRecentInfo *info, const gchar *group_name)
 
GdkPixbuf * gtk_recent_info_get_icon (GtkRecentInfo *info, gint size)
 
gchar * gtk_recent_info_get_short_name (GtkRecentInfo *info) G_GNUC_MALLOC
 
gchar * gtk_recent_info_get_uri_display (GtkRecentInfo *info) G_GNUC_MALLOC
 
gint gtk_recent_info_get_age (GtkRecentInfo *info)
 
gboolean gtk_recent_info_is_local (GtkRecentInfo *info)
 
gboolean gtk_recent_info_exists (GtkRecentInfo *info)
 
gboolean gtk_recent_info_match (GtkRecentInfo *info_a, GtkRecentInfo *info_b)
 
void _gtk_recent_manager_sync (void)
 

Macro Definition Documentation

◆ GTK_IS_RECENT_MANAGER

#define GTK_IS_RECENT_MANAGER (   obj)    (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_RECENT_MANAGER))

Definition at line 38 of file gtkrecentmanager.h.

◆ GTK_IS_RECENT_MANAGER_CLASS

#define GTK_IS_RECENT_MANAGER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_TYPE ((klass), GTK_TYPE_RECENT_MANAGER))

Definition at line 40 of file gtkrecentmanager.h.

◆ GTK_RECENT_MANAGER

#define GTK_RECENT_MANAGER (   obj)    (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManager))

Definition at line 37 of file gtkrecentmanager.h.

◆ GTK_RECENT_MANAGER_CLASS

#define GTK_RECENT_MANAGER_CLASS (   klass)    (G_TYPE_CHECK_CLASS_CAST ((klass), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass))

Definition at line 39 of file gtkrecentmanager.h.

◆ GTK_RECENT_MANAGER_ERROR

#define GTK_RECENT_MANAGER_ERROR   (gtk_recent_manager_error_quark ())

Definition at line 134 of file gtkrecentmanager.h.

◆ GTK_RECENT_MANAGER_GET_CLASS

#define GTK_RECENT_MANAGER_GET_CLASS (   obj)    (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_RECENT_MANAGER, GtkRecentManagerClass))

Definition at line 41 of file gtkrecentmanager.h.

◆ GTK_TYPE_RECENT_INFO

#define GTK_TYPE_RECENT_INFO   (gtk_recent_info_get_type ())

Definition at line 34 of file gtkrecentmanager.h.

◆ GTK_TYPE_RECENT_MANAGER

#define GTK_TYPE_RECENT_MANAGER   (gtk_recent_manager_get_type ())

Definition at line 36 of file gtkrecentmanager.h.

Typedef Documentation

◆ GtkRecentData

typedef struct _GtkRecentData GtkRecentData

Definition at line 32 of file gtkrecentmanager.h.

◆ GtkRecentInfo

typedef struct _GtkRecentInfo GtkRecentInfo

Definition at line 32 of file gtkrecentmanager.h.

◆ GtkRecentManager

Definition at line 32 of file gtkrecentmanager.h.

◆ GtkRecentManagerClass

Definition at line 32 of file gtkrecentmanager.h.

◆ GtkRecentManagerPrivate

typedef struct _GtkRecentManagerPrivate GtkRecentManagerPrivate

Definition at line 32 of file gtkrecentmanager.h.

Enumeration Type Documentation

◆ GtkRecentManagerError

GtkRecentManagerError:

Parameters
GTK_RECENT_MANAGER_ERROR_NOT_FOUNDthe URI specified does not exists in the recently used resources list.
GTK_RECENT_MANAGER_ERROR_INVALID_URIthe URI specified is not valid.
GTK_RECENT_MANAGER_ERROR_INVALID_ENCODINGthe supplied string is not UTF-8 encoded.
GTK_RECENT_MANAGER_ERROR_NOT_REGISTEREDno application has registered the specified item.
GTK_RECENT_MANAGER_ERROR_READfailure while reading the recently used resources file.
GTK_RECENT_MANAGER_ERROR_WRITEfailure while writing the recently used resources file.
GTK_RECENT_MANAGER_ERROR_UNKNOWNunspecified error.

Error codes for GtkRecentManager operations

Enumerator
GTK_RECENT_MANAGER_ERROR_NOT_FOUND 
GTK_RECENT_MANAGER_ERROR_INVALID_URI 
GTK_RECENT_MANAGER_ERROR_INVALID_ENCODING 
GTK_RECENT_MANAGER_ERROR_NOT_REGISTERED 
GTK_RECENT_MANAGER_ERROR_READ 
GTK_RECENT_MANAGER_ERROR_WRITE 
GTK_RECENT_MANAGER_ERROR_UNKNOWN 

Definition at line 123 of file gtkrecentmanager.h.

Function Documentation

◆ _gtk_recent_manager_sync()

void _gtk_recent_manager_sync ( void  )

◆ gtk_recent_info_exists()

gboolean gtk_recent_info_exists ( GtkRecentInfo info)

◆ gtk_recent_info_get_added()

time_t gtk_recent_info_get_added ( GtkRecentInfo info)

◆ gtk_recent_info_get_age()

gint gtk_recent_info_get_age ( GtkRecentInfo info)

◆ gtk_recent_info_get_application_info()

gboolean gtk_recent_info_get_application_info ( GtkRecentInfo info,
const gchar *  app_name,
const gchar **  app_exec,
guint *  count,
time_t *  time_ 
)

◆ gtk_recent_info_get_applications()

gchar** gtk_recent_info_get_applications ( GtkRecentInfo info,
gsize *  length 
)

◆ gtk_recent_info_get_description()

const gchar* gtk_recent_info_get_description ( GtkRecentInfo info)

◆ gtk_recent_info_get_display_name()

const gchar* gtk_recent_info_get_display_name ( GtkRecentInfo info)

◆ gtk_recent_info_get_groups()

gchar** gtk_recent_info_get_groups ( GtkRecentInfo info,
gsize *  length 
)

◆ gtk_recent_info_get_icon()

GdkPixbuf* gtk_recent_info_get_icon ( GtkRecentInfo info,
gint  size 
)

◆ gtk_recent_info_get_mime_type()

const gchar* gtk_recent_info_get_mime_type ( GtkRecentInfo info)

◆ gtk_recent_info_get_modified()

time_t gtk_recent_info_get_modified ( GtkRecentInfo info)

◆ gtk_recent_info_get_private_hint()

gboolean gtk_recent_info_get_private_hint ( GtkRecentInfo info)

◆ gtk_recent_info_get_short_name()

gchar* gtk_recent_info_get_short_name ( GtkRecentInfo info)

◆ gtk_recent_info_get_type()

GType gtk_recent_info_get_type ( void  )

◆ gtk_recent_info_get_uri()

const gchar* gtk_recent_info_get_uri ( GtkRecentInfo info)

◆ gtk_recent_info_get_uri_display()

gchar* gtk_recent_info_get_uri_display ( GtkRecentInfo info)

◆ gtk_recent_info_get_visited()

time_t gtk_recent_info_get_visited ( GtkRecentInfo info)

◆ gtk_recent_info_has_application()

gboolean gtk_recent_info_has_application ( GtkRecentInfo info,
const gchar *  app_name 
)

◆ gtk_recent_info_has_group()

gboolean gtk_recent_info_has_group ( GtkRecentInfo info,
const gchar *  group_name 
)

◆ gtk_recent_info_is_local()

gboolean gtk_recent_info_is_local ( GtkRecentInfo info)

◆ gtk_recent_info_last_application()

gchar* gtk_recent_info_last_application ( GtkRecentInfo info)

◆ gtk_recent_info_match()

gboolean gtk_recent_info_match ( GtkRecentInfo info_a,
GtkRecentInfo info_b 
)

◆ gtk_recent_info_ref()

GtkRecentInfo* gtk_recent_info_ref ( GtkRecentInfo info)

◆ gtk_recent_info_unref()

void gtk_recent_info_unref ( GtkRecentInfo info)

◆ gtk_recent_manager_add_full()

gboolean gtk_recent_manager_add_full ( GtkRecentManager manager,
const gchar *  uri,
const GtkRecentData recent_data 
)

◆ gtk_recent_manager_add_item()

gboolean gtk_recent_manager_add_item ( GtkRecentManager manager,
const gchar *  uri 
)

◆ gtk_recent_manager_error_quark()

GQuark gtk_recent_manager_error_quark ( void  )

◆ gtk_recent_manager_get_default()

GtkRecentManager* gtk_recent_manager_get_default ( void  )

◆ gtk_recent_manager_get_for_screen()

GtkRecentManager* gtk_recent_manager_get_for_screen ( GdkScreen screen)

◆ gtk_recent_manager_get_items()

GList* gtk_recent_manager_get_items ( GtkRecentManager manager)

◆ gtk_recent_manager_get_limit()

gint gtk_recent_manager_get_limit ( GtkRecentManager manager)

◆ gtk_recent_manager_get_type()

GType gtk_recent_manager_get_type ( void  )

◆ gtk_recent_manager_has_item()

gboolean gtk_recent_manager_has_item ( GtkRecentManager manager,
const gchar *  uri 
)

◆ gtk_recent_manager_lookup_item()

GtkRecentInfo* gtk_recent_manager_lookup_item ( GtkRecentManager manager,
const gchar *  uri,
GError **  error 
)

◆ gtk_recent_manager_move_item()

gboolean gtk_recent_manager_move_item ( GtkRecentManager manager,
const gchar *  uri,
const gchar *  new_uri,
GError **  error 
)

◆ gtk_recent_manager_new()

GtkRecentManager* gtk_recent_manager_new ( void  )

◆ gtk_recent_manager_purge_items()

gint gtk_recent_manager_purge_items ( GtkRecentManager manager,
GError **  error 
)

◆ gtk_recent_manager_remove_item()

gboolean gtk_recent_manager_remove_item ( GtkRecentManager manager,
const gchar *  uri,
GError **  error 
)

◆ gtk_recent_manager_set_limit()

void gtk_recent_manager_set_limit ( GtkRecentManager manager,
gint  limit 
)

◆ gtk_recent_manager_set_screen()

void gtk_recent_manager_set_screen ( GtkRecentManager manager,
GdkScreen screen 
)