Top | ![]() |
![]() |
![]() |
![]() |
const char * | cinnamon_app_get_id () |
GMenuTreeEntry * | cinnamon_app_get_tree_entry () |
GDesktopAppInfo * | cinnamon_app_get_app_info () |
ClutterActor * | cinnamon_app_create_icon_texture () |
ClutterActor * | cinnamon_app_get_faded_icon () |
const char * | cinnamon_app_get_name () |
const char * | cinnamon_app_get_description () |
const char * | cinnamon_app_get_keywords () |
gboolean | cinnamon_app_is_window_backed () |
void | cinnamon_app_activate_window () |
void | cinnamon_app_activate () |
void | cinnamon_app_activate_full () |
void | cinnamon_app_open_new_window () |
CinnamonAppState | cinnamon_app_get_state () |
gboolean | cinnamon_app_request_quit () |
guint | cinnamon_app_get_n_windows () |
GSList * | cinnamon_app_get_windows () |
GSList * | cinnamon_app_get_pids () |
gboolean | cinnamon_app_is_on_workspace () |
gboolean | cinnamon_app_launch () |
int | cinnamon_app_compare_by_name () |
int | cinnamon_app_compare () |
This object wraps a GMenuTreeEntry, providing methods and signals primarily useful for running applications.
ClutterActor * cinnamon_app_create_icon_texture (CinnamonApp *app
,int size
);
Look up the icon for this application, and create a ClutterTexture for it at the given size.
ClutterActor * cinnamon_app_get_faded_icon (CinnamonApp *app
,int size
);
Return an actor with a horizontally faded look.
gboolean
cinnamon_app_is_window_backed (CinnamonApp *app
);
A window backed application is one which represents just an open window, i.e. there's no .desktop file association, so we don't know how to launch it again.
void cinnamon_app_activate_window (CinnamonApp *app
,MetaWindow *window
,guint32 timestamp
);
Bring all windows for the given app to the foreground,
but ensure that window
is on top. If window
is NULL
,
the window with the most recent user time for the app
will be used.
This function has no effect if app
is not currently running.
void
cinnamon_app_activate (CinnamonApp *app
);
Like cinnamon_app_activate_full()
, but using the default workspace and
event timestamp.
void cinnamon_app_activate_full (CinnamonApp *app
,int workspace
,guint32 timestamp
);
Perform an appropriate default action for operating on this application, dependent on its current state. For example, if the application is not currently running, launch it. If it is running, activate the most recently used NORMAL window (or if that window has a transient, the most recently used transient for that window).
void cinnamon_app_open_new_window (CinnamonApp *app
,int workspace
);
Request that the application create a new window.
gboolean
cinnamon_app_request_quit (CinnamonApp *app
);
Initiate an asynchronous request to quit this application. The application may interact with the user, and the user might cancel the quit request from the application UI.
This operation may not be supported for all applications.
GSList *
cinnamon_app_get_windows (CinnamonApp *app
);
Get the toplevel, interesting windows which are associated with this application. The returned list will be sorted first by whether they're on the active workspace, then by whether they're visible, and finally by the time the user last interacted with them.
gboolean cinnamon_app_is_on_workspace (CinnamonApp *app
,MetaWorkspace *workspace
);
gboolean cinnamon_app_launch (CinnamonApp *app
,guint timestamp
,GList *uris
,int workspace
,char **startup_id
,GError **error
);
int cinnamon_app_compare_by_name (CinnamonApp *app
,CinnamonApp *other
);
Order two applications by name.
int cinnamon_app_compare (CinnamonApp *app
,CinnamonApp *other
);
Compare one CinnamonApp instance to another, in the following way:
Running applications sort before not-running applications.
If one of them has visible windows and the other does not, the one with visible windows is first.
Finally, the application which the user interacted with most recently compares earlier.
“state”
property“state” CinnamonAppState
The high-level state of the application, effectively whether it's running or not, or transitioning between those states.
Flags: Read
Default value: CINNAMON_APP_STATE_STOPPED
“windows-changed”
signalvoid user_function (CinnamonApp *cinnamonapp, gpointer user_data)
Flags: Run Last