Rename local LdCanvas methods.

Use a "real" prefix, as GTK+ does.
This commit is contained in:
Přemysl Eric Janouch 2010-12-12 17:30:28 +01:00
parent f9dbe12971
commit fdab244e2e
1 changed files with 5 additions and 5 deletions

View File

@ -93,7 +93,7 @@ static void ld_canvas_finalize (GObject *gobject);
static void on_adjustment_value_changed static void on_adjustment_value_changed
(GtkAdjustment *adjustment, LdCanvas *self); (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); (LdCanvas *self, GtkAdjustment *horizontal, GtkAdjustment *vertical);
static gdouble ld_canvas_get_base_unit_in_px (GtkWidget *self); 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->set_property = ld_canvas_set_property;
object_class->finalize = ld_canvas_finalize; object_class->finalize = ld_canvas_finalize;
klass->set_scroll_adjustments = ld_canvas_real_set_scroll_adjustments;
/** /**
* LdCanvas:document: * LdCanvas:document:
* *
@ -143,8 +145,6 @@ ld_canvas_class_init (LdCanvasClass *klass)
LD_TYPE_LIBRARY, G_PARAM_READWRITE); LD_TYPE_LIBRARY, G_PARAM_READWRITE);
g_object_class_install_property (object_class, PROP_DOCUMENT, pspec); g_object_class_install_property (object_class, PROP_DOCUMENT, pspec);
klass->set_scroll_adjustments = ld_canvas_set_scroll_adjustments;
/** /**
* LdCanvas::set-scroll-adjustments: * LdCanvas::set-scroll-adjustments:
* @horizontal: The horizontal #GtkAdjustment. * @horizontal: The horizontal #GtkAdjustment.
@ -186,7 +186,7 @@ ld_canvas_finalize (GObject *gobject)
self = LD_CANVAS (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) if (self->priv->document)
g_object_unref (self->priv->document); g_object_unref (self->priv->document);
@ -238,7 +238,7 @@ ld_canvas_set_property (GObject *object, guint property_id,
} }
static void static void
ld_canvas_set_scroll_adjustments (LdCanvas *self, ld_canvas_real_set_scroll_adjustments (LdCanvas *self,
GtkAdjustment *horizontal, GtkAdjustment *vertical) GtkAdjustment *horizontal, GtkAdjustment *vertical)
{ {
/* TODO: Infinite canvas. */ /* TODO: Infinite canvas. */