[gtksourceview] Rename LAST_SIGNAL or NUM_SIGNALS -> N_SIGNALS



commit 9a321bed36bbe08e0b2850628f94f687f19ea164
Author: Sébastien Wilmet <swilmet gnome org>
Date:   Mon Jun 13 12:06:19 2016 +0200

    Rename LAST_SIGNAL or NUM_SIGNALS -> N_SIGNALS
    
    To harmonize the name, and it'll be consistent with N_PROPERTIES when
    the latter will be added.

 .../words/gtksourcecompletionwordslibrary.c        |    4 ++--
 .../words/gtksourcecompletionwordsproposal.c       |    4 ++--
 gtksourceview/gtksourcebuffer.c                    |    4 ++--
 gtksourceview/gtksourcecompletion.c                |    4 ++--
 gtksourceview/gtksourcecompletioncontext.c         |    4 ++--
 gtksourceview/gtksourcecompletioninfo.c            |    4 ++--
 gtksourceview/gtksourcecompletionproposal.c        |    4 ++--
 gtksourceview/gtksourcegutterrenderer.c            |    4 ++--
 gtksourceview/gtksourcemarkattributes.c            |    4 ++--
 gtksourceview/gtksourceundomanager.c               |    4 ++--
 gtksourceview/gtksourceview.c                      |    4 ++--
 11 files changed, 22 insertions(+), 22 deletions(-)
---
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
index 8d80a28..7c99d6f 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordslibrary.c
@@ -28,7 +28,7 @@ enum
 {
        LOCK,
        UNLOCK,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
 struct _GtkSourceCompletionWordsLibraryPrivate
@@ -37,7 +37,7 @@ struct _GtkSourceCompletionWordsLibraryPrivate
        gboolean locked;
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionWordsLibrary, gtk_source_completion_words_library, 
G_TYPE_OBJECT)
 
diff --git a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c 
b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
index c37befa..b77da39 100644
--- a/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
+++ b/gtksourceview/completion-providers/words/gtksourcecompletionwordsproposal.c
@@ -30,10 +30,10 @@ struct _GtkSourceCompletionWordsProposalPrivate
 enum
 {
        UNUSED,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 static void gtk_source_completion_proposal_iface_init (gpointer g_iface, gpointer iface_data);
 
diff --git a/gtksourceview/gtksourcebuffer.c b/gtksourceview/gtksourcebuffer.c
index 291439f..23403f3 100644
--- a/gtksourceview/gtksourcebuffer.c
+++ b/gtksourceview/gtksourcebuffer.c
@@ -176,7 +176,7 @@ enum
        UNDO,
        REDO,
        BRACKET_MATCHED,
-       LAST_SIGNAL
+       N_SIGNALS
 };
 
 /* Properties */
@@ -223,7 +223,7 @@ struct _GtkSourceBufferPrivate
        guint implicit_trailing_newline : 1;
 };
 
-static guint buffer_signals[LAST_SIGNAL];
+static guint buffer_signals[N_SIGNALS];
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceBuffer, gtk_source_buffer, GTK_TYPE_TEXT_BUFFER)
 
diff --git a/gtksourceview/gtksourcecompletion.c b/gtksourceview/gtksourcecompletion.c
index 28f0d42..51fa972 100644
--- a/gtksourceview/gtksourcecompletion.c
+++ b/gtksourceview/gtksourcecompletion.c
@@ -125,7 +125,7 @@ enum
        MOVE_CURSOR,
        MOVE_PAGE,
 
-       LAST_SIGNAL
+       N_SIGNALS
 };
 
 enum
@@ -204,7 +204,7 @@ struct _GtkSourceCompletionPrivate
        guint show_icons : 1;
 };
 
-static guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[N_SIGNALS] = { 0 };
 
 static void    gtk_source_completion_buildable_interface_init (GtkBuildableIface *iface);
 
diff --git a/gtksourceview/gtksourcecompletioncontext.c b/gtksourceview/gtksourcecompletioncontext.c
index 57a3e3e..ec8fe31 100644
--- a/gtksourceview/gtksourcecompletioncontext.c
+++ b/gtksourceview/gtksourcecompletioncontext.c
@@ -92,10 +92,10 @@ enum
 enum
 {
        CANCELLED,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
-static guint context_signals[NUM_SIGNALS] = {0,};
+static guint context_signals[N_SIGNALS] = {0,};
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionContext, gtk_source_completion_context, 
G_TYPE_INITIALLY_UNOWNED)
 
