Method

Gtk.RecentInfo.get_application_info

Declaration [src]

gboolean
gtk_recent_info_get_application_info (
  GtkRecentInfo* info,
  const char* app_name,
  const char** app_exec,
  guint* count,
  GDateTime** stamp
)

Description [src]

Gets the data regarding the application that has registered the resource pointed by info.

If the command line contains any escape characters defined inside the storage specification, they will be expanded.

Parameters

app_name const char*
 

the name of the application that has registered this item

 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
app_exec const char**
 

return location for the string containing the command line

 Direction: out
 Ownership is not transferred to the callee
 The string is a NUL terminated UTF-8 string
count guint*
 

return location for the number of times this item was registered

 Direction: out
 Ownership of the data is transferred to the callee
stamp GDateTime**
 

return location for the time this item was last registered for this application

 Direction: out
 Ownership is not transferred to the callee

Return value

Returns: gboolean

TRUE if an application with app_name has registered this resource inside the recently used list, or FALSE otherwise. The app_exec string is owned by the GtkRecentInfo and should not be modified or freed