[gtksourceview/wip/gutter: 2/3] Gutter: prefix private functions with an underscore
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/wip/gutter: 2/3] Gutter: prefix private functions with an underscore
- Date: Fri, 21 Oct 2016 15:00:22 +0000 (UTC)
commit a35e88bb0f9cfbea76f301242ffde180b13235ed
Author: Sébastien Wilmet <swilmet gnome org>
Date: Fri Oct 21 16:38:31 2016 +0200
Gutter: prefix private functions with an underscore
To distinguish them from public functions.
gtksourceview/gtksourcegutter-private.h | 4 ++--
gtksourceview/gtksourcegutter.c | 10 +++++-----
gtksourceview/gtksourceview.c | 8 ++++----
3 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter-private.h b/gtksourceview/gtksourcegutter-private.h
index a9554f1..5cb1bc0 100644
--- a/gtksourceview/gtksourcegutter-private.h
+++ b/gtksourceview/gtksourcegutter-private.h
@@ -28,11 +28,11 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL
-GtkSourceGutter * gtk_source_gutter_new (GtkSourceView *view,
+GtkSourceGutter * _gtk_source_gutter_new (GtkSourceView *view,
GtkTextWindowType type);
G_GNUC_INTERNAL
-void gtk_source_gutter_draw (GtkSourceGutter *gutter,
+void _gtk_source_gutter_draw (GtkSourceGutter *gutter,
GtkSourceView *view,
cairo_t *cr);
diff --git a/gtksourceview/gtksourcegutter.c b/gtksourceview/gtksourcegutter.c
index 281def0..b124daa 100644
--- a/gtksourceview/gtksourcegutter.c
+++ b/gtksourceview/gtksourcegutter.c
@@ -603,8 +603,8 @@ append_renderer (GtkSourceGutter *gutter,
}
GtkSourceGutter *
-gtk_source_gutter_new (GtkSourceView *view,
- GtkTextWindowType type)
+_gtk_source_gutter_new (GtkSourceView *view,
+ GtkTextWindowType type)
{
return g_object_new (GTK_SOURCE_TYPE_GUTTER,
"view", view,
@@ -1221,9 +1221,9 @@ end_draw (GtkSourceGutter *gutter)
}
void
-gtk_source_gutter_draw (GtkSourceGutter *gutter,
- GtkSourceView *view,
- cairo_t *cr)
+_gtk_source_gutter_draw (GtkSourceGutter *gutter,
+ GtkSourceView *view,
+ cairo_t *cr)
{
GdkRectangle clip;
GtkTextView *text_view;
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index b533898..28ec45d 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -2734,12 +2734,12 @@ gtk_source_view_draw (GtkWidget *widget,
if (view->priv->left_gutter != NULL)
{
- gtk_source_gutter_draw (view->priv->left_gutter, view, cr);
+ _gtk_source_gutter_draw (view->priv->left_gutter, view, cr);
}
if (view->priv->right_gutter != NULL)
{
- gtk_source_gutter_draw (view->priv->right_gutter, view, cr);
+ _gtk_source_gutter_draw (view->priv->right_gutter, view, cr);
}
PROFILE ({
@@ -4840,7 +4840,7 @@ gtk_source_view_get_gutter (GtkSourceView *view,
{
if (view->priv->left_gutter == NULL)
{
- view->priv->left_gutter = gtk_source_gutter_new (view, window_type);
+ view->priv->left_gutter = _gtk_source_gutter_new (view, window_type);
}
return view->priv->left_gutter;
@@ -4849,7 +4849,7 @@ gtk_source_view_get_gutter (GtkSourceView *view,
{
if (view->priv->right_gutter == NULL)
{
- view->priv->right_gutter = gtk_source_gutter_new (view, window_type);
+ view->priv->right_gutter = _gtk_source_gutter_new (view, window_type);
}
return view->priv->right_gutter;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]