aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/text
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@helixcode.com>2000-07-09 22:43:39 +0800
committerChris Lahey <clahey@src.gnome.org>2000-07-09 22:43:39 +0800
commit14f210e058d32fd6b656f9f6184316f448b3eacb (patch)
tree3f5ac7c65fa45495fa40d56139176f0457f08e15 /widgets/text
parent4ac82c14c897e907e2df607920f5fe9a7b113eb5 (diff)
downloadgsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.gz
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.bz2
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.lz
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.xz
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.tar.zst
gsoc2013-evolution-14f210e058d32fd6b656f9f6184316f448b3eacb.zip
Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the
2000-07-09 Christopher James Lahey <clahey@helixcode.com> * widgets/e-text/e-text.c: Don't draw quite as large a "flat_box". If draw_borders is TRUE, cause the cursor to change even if not editing. svn path=/trunk/; revision=4017
Diffstat (limited to 'widgets/text')
-rw-r--r--widgets/text/e-text.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/widgets/text/e-text.c b/widgets/text/e-text.c
index 6d7e08dad2..e2a592ba25 100644
--- a/widgets/text/e-text.c
+++ b/widgets/text/e-text.c
@@ -1689,15 +1689,15 @@ e_text_draw (GnomeCanvasItem *item, GdkDrawable *drawable,
gdouble thisx = 0, thisy = 0;
gdouble thiswidth, thisheight;
GtkWidget *widget = GTK_WIDGET(item->canvas);
- gtk_paint_flat_box (widget->style, drawable,
- GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
- NULL, widget, "entry_bg",
- 0, 0, -1, -1);
gtk_object_get(GTK_OBJECT(text),
"width", &thiswidth,
"height", &thisheight,
NULL);
+ gtk_paint_flat_box (widget->style, drawable,
+ GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
+ NULL, widget, "entry_bg",
+ 0, 0, thiswidth, thisheight);
if (text->editing) {
thisx += 1;
thisy += 1;
@@ -2554,7 +2554,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
if(!text->editing) {
text->editing = TRUE;
if ( text->pointer_in ) {
- if ( text->default_cursor_shown ) {
+ if ( text->default_cursor_shown && (!text->draw_borders)) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
}
@@ -2572,7 +2572,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
} else {
text->editing = FALSE;
- if ( ! text->default_cursor_shown ) {
+ if ( (!text->default_cursor_shown) && (!text->draw_borders) ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;
}
@@ -2717,7 +2717,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = TRUE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->i_cursor);
text->default_cursor_shown = FALSE;
@@ -2735,7 +2735,7 @@ e_text_event (GnomeCanvasItem *item, GdkEvent *event)
}
text->pointer_in = FALSE;
- if (text->editing) {
+ if (text->editing || text->draw_borders) {
if ( ! text->default_cursor_shown ) {
gdk_window_set_cursor(GTK_WIDGET(item->canvas)->window, text->default_cursor);
text->default_cursor_shown = TRUE;