From d55e310762a3ba82f1cadf118bf2994541199520 Mon Sep 17 00:00:00 2001 From: Jesse Pavel Date: Wed, 11 Oct 2000 21:18:37 +0000 Subject: *** empty log message *** svn path=/trunk/; revision=5865 --- calendar/gui/e-itip-control.c | 32 +++++++++++++++++++++++--------- 1 file changed, 23 insertions(+), 9 deletions(-) (limited to 'calendar/gui/e-itip-control.c') diff --git a/calendar/gui/e-itip-control.c b/calendar/gui/e-itip-control.c index 7c4dc22a4b..670cfed67f 100644 --- a/calendar/gui/e-itip-control.c +++ b/calendar/gui/e-itip-control.c @@ -17,13 +17,10 @@ #include "e-itip-control.h" -/* - * Bonobo::PersistStream - * - * These two functions implement the Bonobo::PersistStream load and - * save methods which allow data to be loaded into and out of the - * BonoboObject. - */ + +#define DEFAULT_WIDTH 300 +#define DEFAULT_HEIGHT 200 + typedef struct _EItipControlPrivate EItipControlPrivate; @@ -37,7 +34,7 @@ struct _EItipControlPrivate { static void -control_destroy_cb (GtkObject *object, +itip_control_destroy_cb (GtkObject *object, gpointer data) { EItipControlPrivate *priv = data; @@ -46,6 +43,21 @@ control_destroy_cb (GtkObject *object, g_free (priv); } +static void +itip_control_size_request_cb (GtkWidget *widget, GtkRequisition *requisition) +{ + requisition->width = DEFAULT_WIDTH; + requisition->height = DEFAULT_HEIGHT; +} + + +/* + * Bonobo::PersistStream + * + * These two functions implement the Bonobo::PersistStream load and + * save methods which allow data to be loaded into and out of the + * BonoboObject. + */ static char * stream_read (Bonobo_Stream stream) @@ -194,7 +206,9 @@ e_itip_control_factory (BonoboGenericFactory *Factory, void *closure) gtk_text_set_editable (GTK_TEXT (priv->text_box), FALSE); gtk_signal_connect (GTK_OBJECT (priv->main_frame), "destroy", - GTK_SIGNAL_FUNC (control_destroy_cb), priv); + GTK_SIGNAL_FUNC (itip_control_destroy_cb), priv); + gtk_signal_connect (GTK_OBJECT (priv->main_frame), "size_request", + GTK_SIGNAL_FUNC (itip_control_size_request_cb), priv); gtk_widget_show (priv->text_box); gtk_widget_show (priv->main_frame); -- cgit v1.2.3