diff options
author | Owen Taylor <otaylor@redhat.com> | 2002-02-14 21:49:02 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2002-02-14 21:49:02 +0000 |
commit | 8f5c2c76253447124abc6cf33b69ad53492f6184 (patch) | |
tree | ebf719a9dc960ad37d81f4e94f1dfebcd5e9a2a3 /gtk/gtktextview.c | |
parent | f412d947c5162435f899dc9e5751a67a924e2fe6 (diff) | |
download | gtk+-8f5c2c76253447124abc6cf33b69ad53492f6184.tar.gz |
Patch from Bill Haneman and Padraig O'Briain to add cursor_aspect_ratio
Thu Feb 14 16:46:48 2002 Owen Taylor <otaylor@redhat.com>
* gtk/gtkentry.c gtk/gtktextdisplay.c gtk/gtklabel.c
gtk/gtkstyle.[ch] gtk/gtkwidget.c: Patch from Bill
Haneman and Padraig O'Briain to add cursor_aspect_ratio
style property to GtkWidget to allow theming the aspect
ratio of the cursor.
* gtk/gtkentry.c gtk/gtktextview.c gtk/gtklabel.c
gtk/gtkwidget.c tests/testgtkrc: Move cursor-color style property
to GtkWidget.
Diffstat (limited to 'gtk/gtktextview.c')
-rw-r--r-- | gtk/gtktextview.c | 16 |
1 files changed, 2 insertions, 14 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 1ed23146a4..f158456016 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -326,7 +326,7 @@ static void gtk_text_view_remove (GtkContainer *container, GtkWidget *child); static void gtk_text_view_forall (GtkContainer *container, gboolean include_internals, - GtkCallback callback, + GtkCallback callback, gpointer callback_data); /* FIXME probably need the focus methods. */ @@ -634,18 +634,6 @@ gtk_text_view_class_init (GtkTextViewClass *klass) /* - * Style properties - */ - - gtk_widget_class_install_style_property (widget_class, - g_param_spec_boxed ("cursor_color", - _("Cursor color"), - _("Color with which to draw insertion cursor"), - GDK_TYPE_COLOR, - G_PARAM_READABLE)); - - - /* * Signals */ @@ -3270,7 +3258,7 @@ gtk_text_view_realize_cursor_gc (GtkTextView *text_view) if (text_view->cursor_gc) gdk_gc_unref (text_view->cursor_gc); - gtk_widget_style_get (GTK_WIDGET (text_view), "cursor_color", &cursor_color, NULL); + gtk_widget_style_get (GTK_WIDGET (text_view), "cursor-color", &cursor_color, NULL); if (!cursor_color) cursor_color = &red; |