[gedit/wip/gtkapp-actions: 3/10] Move get_line_column_position() in gedit.c



commit ec147248281b991b594771591c7fe770e87021a4
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Fri Aug 3 07:27:18 2012 +0200

    Move get_line_column_position() in gedit.c

 gedit/gedit-app.c |   24 ------------------------
 gedit/gedit.c     |   25 +++++++++++++++++++++++++
 2 files changed, 25 insertions(+), 24 deletions(-)
---
diff --git a/gedit/gedit-app.c b/gedit/gedit-app.c
index 4326805..76518a9 100644
--- a/gedit/gedit-app.c
+++ b/gedit/gedit-app.c
@@ -352,31 +352,7 @@ gedit_app_startup (GApplication *application)
 	peas_extension_set_foreach (app->priv->extensions,
 	                            (PeasExtensionSetForeachFunc) extension_added,
 	                            app);
-}
-
-static void
-get_line_column_position (const gchar      *arg,
-                          gint             *line,
-                          gint             *column)
-{
-	gchar **split;
-
-	split = g_strsplit (arg, ":", 2);
-
-	if (split != NULL)
-	{
-		if (split[0] != NULL)
-		{
-			*line = atoi (split[0]);
-		}
-
-		if (split[1] != NULL)
-		{
-			*column = atoi (split[1]);
-		}
-	}
 
-	g_strfreev (split);
 }
 
 static void
diff --git a/gedit/gedit.c b/gedit/gedit.c
index 2243d41..ac07a65 100644
--- a/gedit/gedit.c
+++ b/gedit/gedit.c
@@ -36,6 +36,31 @@
 
 #include "gedit-app.h"
 
+static void
+get_line_column_position (const gchar *arg,
+                          gint        *line,
+                          gint        *column)
+{
+	gchar **split;
+
+	split = g_strsplit (arg, ":", 2);
+
+	if (split != NULL)
+	{
+		if (split[0] != NULL)
+		{
+			*line = atoi (split[0]);
+		}
+
+		if (split[1] != NULL)
+		{
+			*column = atoi (split[1]);
+		}
+	}
+
+	g_strfreev (split);
+}
+
 int
 main (int argc, char *argv[])
 {



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