| libgnomedb Reference Manual |
|---|
struct GnomeDbControlPrivate; GnomeDbControl* gnome_db_control_construct (GnomeDbControl *control, GtkWidget *widget); GnomeDbControl* gnome_db_control_new (GtkWidget *widget); void gnome_db_control_set_ui (GnomeDbControl *control, const gchar *app_prefix, const gchar *ui_xml_file, BonoboUIVerb *verbs, gpointer user_data); void gnome_db_control_activate (GnomeDbControl *control); void gnome_db_control_deactivate (GnomeDbControl *control); void gnome_db_control_set_status (GnomeDbControl *control, const gchar *msg);
GnomeDbControl* gnome_db_control_construct (GnomeDbControl *control,
GtkWidget *widget);| control : | |
| widget : | |
| Returns : |
|
GnomeDbControl* gnome_db_control_new (GtkWidget *widget);
Creates a new
When calling this function, you must specify an already created
| widget : | the widget to be wrapped by the control |
| Returns : | the newly created |
void gnome_db_control_set_ui (GnomeDbControl *control,
const gchar *app_prefix,
const gchar *ui_xml_file,
BonoboUIVerb *verbs,
gpointer user_data);Sets the UI for the given
| control : | a |
| app_prefix : | the prefix where your application data is installed. This is used by the underlying Bonobo code, which searches for the given file in that directory |
| ui_xml_file : | name of the file in app_prefix that contains the XML description of the component's UI |
| verbs : | list of verbs and corresponding actions |
| user_data : | data to be passed to the verb callback functions |
void gnome_db_control_activate (GnomeDbControl *control);
Activates the given
| control : | a |
void gnome_db_control_deactivate (GnomeDbControl *control);
Deactivates the given
| control : | a |
void gnome_db_control_set_status (GnomeDbControl *control,
const gchar *msg);Displays the given message on the container's status bar. If you use
| control : | a |
| msg : | message to show on the status bar |
| <<< GnomeDbControlWidget | gnome-db-stock >>> |