[glade] Fix prototype warning issues



commit ad06c50722a398349b3f1566e9bda3b6d62ea109
Author: Jasper St. Pierre <jstpierre mecheye net>
Date:   Mon Feb 25 14:28:57 2013 -0500

    Fix prototype warning issues

 gladeui/glade-editor.c                    |    4 ++--
 gladeui/glade-named-icon-chooser-dialog.c |    2 +-
 gladeui/glade-project.c                   |    2 +-
 gladeui/glade-utils.c                     |    4 ++--
 4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/gladeui/glade-editor.c b/gladeui/glade-editor.c
index 44f60cb..21c0448 100644
--- a/gladeui/glade-editor.c
+++ b/gladeui/glade-editor.c
@@ -351,8 +351,8 @@ glade_editor_on_docs_click (GtkButton *button, GladeEditor *editor)
     }
 }
 
- static GtkWidget *
-glade_editor_button_new ()
+static GtkWidget *
+glade_editor_button_new (void)
 {
   static GtkCssProvider *provider = NULL;
   GtkStyleContext *context;
diff --git a/gladeui/glade-named-icon-chooser-dialog.c b/gladeui/glade-named-icon-chooser-dialog.c
index dcc3c01..c27accb 100644
--- a/gladeui/glade-named-icon-chooser-dialog.c
+++ b/gladeui/glade-named-icon-chooser-dialog.c
@@ -1133,7 +1133,7 @@ button_toggled (GtkToggleButton * button, GladeNamedIconChooserDialog * dialog)
 }
 
 static GHashTable *
-create_standard_icon_quarks ()
+create_standard_icon_quarks (void)
 {
   GHashTable *table;
   GQuark quark;
diff --git a/gladeui/glade-project.c b/gladeui/glade-project.c
index 7d8bb15..cc3525b 100644
--- a/gladeui/glade-project.c
+++ b/gladeui/glade-project.c
@@ -1749,7 +1749,7 @@ glade_project_load (const gchar *path)
 #define GLADE_XML_COMMENT "Generated with "PACKAGE_NAME
 
 static gchar *
-glade_project_make_comment ()
+glade_project_make_comment (void)
 {
   time_t now = time (NULL);
   gchar *comment;
diff --git a/gladeui/glade-utils.c b/gladeui/glade-utils.c
index f98189a..e3bd35b 100644
--- a/gladeui/glade-utils.c
+++ b/gladeui/glade-utils.c
@@ -113,7 +113,7 @@ GType
 glade_util_get_type_from_name (const gchar *name, gboolean have_func)
 {
   static GModule *allsymbols = NULL;
-  GType (*get_type) ();
+  GType (*get_type) (void);
   GType type = 0;
   gchar *func_name = (gchar *) name;
 
@@ -155,7 +155,7 @@ glade_utils_get_pspec_from_funcname (const gchar *funcname)
 {
   static GModule *allsymbols = NULL;
   GParamSpec *pspec = NULL;
-  GParamSpec *(*get_pspec) () = NULL;
+  GParamSpec *(*get_pspec) (void) = NULL;
 
   if (!allsymbols)
     allsymbols = g_module_open (NULL, 0);


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