aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text/e-entry.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-10-23 14:30:54 +0800
committerChris Lahey <clahey@src.gnome.org>2001-10-23 14:30:54 +0800
commit4720ad36fadc7680cb62cb309627d28511555ef2 (patch)
treec4f09e1da1de734d407f4ad46ad4145664125981 /widgets/text/e-entry.c
parent343f36cffe95db2943ba897b83bbb88a6c25c366 (diff)
downloadgsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar.gz
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar.bz2
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar.lz
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar.xz
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.tar.zst
gsoc2013-evolution-4720ad36fadc7680cb62cb309627d28511555ef2.zip
Bumped version to 0.15.99.3 for EText's "draw_button" argument.
2001-10-23 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version to 0.15.99.3 for EText's "draw_button" argument. * gal/e-text/e-entry.c: Forward the "draw_button" argument to the contained EText. * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_draw): Added new "draw_button" argument. If this is turned on and the first widget that's a parent of the containing canvas with GTK_NO_WINDOW turned off above the current one is a button, EText draws a button underneath itself to match the containing button. From gal/shortcut-bar/ChangeLog: 2001-10-23 Christopher James Lahey <clahey@ximian.com> * e-shortcut-bar.c (e_shortcut_bar_add_group): Turn on "draw_button" argument to EEntry. svn path=/trunk/; revision=13934
Diffstat (limited to 'widgets/text/e-entry.c')
-rw-r--r--widgets/text/e-entry.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/widgets/text/e-entry.c b/widgets/text/e-entry.c
index b46ed1e6c5..a55f35b90c 100644
--- a/widgets/text/e-entry.c
+++ b/widgets/text/e-entry.c
@@ -99,6 +99,7 @@ enum {
ARG_ALLOW_NEWLINES,
ARG_DRAW_BORDERS,
ARG_DRAW_BACKGROUND,
+ ARG_DRAW_BUTTON,
ARG_CURSOR_POS
};
@@ -289,6 +290,7 @@ e_entry_init (GtkObject *object)
"anchor", GTK_ANCHOR_NW,
"draw_borders", TRUE,
"draw_background", TRUE,
+ "draw_button", FALSE,
"max_lines", 1,
"editable", TRUE,
"allow_newlines", FALSE,
@@ -931,6 +933,12 @@ et_get_arg (GtkObject *o, GtkArg *arg, guint arg_id)
NULL);
break;
+ case ARG_DRAW_BUTTON:
+ gtk_object_get (item,
+ "draw_button", &GTK_VALUE_BOOL (*arg),
+ NULL);
+ break;
+
case ARG_CURSOR_POS:
gtk_object_get (item,
"cursor_pos", &GTK_VALUE_INT (*arg),
@@ -1112,6 +1120,11 @@ et_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
gtk_object_set (item, "draw_background",
GTK_VALUE_BOOL (*arg), NULL);
break;
+
+ case ARG_DRAW_BUTTON:
+ gtk_object_set (item, "draw_button",
+ GTK_VALUE_BOOL (*arg), NULL);
+ break;
}
}
@@ -1231,6 +1244,8 @@ e_entry_class_init (GtkObjectClass *object_class)
GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_DRAW_BORDERS);
gtk_object_add_arg_type ("EEntry::draw_background",
GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_DRAW_BACKGROUND);
+ gtk_object_add_arg_type ("EEntry::draw_button",
+ GTK_TYPE_BOOL, GTK_ARG_READWRITE, ARG_DRAW_BUTTON);
gtk_object_add_arg_type ("EEntry::cursor_pos",
GTK_TYPE_INT, GTK_ARG_READWRITE, ARG_CURSOR_POS);
}