Top |
Functions
IdeApplicationMode | ide_application_get_mode () |
IdeApplication * | ide_application_new () |
GDateTime * | ide_application_get_started_at () |
IdeRecentProjects * | ide_application_get_recent_projects () |
void | ide_application_show_projects_window () |
const gchar * | ide_application_get_keybindings_mode () |
void | ide_application_get_worker_async () |
GDBusProxy * | ide_application_get_worker_finish () |
GMenu * | ide_application_get_menu_by_id () |
Types and Values
#define | IDE_TYPE_APPLICATION |
#define | IDE_APPLICATION_DEFAULT |
enum | IdeApplicationMode |
IdeApplication |
Functions
ide_application_get_started_at ()
GDateTime *
ide_application_get_started_at (IdeApplication *self
);
Gets the startup time of the application.
ide_application_get_recent_projects ()
IdeRecentProjects *
ide_application_get_recent_projects (IdeApplication *self
);
This method will retreive an IdeRecentProjects for the application that
represents recent and discover projects on the system. The first time
the IdeRecentProjects is loaded, discovery of projects will occur. There
is no need to call ide_recent_projects_discover_async()
.
If you would like to display a spinner while discovery is in process, simply connect to the “busy”: property notification.
ide_application_show_projects_window ()
void
ide_application_show_projects_window (IdeApplication *self
);
ide_application_get_keybindings_mode ()
const gchar *
ide_application_get_keybindings_mode (IdeApplication *self
);
ide_application_get_worker_async ()
void ide_application_get_worker_async (IdeApplication *self
,const gchar *plugin_name
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
Asynchronously requests a GDBusProxy to a service provided in a worker
process. The worker should be an IdeWorker implemented by the plugin named
plugin_name
. The IdeWorker is responsible for created both the service
registered on the bus and the proxy to it.
The IdeApplication is responsible for spawning a subprocess for the worker.
callback
should call ide_application_get_worker_finish()
with the result
provided to retrieve the result.
ide_application_get_worker_finish ()
GDBusProxy * ide_application_get_worker_finish (IdeApplication *self
,GAsyncResult *result
,GError **error
);
Completes an asynchronous request to get a proxy to a worker process.
ide_application_get_menu_by_id ()
GMenu * ide_application_get_menu_by_id (IdeApplication *self
,const gchar *id
);
Similar to gtk_application_get_menu_by_id()
but takes into account merging
the menus provided by, and extended by, plugins.
Types and Values
IDE_APPLICATION_DEFAULT
#define IDE_APPLICATION_DEFAULT (IDE_APPLICATION (g_application_get_default()))
IdeApplication
typedef struct { GtkApplication parent_instance; IdeApplicationMode mode; PeasExtensionSet *addins; gchar *dbus_address; PeasPluginInfo *tool; gchar **tool_arguments; PeasPluginInfo *worker; IdeWorkerManager *worker_manager; IdeKeybindings *keybindings; IdeRecentProjects *recent_projects; GDateTime *started_at; IdeThemeManager *theme_manager; EggMenuManager *menu_manager; GHashTable *merge_ids; GHashTable *plugin_css; GList *test_funcs; GHashTable *plugin_settings; guint disable_theme_tracking : 1; } IdeApplication;