[geany/geany] 986c59: Use GeanyFiletypeGroupID enum in a few places
Matthew Brush
git-noreply at xxxxx
Wed Jan 29 01:16:50 UTC 2014
Branch: refs/heads/master
Author: Matthew Brush <matt at geany.org>
Committer: Matthew Brush <matt at geany.org>
Date: Wed, 29 Jan 2014 01:16:50 UTC
Commit: 986c59aecb06f3e727d7242368422745f6917775
https://github.com/geany/geany/commit/986c59aecb06f3e727d7242368422745f6917775
Log Message:
-----------
Use GeanyFiletypeGroupID enum in a few places
Also move the `group_menus` global variable to the top of the file
with the other globals.
Modified Paths:
--------------
src/filetypes.c
Modified: src/filetypes.c
8 files changed, 4 insertions(+), 4 deletions(-)
===================================================================
@@ -61,6 +61,8 @@
* @see filetypes_get_sorted_by_name(). */
GSList *filetypes_by_title = NULL;
+static GtkWidget *group_menus[GEANY_FILETYPE_GROUP_COUNT] = {NULL};
+
static void create_radio_menu_item(GtkWidget *menu, GeanyFiletype *ftype);
@@ -391,9 +393,7 @@ static void setup_config_file_menus(void)
}
-static GtkWidget *group_menus[GEANY_FILETYPE_GROUP_COUNT] = {NULL};
-
-static void create_sub_menu(GtkWidget *parent, gsize group_id, const gchar *title)
+static void create_sub_menu(GtkWidget *parent, GeanyFiletypeGroupID group_id, const gchar *title)
{
GtkWidget *menu, *item;
@@ -1359,7 +1359,7 @@ static void read_extensions(GKeyFile *sysconfig, GKeyFile *userconfig)
}
-static void read_group(GKeyFile *config, const gchar *group_name, gint group_id)
+static void read_group(GKeyFile *config, const gchar *group_name, GeanyFiletypeGroupID group_id)
{
gchar **names = g_key_file_get_string_list(config, "Groups", group_name, NULL, NULL);
gchar **name;
--------------
This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).
More information about the Commits
mailing list