diff --git a/gtksourceview/gtksourcecompletioninfo.c b/gtksourceview/gtksourcecompletioninfo.c
index f8130de..1814e43 100644
--- a/gtksourceview/gtksourcecompletioninfo.c
+++ b/gtksourceview/gtksourcecompletioninfo.c
@@ -79,10 +79,10 @@ struct _GtkSourceCompletionInfoPrivate
 enum
 {
        BEFORE_SHOW,
-       LAST_SIGNAL
+       N_SIGNALS
 };
 
-static guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[N_SIGNALS] = { 0 };
 
 G_DEFINE_TYPE_WITH_PRIVATE (GtkSourceCompletionInfo, gtk_source_completion_info, GTK_TYPE_WINDOW);
 
diff --git a/gtksourceview/gtksourcecompletionproposal.c b/gtksourceview/gtksourcecompletionproposal.c
index fceed87..390a657 100644
--- a/gtksourceview/gtksourcecompletionproposal.c
+++ b/gtksourceview/gtksourcecompletionproposal.c
@@ -50,10 +50,10 @@
 enum
 {
        CHANGED,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 typedef GtkSourceCompletionProposalIface GtkSourceCompletionProposalInterface;
 
diff --git a/gtksourceview/gtksourcegutterrenderer.c b/gtksourceview/gtksourcegutterrenderer.c
index 1afac57..bee8922 100644
--- a/gtksourceview/gtksourcegutterrenderer.c
+++ b/gtksourceview/gtksourcegutterrenderer.c
@@ -80,7 +80,7 @@ enum
        QUERY_TOOLTIP,
        QUERY_DATA,
        QUERY_ACTIVATABLE,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
 struct _GtkSourceGutterRendererPrivate
@@ -105,7 +105,7 @@ struct _GtkSourceGutterRendererPrivate
        guint visible : 1;
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 G_DEFINE_ABSTRACT_TYPE_WITH_PRIVATE (GtkSourceGutterRenderer, gtk_source_gutter_renderer, 
G_TYPE_INITIALLY_UNOWNED)
 
diff --git a/gtksourceview/gtksourcemarkattributes.c b/gtksourceview/gtksourcemarkattributes.c
index ba693d4..0f0c3f8 100644
--- a/gtksourceview/gtksourcemarkattributes.c
+++ b/gtksourceview/gtksourcemarkattributes.c
@@ -108,10 +108,10 @@ enum
 {
        QUERY_TOOLTIP_TEXT,
        QUERY_TOOLTIP_MARKUP,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 static void
 gtk_source_mark_attributes_finalize (GObject *object)
diff --git a/gtksourceview/gtksourceundomanager.c b/gtksourceview/gtksourceundomanager.c
index 78fc5d9..b5a0780 100644
--- a/gtksourceview/gtksourceundomanager.c
+++ b/gtksourceview/gtksourceundomanager.c
@@ -57,10 +57,10 @@ enum
 {
        CAN_UNDO_CHANGED,
        CAN_REDO_CHANGED,
-       NUM_SIGNALS
+       N_SIGNALS
 };
 
-static guint signals[NUM_SIGNALS] = {0,};
+static guint signals[N_SIGNALS] = {0,};
 
 typedef GtkSourceUndoManagerIface GtkSourceUndoManagerInterface;
 
diff --git a/gtksourceview/gtksourceview.c b/gtksourceview/gtksourceview.c
index bdf864d..44daac5 100644
--- a/gtksourceview/gtksourceview.c
+++ b/gtksourceview/gtksourceview.c
@@ -138,7 +138,7 @@ enum
        CHANGE_NUMBER,
        CHANGE_CASE,
        JOIN_LINES,
-       LAST_SIGNAL
+       N_SIGNALS
 };
 
 /* Properties */
@@ -215,7 +215,7 @@ struct _MarkCategory
        gint priority;
 };
 
-static guint signals[LAST_SIGNAL] = { 0 };
+static guint signals[N_SIGNALS] = { 0 };
 
 static void gtk_source_view_buildable_interface_init (GtkBuildableIface *iface);
 


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