From fdab244e2ee44c9d317772aa24e423a0fd4e1bb8 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 12 Dec 2010 17:30:28 +0100
Subject: Rename local LdCanvas methods.
Use a "real" prefix, as GTK+ does.
---
src/ld-canvas.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/ld-canvas.c b/src/ld-canvas.c
index 3bd9401..029be25 100644
--- a/src/ld-canvas.c
+++ b/src/ld-canvas.c
@@ -93,7 +93,7 @@ static void ld_canvas_finalize (GObject *gobject);
static void on_adjustment_value_changed
(GtkAdjustment *adjustment, LdCanvas *self);
-static void ld_canvas_set_scroll_adjustments
+static void ld_canvas_real_set_scroll_adjustments
(LdCanvas *self, GtkAdjustment *horizontal, GtkAdjustment *vertical);
static gdouble ld_canvas_get_base_unit_in_px (GtkWidget *self);
@@ -123,6 +123,8 @@ ld_canvas_class_init (LdCanvasClass *klass)
object_class->set_property = ld_canvas_set_property;
object_class->finalize = ld_canvas_finalize;
+ klass->set_scroll_adjustments = ld_canvas_real_set_scroll_adjustments;
+
/**
* LdCanvas:document:
*
@@ -143,8 +145,6 @@ ld_canvas_class_init (LdCanvasClass *klass)
LD_TYPE_LIBRARY, G_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_DOCUMENT, pspec);
- klass->set_scroll_adjustments = ld_canvas_set_scroll_adjustments;
-
/**
* LdCanvas::set-scroll-adjustments:
* @horizontal: The horizontal #GtkAdjustment.
@@ -186,7 +186,7 @@ ld_canvas_finalize (GObject *gobject)
self = LD_CANVAS (gobject);
- ld_canvas_set_scroll_adjustments (self, NULL, NULL);
+ ld_canvas_real_set_scroll_adjustments (self, NULL, NULL);
if (self->priv->document)
g_object_unref (self->priv->document);
@@ -238,7 +238,7 @@ ld_canvas_set_property (GObject *object, guint property_id,
}
static void
-ld_canvas_set_scroll_adjustments (LdCanvas *self,
+ld_canvas_real_set_scroll_adjustments (LdCanvas *self,
GtkAdjustment *horizontal, GtkAdjustment *vertical)
{
/* TODO: Infinite canvas. */
--
cgit v1.2.3-70-g09d2