gnome-init

Name

gnome-init — one line description goes here.

Synopsis


#include <gnome.h>


int         gnome_init                      (const char *app_id,
                                             const char *app_version,
                                             int argc,
                                             char **argv);
int         gnome_init_with_popt_table      (const char *app_id,
                                             const char *app_version,
                                             int argc,
                                             char **argv,
                                             const struct poptOption *options,
                                             int flags,
                                             poptContext *return_ctx);

Description

Details


gnome_init()

int         gnome_init                      (const char *app_id,
                                             const char *app_version,
                                             int argc,
                                             char **argv);

Initializes the application. This sets up all of the GNOME internals and prepares them (imlib, gdk, session-management, triggers, sound, user preferences)

app_id : Application id.app_version : Application version.argc : argc (for example, as received by main)argv : argv (for example, as received by main)Returns


gnome_init_with_popt_table()

int         gnome_init_with_popt_table      (const char *app_id,
                                             const char *app_version,
                                             int argc,
                                             char **argv,
                                             const struct poptOption *options,
                                             int flags,
                                             poptContext *return_ctx);

Initializes the application. This sets up all of the GNOME internals and prepares them (imlib, gdk, session-management, triggers, sound, user preferences)

Unlike gnome_init, with gnome_init_with_popt_table you can provide a table of popt options (popt is the command line argument parsing library).

app_id : Application id.app_version : Application version.argc : pointer to argc (for example, as received by main)argv : pointer to argc (for example, as received by main)options : poptOption table with options to parseflags : popt flags.return_ctx : if non-NULL, the popt context is returned here.Returns