| GNOME-DB API reference |
|---|
struct GnomeDbControlPrivate;GnomeDbControl * gnome_db_control_construct (GnomeDbControl *control,GtkWidget *w);GnomeDbControl * gnome_db_control_new (GtkWidget *w); void gnome_db_control_set_ui (GnomeDbControl *control, constgchar *app_prefix, constgchar *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, constgchar *msg);gpointer gnome_db_control_get_user_data (GnomeDbControl *control); void gnome_db_control_set_user_data (GnomeDbControl *control,gpointer user_data);GtkWidget * gnome_db_control_get_widget (GnomeDbControl *control);BonoboControl * gnome_db_control_get_bonobo_control (GnomeDbControl *control);Bonobo_UIContainer gnome_db_control_get_ui_container (GnomeDbControl *control);
The
But not only can you use it to extend the front end application, but also to implement your own Bonobo controls, even totally unrelated to GNOME-DB.
GnomeDbControl * gnome_db_control_construct (GnomeDbControl *control,GtkWidget *w);
| control : | |
| w : | |
| Returns : |
|
GnomeDbControl * gnome_db_control_new (GtkWidget *w);
Creates a new
When calling this function, you must specify an already created
| w : | the widget to be wrapped by the control |
| Returns : | the newly created |
void gnome_db_control_set_ui (GnomeDbControl *control, constgchar *app_prefix, constgchar *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, constgchar *msg);
Displays the given message on the container's status bar. If you use GnomeDbWindow for your containers, you automatically have a status bar on your window, and, with this function, you can set the message to be displayed on that status bar from the components.
| control : | a |
| msg : | message to show on the status bar |
gpointer gnome_db_control_get_user_data (GnomeDbControl *control);
Gets the user data associated with the given
| control : | a |
| Returns : | a pointer to the data associated with the control |
void gnome_db_control_set_user_data (GnomeDbControl *control,gpointer user_data);
Associates user data with the given
| control : | a |
| user_data : |
|
GtkWidget * gnome_db_control_get_widget (GnomeDbControl *control);
Gets the GtkWidget being wrapped by the given
| control : | a |
| Returns : | the GtkWidget used by the control. |
BonoboControl * gnome_db_control_get_bonobo_control (GnomeDbControl *control);
Gets the BonoboControl object from the given
| control : | a |
| Returns : | a BonoboControl. |
| <<< GnomeDbControlWidget | GnomeDbMoniker >>> |