[gtksourceview] Adapt to Gtk method signature change
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Adapt to Gtk method signature change
- Date: Thu, 14 Aug 2014 14:55:50 +0000 (UTC)
commit 9b3a138c42ca9f2f3cf3762695671dbd10c54741
Author: Paolo Borelli <pborelli gnome org>
Date: Thu Aug 14 16:54:14 2014 +0200
Adapt to Gtk method signature change
configure.ac | 2 +-
gtksourceview/gtksourceview.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 9f7cb38..dae2846 100644
--- a/configure.ac
+++ b/configure.ac
@@ -58,7 +58,7 @@ AC_CHECK_HEADERS([unistd.h])
# Dependencies
GLIB_REQUIRED_VERSION=2.37.3
-GTK_REQUIRED_VERSION=3.13.6
+GTK_REQUIRED_VERSION=3.13.7
LIBXML_REQUIRED_VERSION=2.6.0
GLADE_UI_REQUIRED=3.9
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 538e156..c0799ac 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -249,7 +249,7 @@ static void gtk_source_view_get_property (GObject *object,
static void gtk_source_view_style_updated (GtkWidget *widget);
static void gtk_source_view_realize (GtkWidget *widget);
static void gtk_source_view_update_style_scheme (GtkSourceView *view);
-static void gtk_source_view_draw_layer (GtkWidget *widget,
+static void gtk_source_view_draw_layer (GtkTextView *view,
GtkTextViewLayer layer,
cairo_t *cr);
@@ -2341,16 +2341,16 @@ gtk_source_view_paint_right_margin (GtkSourceView *view,
}
static void
-gtk_source_view_draw_layer (GtkWidget *widget,
+gtk_source_view_draw_layer (GtkTextView *text_view,
GtkTextViewLayer layer,
cairo_t *cr)
{
+ GtkWidget *widget;
GtkSourceView *view;
- GtkTextView *text_view;
double clip_x1, clip_y1, clip_x2, clip_y2;
- view = GTK_SOURCE_VIEW (widget);
- text_view = GTK_TEXT_VIEW (widget);
+ widget = GTK_WIDGET (text_view);
+ view = GTK_SOURCE_VIEW (text_view);
cairo_save (cr);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]