[latexila] Rename APP_NAME and APP_VERSION -> PACKAGE_NAME and PACKAGE_VERSION



commit 37c047fed523fd8db97398da7b1771b477316ccd
Author: SÃbastien Wilmet <swilmet gnome org>
Date:   Tue Aug 28 23:19:15 2012 +0200

    Rename APP_NAME and APP_VERSION -> PACKAGE_NAME and PACKAGE_VERSION

 README.in                 |    2 +-
 src/latexila.vala         |    2 +-
 src/main.vala             |    2 +-
 src/main_window.vala      |    2 +-
 src/main_window_file.vala |    2 +-
 src/templates.vala        |    8 ++++----
 vapi/config.vapi          |    4 ++--
 7 files changed, 11 insertions(+), 11 deletions(-)
---
diff --git a/README.in b/README.in
index ce028e9..ec94555 100644
--- a/README.in
+++ b/README.in
@@ -1,7 +1,7 @@
 General Information
 ===================
 
-This is the version @APP_VERSION@ of LaTeXila.
+This is the version @PACKAGE_VERSION@ of LaTeXila.
 LaTeXila is an Integrated LaTeX Environment for the GNOME desktop.
 
 LaTeXila is released under the GNU General Public License (GPL) version 3 or
diff --git a/src/latexila.vala b/src/latexila.vala
index 43fcad8..e49064f 100644
--- a/src/latexila.vala
+++ b/src/latexila.vala
@@ -26,7 +26,7 @@ public class Latexila : Gtk.Application
     public Latexila ()
     {
         Object (application_id: "org.gnome.latexila");
-        Environment.set_application_name (Config.APP_NAME);
+        Environment.set_application_name (Config.PACKAGE_NAME);
 
         connect_signals ();
         add_actions ();
diff --git a/src/main.vala b/src/main.vala
index 70b6719..29f789e 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -103,7 +103,7 @@ private CmdLineData parse_cmd_line_options (string[] args)
 
     if (show_version)
     {
-        stdout.printf ("%s %s\n", Config.APP_NAME, Config.APP_VERSION);
+        stdout.printf ("%s %s\n", Config.PACKAGE_NAME, Config.PACKAGE_VERSION);
         Process.exit (0);
     }
 
diff --git a/src/main_window.vala b/src/main_window.vala
index 4dcda5b..9e902d4 100644
--- a/src/main_window.vala
+++ b/src/main_window.vala
@@ -1164,7 +1164,7 @@ public class MainWindow : Window
 
         show_about_dialog (this,
             "program-name", "LaTeXila",
-            "version", Config.APP_VERSION,
+            "version", Config.PACKAGE_VERSION,
             "authors", authors,
             "artists", artists,
             "comments", comments,
diff --git a/src/main_window_file.vala b/src/main_window_file.vala
index 879c7d0..6d6d210 100644
--- a/src/main_window_file.vala
+++ b/src/main_window_file.vala
@@ -97,7 +97,7 @@ public class MainWindowFile
         recent_chooser.set_sort_type (RecentSortType.MRU);
 
         RecentFilter filter = new RecentFilter ();
-        filter.add_application (Config.APP_NAME);
+        filter.add_application (Config.PACKAGE_NAME);
         recent_chooser.set_filter (filter);
 
         recent_chooser.item_activated.connect ((chooser) =>
diff --git a/src/templates.vala b/src/templates.vala
index 0cbf026..e32c0f4 100644
--- a/src/templates.vala
+++ b/src/templates.vala
@@ -97,8 +97,8 @@ public class Templates : GLib.Object
             key_file.load_from_file (_rc_file.get_path (), KeyFileFlags.NONE);
 
             // get the names and the icons
-            names = key_file.get_string_list (Config.APP_NAME, "names");
-            icons = key_file.get_string_list (Config.APP_NAME, "icons");
+            names = key_file.get_string_list (Config.PACKAGE_NAME, "names");
+            icons = key_file.get_string_list (Config.PACKAGE_NAME, "icons");
         }
         catch (Error e)
         {
@@ -266,8 +266,8 @@ public class Templates : GLib.Object
 
         // Contents of the rc file
         KeyFile key_file = new KeyFile ();
-        key_file.set_string_list (Config.APP_NAME, "names", names);
-        key_file.set_string_list (Config.APP_NAME, "icons", icons);
+        key_file.set_string_list (Config.PACKAGE_NAME, "names", names);
+        key_file.set_string_list (Config.PACKAGE_NAME, "icons", icons);
 
         string key_file_data = key_file.to_data ();
 
diff --git a/vapi/config.vapi b/vapi/config.vapi
index 4faf2b6..2d7fb2e 100644
--- a/vapi/config.vapi
+++ b/vapi/config.vapi
@@ -1,8 +1,8 @@
 [CCode (prefix = "", lower_case_cprefix = "", cheader_filename = "config.h")]
 namespace Config
 {
-    public const string APP_NAME;
-    public const string APP_VERSION;
+    public const string PACKAGE_NAME;
+    public const string PACKAGE_VERSION;
     public const string DATA_DIR;
     public const string LOCALE_DIR;
     public const string GETTEXT_PACKAGE;



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