aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/e-itip-control.c
diff options
context:
space:
mode:
authorJesse Pavel <jpavel@src.gnome.org>2000-10-12 05:18:37 +0800
committerJesse Pavel <jpavel@src.gnome.org>2000-10-12 05:18:37 +0800
commitd55e310762a3ba82f1cadf118bf2994541199520 (patch)
treea5c3e06866758f2d57f138efca2928f49ca01ce6 /calendar/gui/e-itip-control.c
parentcf9552aed5c4f9f4daf45776f1babdbc86b6267e (diff)
downloadgsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar.gz
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar.bz2
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar.lz
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar.xz
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.tar.zst
gsoc2013-evolution-d55e310762a3ba82f1cadf118bf2994541199520.zip
*** empty log message ***
svn path=/trunk/; revision=5865
Diffstat (limited to 'calendar/gui/e-itip-control.c')
-rw-r--r--calendar/gui/e-itip-control.c32
1 files changed, 23 insertions, 9 deletions
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);