| Top |
Functions
| GladeApp * | glade_app_new () |
| GType | glade_pointer_mode_get_type () |
| GladeApp * | glade_app_get () |
| void | glade_app_set_window () |
| GtkWidget * | glade_app_get_window () |
| GladeClipboard * | glade_app_get_clipboard () |
| void | glade_app_add_project () |
| void | glade_app_remove_project () |
| GList * | glade_app_get_projects () |
| GKeyFile * | glade_app_get_config () |
| gboolean | glade_app_is_project_loaded () |
| GladeProject * | glade_app_get_project_by_path () |
| gint | glade_app_config_save () |
| void | glade_app_set_accel_group () |
| const gchar * | glade_app_get_catalogs_dir () |
| const gchar * | glade_app_get_modules_dir () |
| const gchar * | glade_app_get_pixmaps_dir () |
| const gchar * | glade_app_get_locale_dir () |
Signals
| void | doc-search | Run Last |
| void | signal-editor-created | Run Last |
| void | widget-adaptor-registered | Run Last |
Description
This main control object is where we try to draw the line between what is the Glade core and what is the main application. The main application must derive from the GladeApp object and create an instance to initialize the Glade core.
Functions
glade_app_get_project_by_path ()
GladeProject *
glade_app_get_project_by_path (const gchar *project_path);
Finds an open project with path
glade_app_config_save ()
gint
glade_app_config_save (void);
Saves the GKeyFile to "g_get_user_config_dir()/GLADE_CONFIG_FILENAME"
Return 0 on success.
Signal Details
The “doc-search” signal
void user_function (GladeApp *gladeeditor, gchar *arg1, gchar *arg2, gchar *arg3, gpointer user_data)
Emitted when the glade core requests that a doc-search be performed.
Parameters
gladeeditor |
the GladeEditor which received the signal. |
|
arg1 |
the (gchar *) book to search or |
|
arg2 |
the (gchar *) page to search or |
|
arg3 |
the (gchar *) search string or |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
The “signal-editor-created” signal
void user_function (GladeApp *gladeapp, GObject *signal_editor, gpointer user_data)
Emitted when a new signal editor created. A tree view is created in the default handler. Connect your handler before the default handler for setting a custom column or renderer and after it for connecting to the tree view signals
Parameters
gladeapp |
the GladeApp which received the signal. |
|
signal_editor |
the new GladeSignalEditor. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
The “widget-adaptor-registered” signal
void user_function (GladeApp *gladeapp, GObject *adaptor, gpointer user_data)
Emitted when a new widget adaptor is registered.
Parameters
gladeapp |
the GladeApp which received the signal. |
|
adaptor |
the newlly registered GladeWidgetAdaptor. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
