MassifG GTK UI

MassifG GTK UI — Functions for creating and starting the GTK UI

Synopsis

#define             MASSIFG_GTKUI_MAIN_WINDOW
gint                massifg_gtkui_init                  (MassifgApplication *app);
void                massifg_gtkui_start                 (MassifgApplication *app);
void                massifg_gtkui_errormsg              (MassifgApplication *app,
                                                         const gchar *msg_format,
                                                         ...);

Description

Note: These functions are meant to be used internally in MassifG

Details

MASSIFG_GTKUI_MAIN_WINDOW

#define MASSIFG_GTKUI_MAIN_WINDOW "mainwindow"

String identifier for the main window in the gtkbuilder


massifg_gtkui_init ()

gint                massifg_gtkui_init                  (MassifgApplication *app);

Initialize the whole UI. After calling this, the UI can be started by calling massifg_gtkui_start()


massifg_gtkui_start ()

void                massifg_gtkui_start                 (MassifgApplication *app);

Present the UI, and start the gtk mainloop.


massifg_gtkui_errormsg ()

void                massifg_gtkui_errormsg              (MassifgApplication *app,
                                                         const gchar *msg_format,
                                                         ...);

Present a error message to the user. The message can be formatted with Pango markup language.

app :

A MassifgApplication

msg_format :

printf() like format string

... :

printf() like argument list