Top |
Functions
GType | (*GpGetAppletTypeFunc) () |
void | (*GpInitialSetupDialogFunc) () |
void | (*GpAboutDialogFunc) () |
gboolean | (*GpIsDisabledFunc) () |
GpAppletInfo * | gp_applet_info_new () |
void | gp_applet_info_set_initial_setup_dialog () |
void | gp_applet_info_set_help_uri () |
void | gp_applet_info_set_about_dialog () |
void | gp_applet_info_set_backends () |
void | gp_applet_info_set_is_disabled () |
Functions
GpInitialSetupDialogFunc ()
void
(*GpInitialSetupDialogFunc) (GpInitialSetupDialog *dialog
);
Function for setting up initial setup dialog.
GpAboutDialogFunc ()
void
(*GpAboutDialogFunc) (GtkAboutDialog *dialog
);
Function for setting up about dialog.
The dialog will be already filled in with following information - version program name, comments and logo icon name.
Version will be same that was set with gp_module_set_version()
. Other
three fields are information from gp_applet_info_new()
.
GpIsDisabledFunc ()
gboolean (*GpIsDisabledFunc) (GpLockdownFlags flags
,char **reason
);
This function must return TRUE
if applet must be fully disabled (applet
will not be loaded nor user will be able to add it to panel). Function also
should return reason why applet is disabled.
If applet is usable with some active lockdowns it should return FALSE
and
use “lockdows” property to adjust behaviour/functionality.
Parameters
flags |
a GpLockdownFlags with active lockdowns |
|
reason |
return location for reason. |
[out][transfer full] |
gp_applet_info_new ()
GpAppletInfo * gp_applet_info_new (GpGetAppletTypeFunc func
,const gchar *name
,const gchar *description
,const gchar *icon_name
);
Creates a new GpAppletInfo.
gp_applet_info_set_initial_setup_dialog ()
void gp_applet_info_set_initial_setup_dialog (GpAppletInfo *info
,GpInitialSetupDialogFunc func
);
Specifies a function to be used to setup initial setup dialog.
gp_applet_info_set_help_uri ()
void gp_applet_info_set_help_uri (GpAppletInfo *info
,const gchar *help_uri
);
Sets the help uri. Must be in help:<document>
format. Optional page
identifier with options and anchor can be passed to gp_applet_show_help()
.
gp_applet_info_set_about_dialog ()
void gp_applet_info_set_about_dialog (GpAppletInfo *info
,GpAboutDialogFunc func
);
Specifies a function to be used to setup about dialog.
gp_applet_info_set_backends ()
void gp_applet_info_set_backends (GpAppletInfo *info
,const gchar *backends
);
Sets a list of backends that this applet supports.
gp_applet_info_set_is_disabled ()
void gp_applet_info_set_is_disabled (GpAppletInfo *info
,GpIsDisabledFunc func
);
Specifies a function to be used to check if applet should be disabled.
Types and Values
GpAppletInfo
typedef struct _GpAppletInfo GpAppletInfo;
The GpAppletInfo struct is an opaque data structure.