gnome-commander r2196 - in branches/gcmd-1-3: libgcmd plugins/cvs plugins/fileroller plugins/test src



Author: epiotr
Date: Wed Oct 15 21:53:27 2008
New Revision: 2196
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2196&view=rev

Log:
Code cleanup

Modified:
   branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.c
   branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.h
   branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.c
   branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.h
   branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.c
   branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.h
   branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.c
   branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.h
   branches/gcmd-1-3/plugins/cvs/interface.c
   branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c
   branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.h
   branches/gcmd-1-3/plugins/test/test-plugin.c
   branches/gcmd-1-3/plugins/test/test-plugin.h
   branches/gcmd-1-3/src/gnome-cmd-bookmark-dialog.cc

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.c
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.c	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.c	Wed Oct 15 21:53:27 2008
@@ -118,7 +118,7 @@
  * Public functions
  ***********************************/
 
-GtkType gnome_cmd_dialog_get_type (void)
+GtkType gnome_cmd_dialog_get_type ()
 {
     static GtkType dlg_type = 0;
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.h
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.h	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-dialog.h	Wed Oct 15 21:53:27 2008
@@ -57,7 +57,7 @@
 
 void gnome_cmd_dialog_setup (GnomeCmdDialog *dialog, const gchar *title);
 
-GtkType gnome_cmd_dialog_get_type (void);
+GtkType gnome_cmd_dialog_get_type ();
 
 GtkWidget *gnome_cmd_dialog_add_button (GnomeCmdDialog *dialog, const gchar *stock_id, GtkSignalFunc on_click, gpointer data);
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.c
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.c	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.c	Wed Oct 15 21:53:27 2008
@@ -79,7 +79,7 @@
  ***********************************/
 
 GtkType
-gnome_cmd_file_info_get_type         (void)
+gnome_cmd_file_info_get_type ()
 {
     static GtkType type = 0;
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.h
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.h	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-file-info.h	Wed Oct 15 21:53:27 2008
@@ -48,7 +48,7 @@
 };
 
 
-GtkType gnome_cmd_file_info_get_type (void);
+GtkType gnome_cmd_file_info_get_type ();
 
 void gnome_cmd_file_info_setup (GnomeCmdFileInfo *finfo, GnomeVFSURI *uri, GnomeVFSFileInfo *info);
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.c
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.c	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.c	Wed Oct 15 21:53:27 2008
@@ -74,7 +74,7 @@
  ***********************************/
 
 GtkType
-gnome_cmd_plugin_get_type         (void)
+gnome_cmd_plugin_get_type ()
 {
     static GtkType type = 0;
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.h
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.h	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-plugin.h	Wed Oct 15 21:53:27 2008
@@ -54,7 +54,7 @@
 };
 
 
-GtkType gnome_cmd_plugin_get_type (void);
+GtkType gnome_cmd_plugin_get_type ();
 
 GtkWidget *gnome_cmd_plugin_create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state);
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.c
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.c	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.c	Wed Oct 15 21:53:27 2008
@@ -159,7 +159,7 @@
  ***********************************/
 
 GtkType
-gnome_cmd_string_dialog_get_type         (void)
+gnome_cmd_string_dialog_get_type ()
 {
     static GtkType dlg_type = 0;
 

Modified: branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.h
==============================================================================
--- branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.h	(original)
+++ branches/gcmd-1-3/libgcmd/gnome-cmd-string-dialog.h	Wed Oct 15 21:53:27 2008
@@ -92,7 +92,7 @@
                                GnomeCmdStringDialogCallback ok_cb,
                                gpointer user_data);
 
-GtkType gnome_cmd_string_dialog_get_type (void);
+GtkType gnome_cmd_string_dialog_get_type ();
 
 void gnome_cmd_string_dialog_set_hidden (GnomeCmdStringDialog *dialog, gint row, gboolean hidden);
 

Modified: branches/gcmd-1-3/plugins/cvs/interface.c
==============================================================================
--- branches/gcmd-1-3/plugins/cvs/interface.c	(original)
+++ branches/gcmd-1-3/plugins/cvs/interface.c	Wed Oct 15 21:53:27 2008
@@ -523,7 +523,7 @@
         gtk_clist_set_row_data (GTK_CLIST (rev_list), row, rev);
     }
 
