SF.net SVN: geany:[5947] trunk/src

ntrel at users.sourceforge.net ntrel at xxxxx
Thu Sep 22 15:55:11 UTC 2011


Revision: 5947
          http://geany.svn.sourceforge.net/geany/?rev=5947&view=rev
Author:   ntrel
Date:     2011-09-22 15:55:10 +0000 (Thu, 22 Sep 2011)
Log Message:
-----------
Move build_menu_prefs to keyfile.c, it's only used there.

Modified Paths:
--------------
    trunk/src/build.c
    trunk/src/build.h
    trunk/src/keyfile.c

Modified: trunk/src/build.c
===================================================================
--- trunk/src/build.c	2011-09-22 15:53:14 UTC (rev 5946)
+++ trunk/src/build.c	2011-09-22 15:55:10 UTC (rev 5947)
@@ -70,8 +70,6 @@
 
 GeanyBuildInfo build_info = {GEANY_GBG_FT, 0, 0, NULL, GEANY_FILETYPES_NONE, NULL, 0};
 
-GeanyBuildMenuPrefs build_menu_prefs;
-
 static gchar *current_dir_entered = NULL;
 
 typedef struct RunInfo

Modified: trunk/src/build.h
===================================================================
--- trunk/src/build.h	2011-09-22 15:53:14 UTC (rev 5946)
+++ trunk/src/build.h	2011-09-22 15:55:10 UTC (rev 5947)
@@ -158,15 +158,7 @@
 /* opaque pointers returned from build functions and passed back to them */
 typedef struct BuildTableFields *BuildTableData;
 
-typedef struct GeanyBuildMenuPrefs
-{
-	int number_ft_menu_items;
-	int number_non_ft_menu_items;
-	int number_exec_menu_items;
-} GeanyBuildMenuPrefs;
 
-extern GeanyBuildMenuPrefs build_menu_prefs;
-
 void build_init(void);
 
 void build_finalize(void);

Modified: trunk/src/keyfile.c
===================================================================
--- trunk/src/keyfile.c	2011-09-22 15:53:14 UTC (rev 5946)
+++ trunk/src/keyfile.c	2011-09-22 15:55:10 UTC (rev 5947)
@@ -98,7 +98,15 @@
 
 GPtrArray *pref_groups = NULL;
 
+static struct
+{
+	int number_ft_menu_items;
+	int number_non_ft_menu_items;
+	int number_exec_menu_items;
+}
+build_menu_prefs;
 
+
 /* The group will be free'd on quitting.
  * @param for_prefs_dialog is whether the group also has Prefs dialog items. */
 void configuration_add_pref_group(struct StashGroup *group, gboolean for_prefs_dialog)

This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Commits mailing list