diff options
author | Christopher James Lahey <clahey@helixcode.com> | 2000-10-27 22:48:20 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2000-10-27 22:48:20 +0800 |
commit | dfdfa72ec5b7d56e9b6894b491e3b00d9bd21be2 (patch) | |
tree | 959b75aac9c36dc36b3c953e90727b0e8de691ed /widgets/text/e-entry.c | |
parent | 0e9dae0eb6c2f22aeb8904c7d161d68133a385b7 (diff) | |
download | gsoc2013-evolution-dfdfa72ec5b7d56e9b6894b491e3b00d9bd21be2.tar.gz gsoc2013-evolution-dfdfa72ec5b7d56e9b6894b491e3b00d9bd21be2.tar.zst gsoc2013-evolution-dfdfa72ec5b7d56e9b6894b491e3b00d9bd21be2.zip |
Added an "allow_newlines" argument.
2000-10-27 Christopher James Lahey <clahey@helixcode.com>
* gal/e-text/e-entry.c,
gal/e-text/e-text-event-processor-emacs-like.c,
gal/e-text/e-text-event-processor-emacs-like.h,
gal/e-text/e-text-event-processor.c,
gal/e-text/e-text-event-processor.h, gal/e-text/e-text.c: Added an
"allow_newlines" argument.
svn path=/trunk/; revision=6226
Diffstat (limited to 'widgets/text/e-entry.c')
-rw-r--r-- | widgets/text/e-entry.c | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c index 4fac4ee219..fdc08f4e20 100644 --- a/widgets/text/e-entry.c +++ b/widgets/text/e-entry.c @@ -62,8 +62,7 @@ enum { ARG_LINE_WRAP, ARG_BREAK_CHARACTERS, ARG_MAX_LINES, - ARG_WIDTH, - ARG_HEIGHT + ARG_ALLOW_NEWLINES, }; static void @@ -233,6 +232,11 @@ et_get_arg (GtkObject *o, GtkArg *arg, guint arg_id) "max_lines", >K_VALUE_INT (*arg), NULL); break; + case ARG_ALLOW_NEWLINES: + gtk_object_get(GTK_OBJECT(ee->item), + "allow_newlines", >K_VALUE_BOOL (*arg), + NULL); + break; default: arg->type = GTK_TYPE_INVALID; break; @@ -346,6 +350,12 @@ et_set_arg (GtkObject *o, GtkArg *arg, guint arg_id) "max_lines", GTK_VALUE_INT (*arg), NULL); break; + + case ARG_ALLOW_NEWLINES: + gtk_object_set(GTK_OBJECT(ee->item), + "allow_newlines", GTK_VALUE_BOOL (*arg), + NULL); + break; } } @@ -414,6 +424,8 @@ e_entry_class_init (GtkObjectClass *object_class) GTK_TYPE_STRING, GTK_ARG_READWRITE, ARG_BREAK_CHARACTERS); gtk_object_add_arg_type ("EEntry::max_lines", GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_MAX_LINES); + gtk_object_add_arg_type ("EEntry::allow_newlines", + GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_ALLOW_NEWLINES); } E_MAKE_TYPE(e_entry, "EEntry", EEntry, e_entry_class_init, e_entry_init, PARENT_TYPE); |