Redraw the character under the cursor when removing the cursor.
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com> * gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable): Redraw the character under the cursor when removing the cursor.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1,3 +1,9 @@
|
|||||||
|
Wed Dec 16 15:36:19 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
|
* gtk/gtkentry.c (gtk_entry_draw_cursor_on_drawable):
|
||||||
|
Redraw the character under the cursor when removing
|
||||||
|
the cursor.
|
||||||
|
|
||||||
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
Wed Dec 16 13:06:17 1998 Owen Taylor <otaylor@redhat.com>
|
||||||
|
|
||||||
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
* gdk/gdk.[ch] gtk/gtkmain.[ch] gtk/gtkprivate.h: Move main
|
||||||
|
|||||||
@ -1439,15 +1439,29 @@ gtk_entry_draw_cursor_on_drawable (GtkEntry *entry, GdkDrawable *drawable)
|
|||||||
(editable->selection_start_pos == editable->selection_end_pos))
|
(editable->selection_start_pos == editable->selection_end_pos))
|
||||||
{
|
{
|
||||||
gdk_draw_line (drawable, widget->style->fg_gc[GTK_STATE_NORMAL],
|
gdk_draw_line (drawable, widget->style->fg_gc[GTK_STATE_NORMAL],
|
||||||
xoffset, 0, xoffset, text_area_height);
|
xoffset, INNER_BORDER,
|
||||||
|
xoffset, text_area_height - INNER_BORDER);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
|
gint yoffset =
|
||||||
|
(text_area_height -
|
||||||
|
(widget->style->font->ascent + widget->style->font->descent)) / 2
|
||||||
|
+ widget->style->font->ascent;
|
||||||
|
|
||||||
gtk_paint_flat_box (widget->style, drawable,
|
gtk_paint_flat_box (widget->style, drawable,
|
||||||
GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
|
GTK_WIDGET_STATE(widget), GTK_SHADOW_NONE,
|
||||||
NULL, widget, "entry_bg",
|
NULL, widget, "entry_bg",
|
||||||
xoffset, 0, 1, text_area_height);
|
xoffset, INNER_BORDER,
|
||||||
}
|
1, text_area_height - INNER_BORDER);
|
||||||
|
/* Draw the character under the cursor again */
|
||||||
|
|
||||||
|
gdk_draw_text_wc (drawable, widget->style->font,
|
||||||
|
widget->style->fg_gc[GTK_WIDGET_STATE (widget)],
|
||||||
|
xoffset, yoffset,
|
||||||
|
entry->text + editable->current_pos, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#ifdef USE_XIM
|
#ifdef USE_XIM
|
||||||
if (GTK_WIDGET_HAS_FOCUS(widget) && gdk_im_ready() && editable->ic &&
|
if (GTK_WIDGET_HAS_FOCUS(widget) && gdk_im_ready() && editable->ic &&
|
||||||
|
|||||||
@ -17,7 +17,7 @@ pixmap_path "."
|
|||||||
|
|
||||||
style "defaultfont"
|
style "defaultfont"
|
||||||
{
|
{
|
||||||
fontset = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
fontset = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*,*"
|
||||||
# font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
# font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@ -17,7 +17,7 @@ pixmap_path "."
|
|||||||
|
|
||||||
style "defaultfont"
|
style "defaultfont"
|
||||||
{
|
{
|
||||||
fontset = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
fontset = "-adobe-helvetica-medium-r-normal--*-100-*-*-*-*-*-*,*"
|
||||||
# font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
# font = "-adobe-helvetica-medium-r-normal--*-120-*-*-*-*-*-*,*"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user