aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-text/e-entry.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-09 20:38:16 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-09 20:38:16 +0800
commit80206f6b32b1ff0aac3f5a54c66176a8c112b547 (patch)
treede4ca3aecab51c61f4dbc20835f7dcf288433a97 /widgets/e-text/e-entry.c
parent26279f186a6c7ee5b500dbff8a2b7f227cf6f564 (diff)
downloadgsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar.gz
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar.bz2
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar.lz
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar.xz
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.tar.zst
gsoc2013-evolution-80206f6b32b1ff0aac3f5a54c66176a8c112b547.zip
Removed some border padding and set the "draw_borders" argument of the
2000-07-09 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-entry.c: Removed some border padding and set the "draw_borders" argument of the contained GtkText. * widgets/e-text/e-text.c, widget/e-text/e-text.h: Added a "draw_borders" argument which, if set, makes the EText look more like a GtkEntry. svn path=/trunk/; revision=4011
Diffstat (limited to 'widgets/e-text/e-entry.c')
-rw-r--r--widgets/e-text/e-entry.c11
1 files changed, 4 insertions, 7 deletions
diff --git a/widgets/e-text/e-entry.c b/widgets/e-text/e-entry.c
index 588d5358d7..cbde382c93 100644
--- a/widgets/e-text/e-entry.c
+++ b/widgets/e-text/e-entry.c
@@ -27,7 +27,6 @@
#define MIN_ENTRY_WIDTH 150
#define INNER_BORDER 2
-
#define PARENT_TYPE gtk_table_get_type ()
static GtkObjectClass *parent_class;
@@ -75,8 +74,8 @@ canvas_size_allocate (GtkWidget *widget, GtkAllocation *alloc,
e_entry->canvas,
0, 0, alloc->width, alloc->height);
gtk_object_set (GTK_OBJECT (e_entry->item),
- "clip_width", (double) alloc->width - 2 * INNER_BORDER,
- "clip_height", (double) alloc->height - 2 * INNER_BORDER,
+ "clip_width", (double) alloc->width,
+ "clip_height", (double) alloc->height,
NULL);
}
@@ -110,10 +109,8 @@ e_entry_init (GtkObject *object)
"clip", TRUE,
"fill_clip_rectangle", TRUE,
"anchor", GTK_ANCHOR_NW,
+ "draw_borders", TRUE,
NULL));
- e_canvas_item_move_absolute(GNOME_CANVAS_ITEM(e_entry->item),
- INNER_BORDER,
- INNER_BORDER);
gtk_table_attach_defaults(gtk_table, GTK_WIDGET(e_entry->canvas),
0, 1, 0, 1);
@@ -340,7 +337,7 @@ et_set_arg (GtkObject *o, GtkArg *arg, guint arg_id)
break;
}
}
-
+
static void
e_entry_class_init (GtkObjectClass *object_class)
{