summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-08-13 09:09:22 -0400
committerMatthias Clasen <mclasen@redhat.com>2014-08-13 09:18:08 -0400
commit7450277708e23a54ae97959a4fda675edf902f49 (patch)
tree05ec651c32784eb47c3bd9429726d6a0720e3096 /gtk
parentfc09560d13674310d5c6dc4080a3c830ee66013d (diff)
downloadgtk+-7450277708e23a54ae97959a4fda675edf902f49.tar.gz
GtkTextView: Change draw_layer signature
Vfuncs should really take 'this' of the right type - the type that the vfunc is added in.
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtktextview.c4
-rw-r--r--gtk/gtktextview.h4
2 files changed, 4 insertions, 4 deletions
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index 4283f24a77..a3dee23a0c 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -5328,12 +5328,12 @@ draw_text (cairo_t *cr,
gtk_style_context_restore (context);
if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
- GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (widget, GTK_TEXT_VIEW_LAYER_BELOW, cr);
+ GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (text_view, GTK_TEXT_VIEW_LAYER_BELOW, cr);
gtk_text_view_paint (widget, cr);
if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
- GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (widget, GTK_TEXT_VIEW_LAYER_ABOVE, cr);
+ GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer (text_view, GTK_TEXT_VIEW_LAYER_ABOVE, cr);
}
static void
diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h
index aaa03562f8..1fdbcccc0b 100644
--- a/gtk/gtktextview.h
+++ b/gtk/gtktextview.h
@@ -139,8 +139,8 @@ struct _GtkTextViewClass
GtkTextBuffer * (* create_buffer) (GtkTextView *text_view);
- void (* draw_layer) (GtkWidget *widget,
- GtkTextViewLayer layer,
+ void (* draw_layer) (GtkTextView *text_view,
+ GtkTextViewLayer layer,
cairo_t *cr);
/* Padding for future expansion */