![]() |
![]() |
![]() |
liblauncher Reference Manual | ![]() |
---|---|---|---|---|
Top | Description |
LauncherAppmanLauncherAppman — Singleton object designed to cache and hold LauncherApplication objects |
#include <launcher-appman.h> LauncherAppman; LauncherAppman * launcher_appman_get_default (void
); LauncherApplication * launcher_appman_get_application_for_desktop_file (LauncherAppman *appman
,const gchar *desktop
); LauncherApplication * launcher_appman_get_application_for_wnck_window (LauncherAppman *appman
,WnckWindow *wnck_window
); GSequence * launcher_appman_get_applications (LauncherAppman *appman
); gint launcher_appman_add_file_watch (LauncherAppman *appman
,const gchar *path
); void launcher_appman_rm_file_watch (LauncherAppman *appman
,gint wd
); void launcher_appman_set_enable_window_checking (LauncherAppman *appman
,gboolean enable_window_matching
); gboolean launcher_appman_get_enable_window_checking (LauncherAppman *appman
);
LauncherAppman is a singleton that will serve as a single point of entry for creating LauncherApplication objects, all LauncherApplication objects should be requested from this cache by providing a desktop file to the application you wish to create.
typedef struct { GObject parent_instance; /* private */ LauncherAppmanPrivate *priv; } LauncherAppman;
LauncherAppman * launcher_appman_get_default (void
);
Returns the default LauncherAppman singleton
Returns : |
A LauncherApppman Object |
LauncherApplication * launcher_appman_get_application_for_desktop_file (LauncherAppman *appman
,const gchar *desktop
);
Provides a method for accessing LauncherApplication objects by providing a desktop file
|
A LauncherAppman object |
|
A String path to the desktop file |
Returns : |
A LauncherApplication object or NULL |
LauncherApplication * launcher_appman_get_application_for_wnck_window (LauncherAppman *appman
,WnckWindow *wnck_window
);
|
|
|
|
Returns : |
GSequence * launcher_appman_get_applications (LauncherAppman *appman
);
returns a GSequence object that contains all the applications in the current cache
|
a LauncherAppman object |
Returns : |
An unowned GSequence of LauncherApplication objects. transfer none. |
gint launcher_appman_add_file_watch (LauncherAppman *appman
,const gchar *path
);
Adds a watch on the specified file at file path, will watch for modifications to the file.
|
a LauncherAPpman object |
|
|
Returns : |
an integer watch descriptor or 0 if failed |
void launcher_appman_rm_file_watch (LauncherAppman *appman
,gint wd
);
removes the given wd
the watch
|
a LauncherAPpman object |
|
the integer watch descriptor |
void launcher_appman_set_enable_window_checking (LauncherAppman *appman
,gboolean enable_window_matching
);
|
|
|
gboolean launcher_appman_get_enable_window_checking
(LauncherAppman *appman
);
|
|
Returns : |