aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-08-12 06:35:58 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-08-12 06:35:58 +0800
commit54ebf885b1dc0211bb2c30d7b58afd32b5a13470 (patch)
tree55b11e3a78208094ed686ab192bc848efd33d0c5 /calendar/gui/dialogs
parentc02be949db38a653e1338c6126dde0b61dcf0dcc (diff)
downloadgsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.gz
gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.zst
gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.zip
turn on word-wrap for the description fields. Fixes bug #6821.
2001-08-11 Damon Chaplin <damon@ximian.com> * gui/dialogs/event-page.c (init_widgets): * gui/dialogs/task-page.c (init_widgets): turn on word-wrap for the description fields. Fixes bug #6821. svn path=/trunk/; revision=11922
Diffstat (limited to 'calendar/gui/dialogs')
-rw-r--r--calendar/gui/dialogs/event-page.c5
-rw-r--r--calendar/gui/dialogs/task-page.c4
2 files changed, 8 insertions, 1 deletions
diff --git a/calendar/gui/dialogs/event-page.c b/calendar/gui/dialogs/event-page.c
index 50b1fa3ba7..bae084d526 100644
--- a/calendar/gui/dialogs/event-page.c
+++ b/calendar/gui/dialogs/event-page.c
@@ -711,7 +711,7 @@ summary_changed_cb (GtkEditable *editable, gpointer data)
if (priv->updating)
return;
- summary = e_dialog_editable_get (editable);
+ summary = e_dialog_editable_get (GTK_WIDGET (editable));
comp_editor_page_notify_summary_changed (COMP_EDITOR_PAGE (epage),
summary);
g_free (summary);
@@ -1041,6 +1041,9 @@ init_widgets (EventPage *epage)
gtk_signal_connect (GTK_OBJECT (priv->summary), "changed",
GTK_SIGNAL_FUNC (summary_changed_cb), epage);
+ /* Description - turn on word wrap. */
+ gtk_text_set_word_wrap (GTK_TEXT (priv->description), TRUE);
+
/* Start and end times */
gtk_signal_connect (GTK_OBJECT (priv->start_time), "changed",
GTK_SIGNAL_FUNC (date_changed_cb), epage);
diff --git a/calendar/gui/dialogs/task-page.c b/calendar/gui/dialogs/task-page.c
index edf037ef98..d2f4a557c2 100644
--- a/calendar/gui/dialogs/task-page.c
+++ b/calendar/gui/dialogs/task-page.c
@@ -28,6 +28,7 @@
#include <string.h>
#include <gtk/gtksignal.h>
+#include <gtk/gtktext.h>
#include <gtk/gtktogglebutton.h>
#include <gtk/gtkspinbutton.h>
#include <gtk/gtkoptionmenu.h>
@@ -700,6 +701,9 @@ init_widgets (TaskPage *tpage)
gtk_signal_connect (GTK_OBJECT (priv->summary), "changed",
GTK_SIGNAL_FUNC (summary_changed_cb), tpage);
+ /* Description - turn on word wrap. */
+ gtk_text_set_word_wrap (GTK_TEXT (priv->description), TRUE);
+
/* Dates */
gtk_signal_connect (GTK_OBJECT (priv->start_date), "changed",
GTK_SIGNAL_FUNC (date_changed_cb), tpage);