GtkTextView: Change draw_layer signature
Vfuncs should really take 'this' of the right type - the type that the vfunc is added in.
This commit is contained in:
@ -5328,12 +5328,12 @@ draw_text (cairo_t *cr,
|
|||||||
gtk_style_context_restore (context);
|
gtk_style_context_restore (context);
|
||||||
|
|
||||||
if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
|
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);
|
gtk_text_view_paint (widget, cr);
|
||||||
|
|
||||||
if (GTK_TEXT_VIEW_GET_CLASS (text_view)->draw_layer != NULL)
|
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
|
static void
|
||||||
|
@ -139,8 +139,8 @@ struct _GtkTextViewClass
|
|||||||
|
|
||||||
GtkTextBuffer * (* create_buffer) (GtkTextView *text_view);
|
GtkTextBuffer * (* create_buffer) (GtkTextView *text_view);
|
||||||
|
|
||||||
void (* draw_layer) (GtkWidget *widget,
|
void (* draw_layer) (GtkTextView *text_view,
|
||||||
GtkTextViewLayer layer,
|
GtkTextViewLayer layer,
|
||||||
cairo_t *cr);
|
cairo_t *cr);
|
||||||
|
|
||||||
/* Padding for future expansion */
|
/* Padding for future expansion */
|
||||||
|
Reference in New Issue
Block a user