diff options
author | Yevgen Muntyan <muntyan@tamu.edu> | 2007-06-12 05:32:57 +0000 |
---|---|---|
committer | Behdad Esfahbod <behdad@src.gnome.org> | 2007-06-12 05:32:57 +0000 |
commit | ef1e05f7ded60ec3551ec4ab57fded69437a6837 (patch) | |
tree | d4c976d8416c781a92cbe59dcb17bd4eee9e1b51 /gtk/gtktextutil.h | |
parent | 15c693477897eb1bbc8aebae880ef979eae1ba94 (diff) | |
download | gtk+-ef1e05f7ded60ec3551ec4ab57fded69437a6837.tar.gz |
Implement block-cursor for overwrite mode. (#80378)
2007-06-12 Yevgen Muntyan <muntyan@tamu.edu>
* gtk/gtkentry.c (gtk_entry_expose), (gtk_entry_toggle_overwrite),
(gtk_entry_draw_cursor):
* gtk/gtkstyle.c (_gtk_widget_get_cursor_gc),
(_gtk_widget_get_cursor_color):
* gtk/gtkstyle.h:
* gtk/gtktextdisplay.c (gtk_text_renderer_prepare_run),
(gtk_text_renderer_draw_shape), (text_renderer_set_state),
(render_para):
* gtk/gtktextlayout.c (gtk_text_layout_set_overwrite_mode),
(gtk_text_layout_invalidate_cache), (get_block_cursor),
(add_cursor), (gtk_text_layout_get_line_display),
(_gtk_text_layout_get_block_cursor):
* gtk/gtktextlayout.h:
* gtk/gtktextutil.c (layout_get_char_width),
(_gtk_text_util_get_block_cursor_location):
* gtk/gtktextutil.h:
* gtk/gtktextview.c (gtk_text_view_set_editable),
(gtk_text_view_toggle_overwrite), (gtk_text_view_set_overwrite),
(gtk_text_view_ensure_layout), (text_window_invalidate_cursors):
Implement block-cursor for overwrite mode. (#80378)
svn path=/trunk/; revision=18108
Diffstat (limited to 'gtk/gtktextutil.h')
-rw-r--r-- | gtk/gtktextutil.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/gtk/gtktextutil.h b/gtk/gtktextutil.h index e69a925af1..5b3070b212 100644 --- a/gtk/gtktextutil.h +++ b/gtk/gtktextutil.h @@ -45,9 +45,6 @@ void _gtk_text_util_append_special_char_menuitems (GtkMenuShell *me GtkTextUtilCharChosenFunc func, gpointer data); - -G_END_DECLS - GdkPixmap* _gtk_text_util_create_drag_icon (GtkWidget *widget, gchar *text, gsize len); @@ -56,4 +53,11 @@ GdkPixmap* _gtk_text_util_create_rich_drag_icon (GtkWidget *widget, GtkTextIter *start, GtkTextIter *end); +gboolean _gtk_text_util_get_block_cursor_location (PangoLayout *layout, + gint index_, + PangoRectangle *rectangle, + gboolean *at_line_end); + +G_END_DECLS + #endif /* __GTK_TEXT_UTIL_H__ */ |