-    gtk_signal_connect (GTK_OBJECT (rev_list), "select_row",
+    gtk_signal_connect (GTK_OBJECT (rev_list), "select-row",
                         GTK_SIGNAL_FUNC (on_rev_list_select_row), log_history);
 
     gtk_clist_select_row (GTK_CLIST (rev_list), 0, 0);

Modified: branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c
==============================================================================
--- branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c	(original)
+++ branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.c	Wed Oct 15 21:53:27 2008
@@ -430,7 +430,7 @@
  ***********************************/
 
 GtkType
-file_roller_plugin_get_type         (void)
+file_roller_plugin_get_type ()
 {
     static GtkType type = 0;
 
@@ -455,7 +455,7 @@
 
 
 GnomeCmdPlugin *
-file_roller_plugin_new (void)
+file_roller_plugin_new ()
 {
     FileRollerPlugin *plugin = gtk_type_new (file_roller_plugin_get_type ());
 
@@ -463,13 +463,13 @@
 }
 
 
-GnomeCmdPlugin *create_plugin (void)
+GnomeCmdPlugin *create_plugin ()
 {
     return file_roller_plugin_new ();
 }
 
 
-PluginInfo *get_plugin_info (void)
+PluginInfo *get_plugin_info ()
 {
     if (!plugin_nfo.authors)
     {

Modified: branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.h
==============================================================================
--- branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.h	(original)
+++ branches/gcmd-1-3/plugins/fileroller/file-roller-plugin.h	Wed Oct 15 21:53:27 2008
@@ -49,10 +49,10 @@
 
 
 GtkType
-file_roller_plugin_get_type (void);
+file_roller_plugin_get_type ();
 
 GnomeCmdPlugin *
-file_roller_plugin_new (void);
+file_roller_plugin_new ();
 
 G_END_DECLS
 

Modified: branches/gcmd-1-3/plugins/test/test-plugin.c
==============================================================================
--- branches/gcmd-1-3/plugins/test/test-plugin.c	(original)
+++ branches/gcmd-1-3/plugins/test/test-plugin.c	Wed Oct 15 21:53:27 2008
@@ -52,15 +52,13 @@
 static GnomeCmdPluginClass *parent_class = NULL;
 
 
-static void
-on_dummy (GtkMenuItem *item, gpointer data)
+static void on_dummy (GtkMenuItem *item, gpointer data)
 {
     gnome_ok_dialog ("Test plugin dummy operation");
 }
 
 
-static GtkWidget *
-create_menu_item (const gchar *name, gboolean show_pixmap,
+static GtkWidget *create_menu_item (const gchar *name, gboolean show_pixmap,
                   GtkSignalFunc callback, gpointer data)
 {
     GtkWidget *item, *label;
@@ -99,8 +97,7 @@
 }
 
 
-static GtkWidget *
-create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GtkWidget *create_main_menu (GnomeCmdPlugin *plugin, GnomeCmdState *state)
 {
     GtkWidget *item, *child;
     GtkMenu *submenu;
@@ -117,11 +114,9 @@
 }
 
 
-static GList *
-create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
+static GList *create_popup_menu_items (GnomeCmdPlugin *plugin, GnomeCmdState *state)
 {
-    GtkWidget *item = create_menu_item (
-        "Test plugin dummy operation", TRUE, GTK_SIGNAL_FUNC (on_dummy), state);
+    GtkWidget *item = create_menu_item ("Test plugin dummy operation", TRUE, GTK_SIGNAL_FUNC (on_dummy), state);
     return g_list_append (NULL, item);
 }
 
@@ -155,8 +150,7 @@
 }
 
 
-static void
-class_init (TestPluginClass *klass)
+static void class_init (TestPluginClass *klass)
 {
     GtkObjectClass *object_class;
     GnomeCmdPluginClass *plugin_class;
@@ -174,8 +168,7 @@
 }
 
 
-static void
-init (TestPlugin *plugin)
+static void init (TestPlugin *plugin)
 {
     plugin->priv = g_new (TestPluginPrivate, 1);
 }
@@ -187,7 +180,7 @@
  ***********************************/
 
 GtkType
-test_plugin_get_type         (void)
+test_plugin_get_type ()
 {
     static GtkType type = 0;
 
@@ -211,8 +204,7 @@
 }
 
 
-GnomeCmdPlugin *
-test_plugin_new (void)
+GnomeCmdPlugin *test_plugin_new ()
 {
     TestPlugin *plugin;
 
@@ -222,13 +214,13 @@
 }
 
 
-GnomeCmdPlugin *create_plugin (void)
+GnomeCmdPlugin *create_plugin ()
 {
     return test_plugin_new ();
 }
 
 
-PluginInfo *get_plugin_info (void)
+PluginInfo *get_plugin_info ()
 {
     if (!plugin_nfo.authors)
     {

Modified: branches/gcmd-1-3/plugins/test/test-plugin.h
==============================================================================
--- branches/gcmd-1-3/plugins/test/test-plugin.h	(original)
+++ branches/gcmd-1-3/plugins/test/test-plugin.h	Wed Oct 15 21:53:27 2008
@@ -49,10 +49,10 @@
 
 
 GtkType
-test_plugin_get_type (void);
+test_plugin_get_type ();
 
 GnomeCmdPlugin *
-test_plugin_new (void);
+test_plugin_new ();
 
 G_END_DECLS
 

Modified: branches/gcmd-1-3/src/gnome-cmd-bookmark-dialog.cc
==============================================================================
--- branches/gcmd-1-3/src/gnome-cmd-bookmark-dialog.cc	(original)
+++ branches/gcmd-1-3/src/gnome-cmd-bookmark-dialog.cc	Wed Oct 15 21:53:27 2008
@@ -499,7 +499,7 @@
 
     gtk_signal_connect (GTK_OBJECT (dialog), "key-press-event",
                         GTK_SIGNAL_FUNC (on_dialog_keypress), dialog);
-    gtk_signal_connect_after (GTK_OBJECT (in_dialog->priv->dir_list), "scroll_vertical",
+    gtk_signal_connect_after (GTK_OBJECT (in_dialog->priv->dir_list), "scroll-vertical",
                               GTK_SIGNAL_FUNC (on_scroll_vertical), NULL);
     gtk_signal_connect (GTK_OBJECT (in_dialog->priv->dir_list), "unselect-row",
                         GTK_SIGNAL_FUNC (on_dir_unselected), dialog);



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