From 4720ad36fadc7680cb62cb309627d28511555ef2 Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 23 Oct 2001 06:30:54 +0000 Subject: Bumped version to 0.15.99.3 for EText's "draw_button" argument. 2001-10-23 Christopher James Lahey * 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 * e-shortcut-bar.c (e_shortcut_bar_add_group): Turn on "draw_button" argument to EEntry. svn path=/trunk/; revision=13934 --- widgets/text/e-entry.c | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'widgets/text/e-entry.c') 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", >K_VALUE_BOOL (*arg), + NULL); + break; + case ARG_CURSOR_POS: gtk_object_get (item, "cursor_pos", >K_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); } -- cgit v1.2.3