[gtksourceview/gnome-3-18] Coding style fixes
- From: Paolo Borelli <pborelli src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview/gnome-3-18] Coding style fixes
- Date: Sat, 23 Apr 2016 12:35:53 +0000 (UTC)
commit 2b646b409d5b5c9948e535097bc7af6251f04d91
Author: Sébastien Wilmet <swilmet gnome org>
Date: Tue Apr 19 17:31:07 2016 +0200
Coding style fixes
gtksourceview/gtksourcegutter-private.h | 10 +++++-----
gtksourceview/gtksourcegutterrenderertext.c | 4 ++++
gtksourceview/gtksourceview.c | 2 +-
3 files changed, 10 insertions(+), 6 deletions(-)
---
diff --git a/gtksourceview/gtksourcegutter-private.h b/gtksourceview/gtksourcegutter-private.h
index 460e38e..e31131d 100644
--- a/gtksourceview/gtksourcegutter-private.h
+++ b/gtksourceview/gtksourcegutter-private.h
@@ -28,13 +28,13 @@
G_BEGIN_DECLS
G_GNUC_INTERNAL
-GtkSourceGutter *gtk_source_gutter_new (GtkSourceView *view,
- GtkTextWindowType type);
+GtkSourceGutter * gtk_source_gutter_new (GtkSourceView *view,
+ GtkTextWindowType type);
G_GNUC_INTERNAL
-void gtk_source_gutter_draw (GtkSourceGutter *gutter,
- GtkSourceView *view,
- cairo_t *cr);
+void gtk_source_gutter_draw (GtkSourceGutter *gutter,
+ GtkSourceView *view,
+ cairo_t *cr);
G_END_DECLS
diff --git a/gtksourceview/gtksourcegutterrenderertext.c b/gtksourceview/gtksourcegutterrenderertext.c
index e1e12d1..2cc6fbf 100644
--- a/gtksourceview/gtksourcegutterrenderertext.c
+++ b/gtksourceview/gtksourcegutterrenderertext.c
@@ -151,9 +151,13 @@ gutter_renderer_text_draw (GtkSourceGutterRenderer *renderer,
/* Avoid calculations if we don't wrap text */
if (gtk_text_view_get_wrap_mode (view) == GTK_WRAP_NONE)
+ {
mode = GTK_SOURCE_GUTTER_RENDERER_ALIGNMENT_MODE_CELL;
+ }
else
+ {
mode = gtk_source_gutter_renderer_get_alignment_mode (renderer);
+ }
switch (mode)
{
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 637e8a3..81484a3 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -2952,7 +2952,7 @@ static gboolean
gtk_source_view_draw (GtkWidget *widget,
cairo_t *cr)
{
- GtkSourceView *view = (GtkSourceView *)widget;
+ GtkSourceView *view = GTK_SOURCE_VIEW (widget);
gboolean event_handled;
#ifdef ENABLE_PROFILE
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]