summaryrefslogtreecommitdiff
path: root/gtk/gtkstyle.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2002-03-03 19:59:29 +0000
committerOwen Taylor <otaylor@src.gnome.org>2002-03-03 19:59:29 +0000
commitc848fbbcfe7813b6347a00452a890aeb17e767bb (patch)
tree91b2e23d465dc215130c97d2d6d46cc8a8fe3739 /gtk/gtkstyle.h
parent5d5cfcd435d00ffa11ffce63d3b708904faf2182 (diff)
downloadgdk-pixbuf-c848fbbcfe7813b6347a00452a890aeb17e767bb.tar.gz
Centralize lookup and caching of cursor GC's here.
Sun Mar 3 14:26:33 2002 Owen Taylor <otaylor@redhat.com> * gtk/gtkstyle.[ch] (_gtk_get_insertion_cursor_gc): Centralize lookup and caching of cursor GC's here. * gtk/gtkentry.[ch] gtk/gtktextview.[ch] gtk/gtktextdisplay.c gtk/gtklabel.c: Move to using _gtk_get_insertion_cursor_gc(). * gtk/gtkentry.c (gtk_entry_expose): Draw cursors under the text, not over the text. * gtk/gtkwidget.c (gtk_widget_class_init): add a secondary-cursor-color property. * gtk/gtkwidget.c (gtk_widget_class_init): Decrease the default aspect ratio to 1/25 (0.04). * tests/testgtkrc (bell_duration): Comment out cursor color setting.
Diffstat (limited to 'gtk/gtkstyle.h')
-rw-r--r--gtk/gtkstyle.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/gtk/gtkstyle.h b/gtk/gtkstyle.h
index 844187466..ce4c3901c 100644
--- a/gtk/gtkstyle.h
+++ b/gtk/gtkstyle.h
@@ -882,12 +882,14 @@ void gtk_paint_string (GtkStyle *style,
const gchar *string);
#endif /* GTK_DISABLE_DEPRECATED */
-void _gtk_draw_insertion_cursor (GtkWidget *widget,
- GdkDrawable *drawable,
- GdkGC *gc,
- GdkRectangle *location,
- GtkTextDirection direction,
- gboolean draw_arrow);
+GdkGC *_gtk_get_insertion_cursor_gc (GtkWidget *widget,
+ gboolean is_primary);
+void _gtk_draw_insertion_cursor (GtkWidget *widget,
+ GdkDrawable *drawable,
+ GdkGC *gc,
+ GdkRectangle *location,
+ GtkTextDirection direction,
+ gboolean draw_arrow);
#ifdef __cplusplus
}