GladeApp

GladeApp — The central control point of the Glade core.

Signals

void doc-search Run Last
void signal-editor-created Run Last
void widget-adaptor-registered Run Last

Types and Values

struct GladeApp

Object Hierarchy

    GObject
    ╰── GladeApp

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_new ()

GladeApp *
glade_app_new (void);

glade_pointer_mode_get_type ()

GType
glade_pointer_mode_get_type (void);

glade_app_get ()

GladeApp *
glade_app_get (void);

glade_app_set_window ()

void
glade_app_set_window (GtkWidget *window);

glade_app_get_window ()

GtkWidget *
glade_app_get_window (void);

glade_app_get_clipboard ()

GladeClipboard *
glade_app_get_clipboard (void);

glade_app_add_project ()

void
glade_app_add_project (GladeProject *project);

glade_app_remove_project ()

void
glade_app_remove_project (GladeProject *project);

glade_app_get_projects ()

GList *
glade_app_get_projects (void);

glade_app_get_config ()

GKeyFile *
glade_app_get_config (void);

glade_app_is_project_loaded ()

gboolean
glade_app_is_project_loaded (const gchar *project_path);

glade_app_get_project_by_path ()

GladeProject *
glade_app_get_project_by_path (const gchar *project_path);

Finds an open project with path

Parameters

project_path

The path of an open project

 

Returns

A GladeProject, or NULL if no such open project was found


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.


glade_app_set_accel_group ()

void
glade_app_set_accel_group (GtkAccelGroup *accel_group);

glade_app_get_catalogs_dir ()

const gchar *
glade_app_get_catalogs_dir (void);

glade_app_get_modules_dir ()

const gchar *
glade_app_get_modules_dir (void);

glade_app_get_pixmaps_dir ()

const gchar *
glade_app_get_pixmaps_dir (void);

glade_app_get_locale_dir ()

const gchar *
glade_app_get_locale_dir (void);

Types and Values

struct GladeApp

struct GladeApp;

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 NULL

 

arg2

the (gchar *) page to search or NULL

 

arg3

the (gchar *) search string or NULL

 

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