Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sun, 08 Jul 2012 14:42:53 Commit: 4f78338915e3c77196b403a253b89d81f3ae3124 https://github.com/geany/geany-plugins/commit/4f78338915e3c77196b403a253b89d...
Log Message: ----------- geanyprj: Use proper C prototypes for functions without arguments
Modified Paths: -------------- geanyprj/src/geanyprj.c geanyprj/src/menu.c geanyprj/src/project.c geanyprj/src/sidebar.c geanyprj/src/xproject.c
Modified: geanyprj/src/geanyprj.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -56,7 +56,7 @@ enum PLUGIN_KEY_GROUP(geanyprj, KB_COUNT)
-static void reload_project() +static void reload_project(void) { gchar *dir; gchar *proj; @@ -131,7 +131,7 @@ static void on_doc_activate(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED GeanyDocum
/* Keybinding callback */ -static void kb_find_in_project() +static void kb_find_in_project(void) { on_find_in_project(NULL, NULL); } @@ -250,7 +250,7 @@ GtkWidget *plugin_configure(GtkDialog *dialog)
/* Called by Geany before unloading the plugin. */ -void plugin_cleanup() +void plugin_cleanup(void) { tools_menu_uninit();
Modified: geanyprj/src/menu.c 6 files changed, 3 insertions(+), 3 deletions(-) =================================================================== @@ -335,7 +335,7 @@ void on_find_in_project(G_GNUC_UNUSED GtkMenuItem *menuitem, G_GNUC_UNUSED gpoin }
-static void update_menu_items() +static void update_menu_items(void) { gboolean cur_file_exists; gboolean badd_file; @@ -361,7 +361,7 @@ static void update_menu_items() }
-void tools_menu_init() +void tools_menu_init(void) { GtkWidget *item, *image;
@@ -436,7 +436,7 @@ void tools_menu_init() }
-void tools_menu_uninit() +void tools_menu_uninit(void) { gtk_widget_destroy(plugin_fields->menu_item); }
Modified: geanyprj/src/project.c 2 files changed, 1 insertions(+), 1 deletions(-) =================================================================== @@ -90,7 +90,7 @@ static void free_tag_object(gpointer obj) }
-struct GeanyPrj *geany_project_new() +struct GeanyPrj *geany_project_new(void) { struct GeanyPrj *ret;
Modified: geanyprj/src/sidebar.c 14 files changed, 7 insertions(+), 7 deletions(-) =================================================================== @@ -113,7 +113,7 @@ static gboolean on_button_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventButton }
-static GtkWidget *make_toolbar() +static GtkWidget *make_toolbar(void) { GtkWidget *toolbar;
@@ -163,7 +163,7 @@ static gboolean on_key_press(G_GNUC_UNUSED GtkWidget *widget, GdkEventKey *event }
-static GtkWidget *create_popup_menu() +static GtkWidget *create_popup_menu(void) { GtkWidget *item, *menu, *image;
@@ -303,7 +303,7 @@ static gboolean on_button_release(G_GNUC_UNUSED GtkWidget *widget, GdkEventButto }
-static void prepare_file_view() +static void prepare_file_view(void) { GtkCellRenderer *text_renderer; GtkTreeViewColumn *column; @@ -342,7 +342,7 @@ static void prepare_file_view() }
-void sidebar_clear() +void sidebar_clear(void) { gtk_list_store_clear(file_store); } @@ -408,7 +408,7 @@ static void add_item(gpointer name, G_GNUC_UNUSED gpointer value, gpointer user_
/* recreate the tree model from current_dir */ -void sidebar_refresh() +void sidebar_refresh(void) { GtkTreeIter iter; GSList *lst = NULL; @@ -434,7 +434,7 @@ void sidebar_refresh() }
-void create_sidebar() +void create_sidebar(void) { GtkWidget *scrollwin, *toolbar;
@@ -457,7 +457,7 @@ void create_sidebar() }
-void destroy_sidebar() +void destroy_sidebar(void) { if (file_view_vbox) gtk_widget_destroy(file_view_vbox);
Modified: geanyprj/src/xproject.c 4 files changed, 2 insertions(+), 2 deletions(-) =================================================================== @@ -176,14 +176,14 @@ gboolean xproject_remove_file(const gchar *path) }
-void xproject_init() +void xproject_init(void) { g_projects = g_ptr_array_sized_new(10); g_current_project = NULL; }
-void xproject_cleanup() +void xproject_cleanup(void) { guint i; for (i = 0; i < g_projects->len; i++)
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).
plugins-commits@lists.geany.org