[gtksourceview] Save some bits.



commit 48ce471fd9630bc0709246bde1c749ae5296ce18
Author: Ignacio Casal Quinteiro <icq gnome org>
Date:   Wed Jan 12 13:56:03 2011 +0100

    Save some bits.

 gtksourceview/gtksourceview.c |   35 +++++++++++++++++------------------
 gtksourceview/gtksourceview.h |    2 +-
 2 files changed, 18 insertions(+), 19 deletions(-)
---
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index 8a7095d..b7d4e14 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -120,22 +120,6 @@ enum {
 
 struct _GtkSourceViewPrivate
 {
-	guint		 tab_width;
-	gboolean	 tabs_set;
-	gint		 indent_width;
-	gboolean 	 show_line_numbers;
-	gboolean	 show_line_marks;
-	gboolean	 auto_indent;
-	gboolean	 insert_spaces;
-	gboolean	 highlight_current_line;
-	gboolean	 indent_on_tab;
-	GtkSourceSmartHomeEndType smart_home_end;
-
-	gboolean	 show_right_margin;
-	guint		 right_margin_pos;
-	gint             cached_right_margin_pos;
-
-	gboolean	 style_scheme_applied;
 	GtkSourceStyleScheme *style_scheme;
 	GdkRGBA         *right_margin_line_color;
 	GdkRGBA         *right_margin_overlay_color;
@@ -160,6 +144,21 @@ struct _GtkSourceViewPrivate
 	gulong           notify_buffer_id;
 	gint             num_line_digits;
 
+	guint		 right_margin_pos;
+	gint             cached_right_margin_pos;
+	guint		 tab_width;
+	gint		 indent_width;
+	GtkSourceSmartHomeEndType smart_home_end;
+
+	guint            tabs_set : 1;
+	guint            show_line_numbers : 1;
+	guint            show_line_marks : 1;
+	guint            auto_indent : 1;
+	guint            insert_spaces : 1;
+	guint            highlight_current_line : 1;
+	guint            indent_on_tab : 1;
+	guint            show_right_margin  : 1;
+	guint            style_scheme_applied : 1;
 	guint            current_line_color_set : 1;
 	guint            dispose_has_run : 1;
 };
@@ -3721,9 +3720,9 @@ gtk_source_view_get_highlight_current_line (GtkSourceView *view)
 /**
  * gtk_source_view_set_highlight_current_line:
  * @view: a #GtkSourceView.
- * @show: whether to highlight the current line.
+ * @hl: whether to highlight the current line.
  *
- * If @show is %TRUE the current line is highlighted.
+ * If @hl is %TRUE the current line is highlighted.
  **/
 void
 gtk_source_view_set_highlight_current_line (GtkSourceView *view, gboolean hl)
diff --git a/gtksourceview/gtksourceview.h b/gtksourceview/gtksourceview.h
index 181e356..c31bdb7 100644
--- a/gtksourceview/gtksourceview.h
+++ b/gtksourceview/gtksourceview.h
@@ -175,7 +175,7 @@ gboolean	 gtk_source_view_get_indent_on_tab 	(GtkSourceView   *view);
 
 void		 gtk_source_view_set_highlight_current_line
 							(GtkSourceView   *view,
-							 gboolean         show);
+							 gboolean         hl);
 gboolean 	 gtk_source_view_get_highlight_current_line
 							(GtkSourceView   *view);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]