![]() |
![]() |
![]() |
massifg Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Signals |
MassifgApplication; MassifgApplicationClass; MassifgApplication * massifg_application_new (int *argc_ptr
,char ***argv_ptr
); void massifg_application_free (MassifgApplication *app
); gboolean massifg_application_set_file (MassifgApplication *app
,gchar *filename
,GError **error
); int massifg_application_run (MassifgApplication *app
);
typedef struct _MassifgApplication MassifgApplication;
Instance structure for a MassifgApplication object
typedef struct { GObjectClass parent_class; void (*file_changed) (MassifgApplication *app, gpointer user_data); } MassifgApplicationClass;
Class structure for a MassifgApplication object
MassifgApplication * massifg_application_new (int *argc_ptr
,char ***argv_ptr
);
Get a new MassifgApplication instance.
Arguments are typically gotten from main()
, but can for testing purposes
for instance be provided manually or by g_shell_parse_argv()
|
Pointer to argc, the number of elements in the argument array |
|
Pointer to argv array |
Returns : |
A new MassifgApplication instance |
void massifg_application_free (MassifgApplication *app
);
Free a MassifgApplication
|
The MassifgApplication to free |
gboolean massifg_application_set_file (MassifgApplication *app
,gchar *filename
,GError **error
);
Set the currently active file
int massifg_application_run (MassifgApplication *app
);
This function will block until the application quits. It is separate from main()
so that the application can be tested more easily
|
The MassifgApplication to run |
Returns : |
The applications exit status. Non-zero indicates failure |
"file-changed"
signalvoid user_function (MassifgApplication *arg0, gpointer user_data) : Run Last / No Recursion / No Hooks
This signal is emitted when the current active file is changed
|
user data set when the signal handler was connected. |