summaryrefslogtreecommitdiff
path: root/gtk/gtkbuilderparser.c
diff options
context:
space:
mode:
authorBenjamin Otte <otte@redhat.com>2012-10-02 19:23:29 +0200
committerBenjamin Otte <otte@redhat.com>2012-10-02 19:32:51 +0200
commit12683da8f74e847392fff32d4b06dd2c50baa37c (patch)
tree2d340c4f85871d60404e6911062e6d08b54a83fc /gtk/gtkbuilderparser.c
parent48c6b3b4f4c7eaf99e10302d17e78838f1eac010 (diff)
downloadgtk+-12683da8f74e847392fff32d4b06dd2c50baa37c.tar.gz
gtk: Make functions static that don't need to be non-static
Also remove the starting underscore from function names where appropriate, as those functions are static now and not exported anymore. This is part of a bunch of fixes for gcc complaining about -Wmissing-declarations.
Diffstat (limited to 'gtk/gtkbuilderparser.c')
-rw-r--r--gtk/gtkbuilderparser.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gtk/gtkbuilderparser.c b/gtk/gtkbuilderparser.c
index 59c072104a..6344258905 100644
--- a/gtk/gtkbuilderparser.c
+++ b/gtk/gtkbuilderparser.c
@@ -641,9 +641,9 @@ _free_signal_info (SignalInfo *info,
g_slice_free (SignalInfo, info);
}
-void
-_free_requires_info (RequiresInfo *info,
- gpointer user_data)
+static void
+free_requires_info (RequiresInfo *info,
+ gpointer user_data)
{
g_free (info->library);
g_slice_free (RequiresInfo, info);
@@ -958,7 +958,7 @@ end_element (GMarkupParseContext *context,
req_info->major, req_info->minor,
GTK_MAJOR_VERSION, GTK_MINOR_VERSION);
}
- _free_requires_info (req_info, NULL);
+ free_requires_info (req_info, NULL);
}
else if (strcmp (element_name, "interface") == 0)
{
@@ -1110,7 +1110,7 @@ free_info (CommonInfo *info)
else if (strcmp (info->tag.name, "signal") == 0)
_free_signal_info ((SignalInfo *)info, NULL);
else if (strcmp (info->tag.name, "requires") == 0)
- _free_requires_info ((RequiresInfo *)info, NULL);
+ free_requires_info ((RequiresInfo *)info, NULL);
else if (strcmp (info->tag.name, "menu") == 0)
free_menu_info ((MenuInfo *)info);
else