diff options
author | Owen Taylor <otaylor@src.gnome.org> | 2004-02-26 20:59:01 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2004-02-26 20:59:01 +0000 |
commit | 0459484caa2efbabd2fc3fd539c80e3aa42c6b60 (patch) | |
tree | cea2981e200b98ea1ef36e70551447b7d497f234 /gtk/gtktextdisplay.c | |
parent | 610ae3cbd5f2957c3080affdeab17f1d5c12a011 (diff) | |
download | gdk-pixbuf-0459484caa2efbabd2fc3fd539c80e3aa42c6b60.tar.gz |
hu Feb 26 15:43:43 2004 Owen Taylor <otaylor@redhat.com>
* gtk/gtkstyle.[ch]: Export insertion cursor drawing functionality
in a simplified form as gtk_draw_insertion_cursor().
(#99031, request from Alex Larsson)
* gtk/gtktextdisplay.c gtk/gtkentry.c gtk/gtklabel.c:
Adapt to new gtk_draw_insertion_cursor().
* gtk/gtkradiomenuitem.c (gtk_radio_menu_item_class_init)
gtk/gtkstyle.c (gtk_style_class_init): Add some missed
Since: 2.4.
* gtk/gtkiconfactory.c (icon_size_settings_changed)
gtk/gtkicontheme.c (do_theme_change)
gtk/gtkrc.c (_gtk_rc_context_get_default_font_name)
* gtk/gtksettings.c (gtk_settings_notify):
_gtk_rc_reset_styles => gtk_rc_reset_styles.
Diffstat (limited to 'gtk/gtktextdisplay.c')
-rw-r--r-- | gtk/gtktextdisplay.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/gtk/gtktextdisplay.c b/gtk/gtktextdisplay.c index 55e64099f..f5937298b 100644 --- a/gtk/gtktextdisplay.c +++ b/gtk/gtktextdisplay.c @@ -821,7 +821,6 @@ gtk_text_layout_draw (GtkTextLayout *layout, GtkTextCursorDisplay *cursor = cursor_list->data; GtkTextDirection dir; GdkRectangle cursor_location; - GdkGC *gc; dir = line_display->direction; if (have_strong && have_weak) @@ -834,14 +833,10 @@ gtk_text_layout_draw (GtkTextLayout *layout, cursor_location.y = current_y + line_display->top_margin + cursor->y; cursor_location.width = 0; cursor_location.height = cursor->height; - - gc = _gtk_get_insertion_cursor_gc (widget, cursor->is_strong); - gdk_gc_set_clip_rectangle(gc, &clip); - _gtk_draw_insertion_cursor (widget, drawable, gc, &cursor_location, - dir, have_strong && have_weak); - gdk_gc_set_clip_rectangle (gc, NULL); - g_object_unref (gc); + gtk_draw_insertion_cursor (widget, drawable, &clip, &cursor_location, + cursor->is_strong, + dir, have_strong && have_weak); cursor_list = cursor_list->next; } |