diff options
author | Damon Chaplin <damon@ximian.com> | 2001-08-12 06:35:58 +0800 |
---|---|---|
committer | Damon Chaplin <damon@src.gnome.org> | 2001-08-12 06:35:58 +0800 |
commit | 54ebf885b1dc0211bb2c30d7b58afd32b5a13470 (patch) | |
tree | 55b11e3a78208094ed686ab192bc848efd33d0c5 | |
parent | c02be949db38a653e1338c6126dde0b61dcf0dcc (diff) | |
download | gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.gz gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.bz2 gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.lz gsoc2013-evolution-54ebf885b1dc0211bb2c30d7b58afd32b5a13470.tar.xz 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
-rw-r--r-- | calendar/ChangeLog | 6 | ||||
-rw-r--r-- | calendar/gui/dialogs/event-page.c | 5 | ||||
-rw-r--r-- | calendar/gui/dialogs/task-page.c | 4 |
3 files changed, 14 insertions, 1 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index fccc526224..6758ff9c8b 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,9 @@ +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. + 2001-08-10 Jon Trowbridge <trow@ximian.com> * gui/cal-search-bar.c: Where we have ESearchBarItems, set their 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); |