bonobo_control_get_widget
- From: Dan Winship <danw helixcode com>
- To: gnome-components-list gnome org
- Subject: bonobo_control_get_widget
- Date: Mon, 3 Apr 2000 10:52:59 -0400 (EDT)
Nat said the lack of this was an oversight.
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/bonobo/ChangeLog,v
retrieving revision 1.334
diff -u -r1.334 ChangeLog
--- ChangeLog 2000/04/03 06:45:53 1.334
+++ ChangeLog 2000/04/03 14:50:58
@@ -1,3 +1,8 @@
+2000-04-03 Dan Winship <danw@helixcode.com>
+
+ * bonobo/bonobo-control.c (bonobo_control_get_widget): New
+ accessor to get the GtkWidget out of a BonoboControl.
+
2000-04-02 Jon K Hellan <hellan@acm.org>
* bonobo/bonobo-uih-menu.c (menu_parse_uiinfo_one): Tolerate NULL
Index: bonobo/bonobo-control.c
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-control.c,v
retrieving revision 1.20
diff -u -r1.20 bonobo-control.c
--- bonobo/bonobo-control.c 2000/02/28 19:02:40 1.20
+++ bonobo/bonobo-control.c 2000/04/03 14:50:58
@@ -495,6 +495,22 @@
}
/**
+ * bonobo_control_get_widget:
+ * @control: a BonoboControl
+ *
+ * Returns the GtkWidget associated with a BonoboControl.
+ *
+ * Return value: the BonoboControl's widget
+ **/
+GtkWidget *
+bonobo_control_get_widget (BonoboControl *control)
+{
+ g_return_val_if_fail (BONOBO_IS_CONTROL (control), NULL);
+
+ return control->priv->widget;
+}
+
+/**
* bonobo_control_set_automerge:
* @control: A #BonoboControl.
* @automerge: Whether or not menus and toolbars should be
Index: bonobo/bonobo-control.h
===================================================================
RCS file: /cvs/gnome/bonobo/bonobo/bonobo-control.h,v
retrieving revision 1.13
diff -u -r1.13 bonobo-control.h
--- bonobo/bonobo-control.h 2000/02/28 19:02:40 1.13
+++ bonobo/bonobo-control.h 2000/04/03 14:50:58
@@ -41,6 +41,7 @@
/* The main API */
BonoboControl *bonobo_control_new (GtkWidget *widget);
+GtkWidget *bonobo_control_get_widget (BonoboControl *control);
void bonobo_control_set_automerge (BonoboControl *control,
gboolean automerge);
gboolean bonobo_control_get_automerge (BonoboControl *control);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]