gnome-commander r2482 - trunk/src



Author: epiotr
Date: Thu Mar  5 22:35:06 2009
New Revision: 2482
URL: http://svn.gnome.org/viewvc/gnome-commander?rev=2482&view=rev

Log:
Code cleanup: 'struct _GnomeCmdXXX' -> 'struct GnomeCmdXxx'

Modified:
   trunk/src/eggcellrendererkeys.h
   trunk/src/gnome-cmd-about-plugin.cc
   trunk/src/gnome-cmd-about-plugin.h
   trunk/src/gnome-cmd-bookmark-dialog.cc
   trunk/src/gnome-cmd-bookmark-dialog.h
   trunk/src/gnome-cmd-chmod-component.cc
   trunk/src/gnome-cmd-chmod-component.h
   trunk/src/gnome-cmd-chmod-dialog.cc
   trunk/src/gnome-cmd-chmod-dialog.h
   trunk/src/gnome-cmd-chown-component.cc
   trunk/src/gnome-cmd-chown-component.h
   trunk/src/gnome-cmd-chown-dialog.cc
   trunk/src/gnome-cmd-chown-dialog.h
   trunk/src/gnome-cmd-clist.cc
   trunk/src/gnome-cmd-clist.h
   trunk/src/gnome-cmd-cmdline.cc
   trunk/src/gnome-cmd-cmdline.h
   trunk/src/gnome-cmd-combo.h
   trunk/src/gnome-cmd-con-device.cc
   trunk/src/gnome-cmd-con-device.h
   trunk/src/gnome-cmd-con-ftp.h
   trunk/src/gnome-cmd-con-home.cc
   trunk/src/gnome-cmd-con-home.h
   trunk/src/gnome-cmd-con-list.cc
   trunk/src/gnome-cmd-con-list.h
   trunk/src/gnome-cmd-con-smb.cc
   trunk/src/gnome-cmd-con-smb.h
   trunk/src/gnome-cmd-con.cc
   trunk/src/gnome-cmd-con.h
   trunk/src/gnome-cmd-data.h
   trunk/src/gnome-cmd-delete-dialog.h
   trunk/src/gnome-cmd-dir-indicator.cc
   trunk/src/gnome-cmd-dir-indicator.h
   trunk/src/gnome-cmd-dir.cc
   trunk/src/gnome-cmd-dir.h
   trunk/src/gnome-cmd-file-popmenu.cc
   trunk/src/gnome-cmd-file-popmenu.h
   trunk/src/gnome-cmd-file-props-dialog.h
   trunk/src/gnome-cmd-file-selector.h
   trunk/src/gnome-cmd-file.cc
   trunk/src/gnome-cmd-file.h
   trunk/src/gnome-cmd-list-popmenu.cc
   trunk/src/gnome-cmd-list-popmenu.h
   trunk/src/gnome-cmd-main-menu.cc
   trunk/src/gnome-cmd-main-menu.h
   trunk/src/gnome-cmd-main-win.cc
   trunk/src/gnome-cmd-main-win.h
   trunk/src/gnome-cmd-make-copy-dialog.cc
   trunk/src/gnome-cmd-make-copy-dialog.h
   trunk/src/gnome-cmd-mkdir-dialog.cc
   trunk/src/gnome-cmd-mkdir-dialog.h
   trunk/src/gnome-cmd-path.h
   trunk/src/gnome-cmd-patternsel-dialog.cc
   trunk/src/gnome-cmd-patternsel-dialog.h
   trunk/src/gnome-cmd-pixmap.h
   trunk/src/gnome-cmd-plain-path.cc
   trunk/src/gnome-cmd-plain-path.h
   trunk/src/gnome-cmd-python-plugin.h
   trunk/src/gnome-cmd-quicksearch-popup.cc
   trunk/src/gnome-cmd-quicksearch-popup.h
   trunk/src/gnome-cmd-remote-dialog.cc
   trunk/src/gnome-cmd-remote-dialog.h
   trunk/src/gnome-cmd-rename-dialog.cc
   trunk/src/gnome-cmd-rename-dialog.h
   trunk/src/gnome-cmd-search-dialog.cc
   trunk/src/gnome-cmd-search-dialog.h
   trunk/src/gnome-cmd-smb-net.h
   trunk/src/gnome-cmd-smb-path.cc
   trunk/src/gnome-cmd-smb-path.h
   trunk/src/gnome-cmd-types.h
   trunk/src/gnome-cmd-xfer-progress-win.h
   trunk/src/handle.h
   trunk/src/ls_colors.h

Modified: trunk/src/eggcellrendererkeys.h
==============================================================================
--- trunk/src/eggcellrendererkeys.h	(original)
+++ trunk/src/eggcellrendererkeys.h	Thu Mar  5 22:35:06 2009
@@ -49,11 +49,8 @@
 #define EGG_IS_CELL_RENDERER_KEYS_CLASS(klass)  (GTK_CHECK_CLASS_TYPE ((klass), EGG_TYPE_CELL_RENDERER_KEYS))
 #define EGG_CELL_RENDERER_KEYS_GET_CLASS(obj)   (GTK_CHECK_GET_CLASS ((obj), EGG_TYPE_CELL_RENDERER_KEYS, EggCellRendererKeysClass))
 
-typedef struct _EggCellRendererKeys      EggCellRendererKeys;
-typedef struct _EggCellRendererKeysClass EggCellRendererKeysClass;
 
-
-struct _EggCellRendererKeys
+struct EggCellRendererKeys
 {
     GtkCellRendererText parent;
     guint accel_key;
@@ -65,7 +62,7 @@
     GtkCellRendererAccelMode accel_mode;
 };
 
-struct _EggCellRendererKeysClass
+struct EggCellRendererKeysClass
 {
   GtkCellRendererTextClass parent_class;
 

Modified: trunk/src/gnome-cmd-about-plugin.cc
==============================================================================
--- trunk/src/gnome-cmd-about-plugin.cc	(original)
+++ trunk/src/gnome-cmd-about-plugin.cc	Thu Mar  5 22:35:06 2009
@@ -38,7 +38,7 @@
                  parent_class_cast(parent##_parent_class)->name args : (void)0)
 
 
-struct _GnomeCmdAboutPluginPrivate
+struct GnomeCmdAboutPluginPrivate
 {
     gchar *name;
     gchar *version;

Modified: trunk/src/gnome-cmd-about-plugin.h
==============================================================================
--- trunk/src/gnome-cmd-about-plugin.h	(original)
+++ trunk/src/gnome-cmd-about-plugin.h	Thu Mar  5 22:35:06 2009
@@ -39,18 +39,17 @@
 #define GNOME_CMD_IS_ABOUT_PLUGIN_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GNOME_CMD_TYPE_ABOUT_PLUGIN))
 #define GNOME_CMD_ABOUT_PLUGIN_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_TYPE_ABOUT_PLUGIN, GnomeCmdAboutPluginClass))
 
-typedef struct _GnomeCmdAboutPlugin        GnomeCmdAboutPlugin;
-typedef struct _GnomeCmdAboutPluginClass   GnomeCmdAboutPluginClass;
-typedef struct _GnomeCmdAboutPluginPrivate GnomeCmdAboutPluginPrivate;
+struct GnomeCmdAboutPluginPrivate;
 
-struct _GnomeCmdAboutPlugin
+struct GnomeCmdAboutPlugin
 {
     GtkDialog parent;
 
     GnomeCmdAboutPluginPrivate *priv;
 };
 
-struct _GnomeCmdAboutPluginClass {
+struct GnomeCmdAboutPluginClass
+{
     GtkDialogClass parent_class;
 };
 

Modified: trunk/src/gnome-cmd-bookmark-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-bookmark-dialog.cc	(original)
+++ trunk/src/gnome-cmd-bookmark-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -37,7 +37,7 @@
 using namespace std;
 
 
-struct _GnomeCmdBookmarkDialogPrivate
+struct GnomeCmdBookmarkDialogPrivate
 {
     GList *groups;
     GnomeCmdBookmark *sel_bookmark;

Modified: trunk/src/gnome-cmd-bookmark-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-bookmark-dialog.h	(original)
+++ trunk/src/gnome-cmd-bookmark-dialog.h	Thu Mar  5 22:35:06 2009
@@ -30,19 +30,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_bookmark_dialog_get_type ())
 
 
-typedef struct _GnomeCmdBookmarkDialog GnomeCmdBookmarkDialog;
-typedef struct _GnomeCmdBookmarkDialogPrivate GnomeCmdBookmarkDialogPrivate;
-typedef struct _GnomeCmdBookmarkDialogClass GnomeCmdBookmarkDialogClass;
+struct GnomeCmdBookmarkDialogPrivate;
 
 
-struct _GnomeCmdBookmarkDialog
+struct GnomeCmdBookmarkDialog
 {
     GnomeCmdDialog parent;
     GnomeCmdBookmarkDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdBookmarkDialogClass
+struct GnomeCmdBookmarkDialogClass
 {
     GnomeCmdDialogClass parent_class;
 };

Modified: trunk/src/gnome-cmd-chmod-component.cc
==============================================================================
--- trunk/src/gnome-cmd-chmod-component.cc	(original)
+++ trunk/src/gnome-cmd-chmod-component.cc	Thu Mar  5 22:35:06 2009
@@ -33,7 +33,7 @@
 };
 
 
-struct _GnomeCmdChmodComponentPrivate
+struct GnomeCmdChmodComponentPrivate
 {
     GtkWidget *check_boxes[3][3];
     GtkWidget *textview_label;

Modified: trunk/src/gnome-cmd-chmod-component.h
==============================================================================
--- trunk/src/gnome-cmd-chmod-component.h	(original)
+++ trunk/src/gnome-cmd-chmod-component.h	Thu Mar  5 22:35:06 2009
@@ -31,20 +31,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_chmod_component_get_type ())
 
 
-typedef struct _GnomeCmdChmodComponent GnomeCmdChmodComponent;
-typedef struct _GnomeCmdChmodComponentPrivate GnomeCmdChmodComponentPrivate;
-typedef struct _GnomeCmdChmodComponentClass GnomeCmdChmodComponentClass;
+struct GnomeCmdChmodComponentPrivate;
 
 
-
-struct _GnomeCmdChmodComponent
+struct GnomeCmdChmodComponent
 {
     GtkVBox parent;
     GnomeCmdChmodComponentPrivate *priv;
 };
 
 
-struct _GnomeCmdChmodComponentClass
+struct GnomeCmdChmodComponentClass
 {
     GtkVBoxClass parent_class;
 

Modified: trunk/src/gnome-cmd-chmod-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-chmod-dialog.cc	(original)
+++ trunk/src/gnome-cmd-chmod-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -45,7 +45,7 @@
     N_("Directories only")
 };
 
-struct _GnomeCmdChmodDialogPrivate
+struct GnomeCmdChmodDialogPrivate
 {
     GList *files;
     GnomeCmdFile *finfo;

Modified: trunk/src/gnome-cmd-chmod-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-chmod-dialog.h	(original)
+++ trunk/src/gnome-cmd-chmod-dialog.h	Thu Mar  5 22:35:06 2009
@@ -28,19 +28,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_chmod_dialog_get_type ())
 
 
-typedef struct _GnomeCmdChmodDialog GnomeCmdChmodDialog;
-typedef struct _GnomeCmdChmodDialogPrivate GnomeCmdChmodDialogPrivate;
-typedef struct _GnomeCmdChmodDialogClass GnomeCmdChmodDialogClass;
+struct GnomeCmdChmodDialogPrivate;
 
 
-struct _GnomeCmdChmodDialog
+struct GnomeCmdChmodDialog
 {
     GnomeCmdDialog parent;
     GnomeCmdChmodDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdChmodDialogClass
+struct GnomeCmdChmodDialogClass
 {
     GnomeCmdDialogClass parent_class;
 };

Modified: trunk/src/gnome-cmd-chown-component.cc
==============================================================================
--- trunk/src/gnome-cmd-chown-component.cc	(original)
+++ trunk/src/gnome-cmd-chown-component.cc	Thu Mar  5 22:35:06 2009
@@ -29,7 +29,7 @@
 using namespace std;
 
 
-struct _GnomeCmdChownComponentPrivate
+struct GnomeCmdChownComponentPrivate
 {
     GtkWidget *user_combo, *group_combo;
 };

Modified: trunk/src/gnome-cmd-chown-component.h
==============================================================================
--- trunk/src/gnome-cmd-chown-component.h	(original)
+++ trunk/src/gnome-cmd-chown-component.h	Thu Mar  5 22:35:06 2009
@@ -31,19 +31,18 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_chown_component_get_type ())
 
 
-typedef struct _GnomeCmdChownComponent GnomeCmdChownComponent;
-typedef struct _GnomeCmdChownComponentPrivate GnomeCmdChownComponentPrivate;
-typedef struct _GnomeCmdChownComponentClass GnomeCmdChownComponentClass;
+struct GnomeCmdChownComponentPrivate;
 
 
-struct _GnomeCmdChownComponent
+struct GnomeCmdChownComponent
 {
     GtkTable parent;
+
     GnomeCmdChownComponentPrivate *priv;
 };
 
 
-struct _GnomeCmdChownComponentClass
+struct GnomeCmdChownComponentClass
 {
     GtkTableClass parent_class;
 };

Modified: trunk/src/gnome-cmd-chown-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-chown-dialog.cc	(original)
+++ trunk/src/gnome-cmd-chown-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -32,7 +32,7 @@
 using namespace std;
 
 
-struct _GnomeCmdChownDialogPrivate
+struct GnomeCmdChownDialogPrivate
 {
     GList *files;
     GtkWidget *chown_component;

Modified: trunk/src/gnome-cmd-chown-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-chown-dialog.h	(original)
+++ trunk/src/gnome-cmd-chown-dialog.h	Thu Mar  5 22:35:06 2009
@@ -29,29 +29,24 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_chown_dialog_get_type ())
 
 
-typedef struct _GnomeCmdChownDialog GnomeCmdChownDialog;
-typedef struct _GnomeCmdChownDialogPrivate GnomeCmdChownDialogPrivate;
-typedef struct _GnomeCmdChownDialogClass GnomeCmdChownDialogClass;
+struct GnomeCmdChownDialogPrivate;
 
 
-
-struct _GnomeCmdChownDialog
+struct GnomeCmdChownDialog
 {
     GnomeCmdDialog parent;
     GnomeCmdChownDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdChownDialogClass
+struct GnomeCmdChownDialogClass
 {
     GnomeCmdDialogClass parent_class;
 };
 
 
-GtkWidget*
-gnome_cmd_chown_dialog_new (GList *files);
+GtkWidget *gnome_cmd_chown_dialog_new (GList *files);
 
-GtkType
-gnome_cmd_chown_dialog_get_type ();
+GtkType gnome_cmd_chown_dialog_get_type ();
 
 #endif // __GNOME_CMD_CHOWN_DIALOG_H__

Modified: trunk/src/gnome-cmd-clist.cc
==============================================================================
--- trunk/src/gnome-cmd-clist.cc	(original)
+++ trunk/src/gnome-cmd-clist.cc	Thu Mar  5 22:35:06 2009
@@ -30,7 +30,7 @@
 static GtkCListClass *parent_class = NULL;
 
 
-struct _GnomeCmdCListPrivate
+struct GnomeCmdCListPrivate
 {
 };
 

Modified: trunk/src/gnome-cmd-clist.h
==============================================================================
--- trunk/src/gnome-cmd-clist.h	(original)
+++ trunk/src/gnome-cmd-clist.h	Thu Mar  5 22:35:06 2009
@@ -28,12 +28,10 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_clist_get_type ())
 
 
-typedef struct _GnomeCmdCList GnomeCmdCList;
-typedef struct _GnomeCmdCListPrivate GnomeCmdCListPrivate;
-typedef struct _GnomeCmdCListClass GnomeCmdCListClass;
+struct GnomeCmdCListPrivate;
 
 
-struct _GnomeCmdCList
+struct GnomeCmdCList
 {
     GtkCList parent;
 
@@ -43,7 +41,7 @@
 };
 
 
-struct _GnomeCmdCListClass
+struct GnomeCmdCListClass
 {
     GtkCListClass parent_class;
 };

Modified: trunk/src/gnome-cmd-cmdline.cc
==============================================================================
--- trunk/src/gnome-cmd-cmdline.cc	(original)
+++ trunk/src/gnome-cmd-cmdline.cc	Thu Mar  5 22:35:06 2009
@@ -23,18 +23,18 @@
 #include "gnome-cmd-cmdline.h"
 #include "gnome-cmd-combo.h"
 #include "gnome-cmd-style.h"
-#include "utils.h"
 #include "gnome-cmd-file-selector.h"
 #include "gnome-cmd-main-win.h"
 #include "gnome-cmd-data.h"
 #include "gnome-cmd-dir.h"
+#include "utils.h"
 
 using namespace std;
 
 
 static GtkHBoxClass *parent_class = NULL;
 
-struct _GnomeCmdCmdlinePrivate
+struct GnomeCmdCmdlinePrivate
 {
     GtkWidget *combo;
     GtkWidget *cwd;
@@ -499,7 +499,7 @@
                             event->keyval = 0;
                         }
                         break;
-            }
+                }
 
     return FALSE;
 }

Modified: trunk/src/gnome-cmd-cmdline.h
==============================================================================
--- trunk/src/gnome-cmd-cmdline.h	(original)
+++ trunk/src/gnome-cmd-cmdline.h	Thu Mar  5 22:35:06 2009
@@ -28,19 +28,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_cmdline_get_type ())
 
 
-typedef struct _GnomeCmdCmdline GnomeCmdCmdline;
-typedef struct _GnomeCmdCmdlinePrivate GnomeCmdCmdlinePrivate;
-typedef struct _GnomeCmdCmdlineClass GnomeCmdCmdlineClass;
+struct GnomeCmdCmdlinePrivate;
 
 
-struct _GnomeCmdCmdline
+struct GnomeCmdCmdline
 {
     GtkHBox parent;
     GnomeCmdCmdlinePrivate *priv;
 };
 
 
-struct _GnomeCmdCmdlineClass
+struct GnomeCmdCmdlineClass
 {
     GtkHBoxClass parent_class;
 };

Modified: trunk/src/gnome-cmd-combo.h
==============================================================================
--- trunk/src/gnome-cmd-combo.h	(original)
+++ trunk/src/gnome-cmd-combo.h	Thu Mar  5 22:35:06 2009
@@ -39,13 +39,11 @@
 #define GNOME_CMD_COMBO_CLASS(klass)    GTK_CHECK_CLASS_CAST (klass, gnome_cmd_combo_get_type (), GnomeCmdComboClass)
 #define GNOME_CMD_IS_COMBO(obj)         GTK_CHECK_TYPE (obj, gnome_cmd_combo_get_type ())
 
-typedef struct _GnomeCmdCombo GnomeCmdCombo;
-typedef struct _GnomeCmdComboClass GnomeCmdComboClass;
-
 /* you should access only the entry and list fields directly */
-struct _GnomeCmdCombo 
+struct GnomeCmdCombo
 {
     GtkHBox hbox;
+
     GtkWidget *entry;
     GtkWidget *button;
     GtkWidget *popup;
@@ -70,7 +68,7 @@
     gint text_col;
 };
 
-struct _GnomeCmdComboClass 
+struct GnomeCmdComboClass
 {
     GtkHBoxClass parent_class;
 
@@ -83,9 +81,7 @@
 GtkWidget *gnome_cmd_combo_new (gint num_cols, gint text_col, gchar **col_titles);
 
 void gnome_cmd_combo_clear (GnomeCmdCombo *combo);
-
 gint gnome_cmd_combo_append (GnomeCmdCombo *combo, gchar **text, gpointer data);
-
 gint gnome_cmd_combo_insert (GnomeCmdCombo *combo, gchar **text, gpointer data);
 
 void gnome_cmd_combo_set_pixmap (GnomeCmdCombo *combo, gint row, gint col, GnomeCmdPixmap *pixmap);
@@ -93,13 +89,11 @@
 void gnome_cmd_combo_popup_list  (GnomeCmdCombo *combo);
 
 void gnome_cmd_combo_select_text (GnomeCmdCombo *combo, const gchar *text);
-
 void gnome_cmd_combo_select_data (GnomeCmdCombo *combo, gpointer data);
 
 void gnome_cmd_combo_update_style (GnomeCmdCombo *combo);
 
 gpointer gnome_cmd_combo_get_selected_data (GnomeCmdCombo *combo);
-
 const gchar *gnome_cmd_combo_get_selected_text (GnomeCmdCombo *combo);
 
 #endif // __GNOME_CMD_COMBO_H__

Modified: trunk/src/gnome-cmd-con-device.cc
==============================================================================
--- trunk/src/gnome-cmd-con-device.cc	(original)
+++ trunk/src/gnome-cmd-con-device.cc	Thu Mar  5 22:35:06 2009
@@ -35,7 +35,7 @@
 using namespace std;
 
 
-struct _GnomeCmdConDevicePrivate
+struct GnomeCmdConDevicePrivate
 {
     gchar *alias;
     gchar *device_fn;

Modified: trunk/src/gnome-cmd-con-device.h
==============================================================================
--- trunk/src/gnome-cmd-con-device.h	(original)
+++ trunk/src/gnome-cmd-con-device.h	Thu Mar  5 22:35:06 2009
@@ -31,19 +31,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_device_get_type ())
 
 
-typedef struct _GnomeCmdConDevice GnomeCmdConDevice;
-typedef struct _GnomeCmdConDeviceClass GnomeCmdConDeviceClass;
-typedef struct _GnomeCmdConDevicePrivate GnomeCmdConDevicePrivate;
+struct GnomeCmdConDevicePrivate;
 
 
-struct _GnomeCmdConDevice
+struct GnomeCmdConDevice
 {
     GnomeCmdCon parent;
 
     GnomeCmdConDevicePrivate *priv;
 };
 
-struct _GnomeCmdConDeviceClass
+struct GnomeCmdConDeviceClass
 {
     GnomeCmdConClass parent_class;
 };

Modified: trunk/src/gnome-cmd-con-ftp.h
==============================================================================
--- trunk/src/gnome-cmd-con-ftp.h	(original)
+++ trunk/src/gnome-cmd-con-ftp.h	Thu Mar  5 22:35:06 2009
@@ -31,16 +31,12 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_ftp_get_type ())
 
 
-typedef struct _GnomeCmdConFtp GnomeCmdConFtp;
-typedef struct _GnomeCmdConFtpClass GnomeCmdConFtpClass;
-
-
-struct _GnomeCmdConFtp
+struct GnomeCmdConFtp
 {
     GnomeCmdCon parent;
 };
 
-struct _GnomeCmdConFtpClass
+struct GnomeCmdConFtpClass
 {
     GnomeCmdConClass parent_class;
 };

Modified: trunk/src/gnome-cmd-con-home.cc
==============================================================================
--- trunk/src/gnome-cmd-con-home.cc	(original)
+++ trunk/src/gnome-cmd-con-home.cc	Thu Mar  5 22:35:06 2009
@@ -28,11 +28,6 @@
 using namespace std;
 
 
-struct _GnomeCmdConHomePrivate
-{
-};
-
-
 static GnomeCmdConClass *parent_class = NULL;
 
 
@@ -84,8 +79,6 @@
 {
     GnomeCmdConHome *con = GNOME_CMD_CON_HOME (object);
 
-    g_free (con->priv);
-
     if (GTK_OBJECT_CLASS (parent_class)->destroy)
         (*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
 }
@@ -115,8 +108,6 @@
 
     GnomeCmdCon *con = GNOME_CMD_CON (home_con);
 
-    home_con->priv = g_new0 (GnomeCmdConHomePrivate, 1);
-
     con->state = CON_STATE_OPEN;
     con->alias = g_strdup (_("Home"));
     con->method = CON_LOCAL;

Modified: trunk/src/gnome-cmd-con-home.h
==============================================================================
--- trunk/src/gnome-cmd-con-home.h	(original)
+++ trunk/src/gnome-cmd-con-home.h	Thu Mar  5 22:35:06 2009
@@ -31,19 +31,13 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_home_get_type ())
 
 
-typedef struct _GnomeCmdConHome GnomeCmdConHome;
-typedef struct _GnomeCmdConHomeClass GnomeCmdConHomeClass;
-typedef struct _GnomeCmdConHomePrivate GnomeCmdConHomePrivate;
-
-
-struct _GnomeCmdConHome
+struct GnomeCmdConHome
 {
     GnomeCmdCon parent;
-
-    GnomeCmdConHomePrivate *priv;
 };
 
-struct _GnomeCmdConHomeClass
+
+struct GnomeCmdConHomeClass
 {
     GnomeCmdConClass parent_class;
 };

Modified: trunk/src/gnome-cmd-con-list.cc
==============================================================================
--- trunk/src/gnome-cmd-con-list.cc	(original)
+++ trunk/src/gnome-cmd-con-list.cc	Thu Mar  5 22:35:06 2009
@@ -27,7 +27,7 @@
 using namespace std;
 
 
-struct _GnomeCmdConListPrivate
+struct GnomeCmdConListPrivate
 {
     gboolean update_lock;
     gboolean changed;

Modified: trunk/src/gnome-cmd-con-list.h
==============================================================================
--- trunk/src/gnome-cmd-con-list.h	(original)
+++ trunk/src/gnome-cmd-con-list.h	Thu Mar  5 22:35:06 2009
@@ -34,19 +34,18 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_list_get_type ())
 
 
-typedef struct _GnomeCmdConList GnomeCmdConList;
-typedef struct _GnomeCmdConListClass GnomeCmdConListClass;
-typedef struct _GnomeCmdConListPrivate GnomeCmdConListPrivate;
+struct GnomeCmdConListPrivate;
 
 
-struct _GnomeCmdConList
+struct GnomeCmdConList
 {
     GtkObject parent;
 
     GnomeCmdConListPrivate *priv;
 };
 
-struct _GnomeCmdConListClass
+
+struct GnomeCmdConListClass
 {
     GtkObjectClass parent_class;
 

Modified: trunk/src/gnome-cmd-con-smb.cc
==============================================================================
--- trunk/src/gnome-cmd-con-smb.cc	(original)
+++ trunk/src/gnome-cmd-con-smb.cc	Thu Mar  5 22:35:06 2009
@@ -29,11 +29,6 @@
 using namespace std;
 
 
-struct _GnomeCmdConSmbPrivate
-{
-};
-
-
 static GnomeCmdConClass *parent_class = NULL;
 
 
@@ -80,8 +75,7 @@
 }
 
 
-static void
-smb_open (GnomeCmdCon *con)
+static void smb_open (GnomeCmdCon *con)
 {
     if (!con->base_path)
     {
@@ -120,29 +114,25 @@
 }
 
 
-static gboolean
-smb_close (GnomeCmdCon *con)
+static gboolean smb_close (GnomeCmdCon *con)
 {
     return FALSE;
 }
 
 
-static void
-smb_cancel_open (GnomeCmdCon *con)
+static void smb_cancel_open (GnomeCmdCon *con)
 {
     con->state = CON_STATE_CANCELLING;
 }
 
 
-static gboolean
-smb_open_is_needed (GnomeCmdCon *con)
+static gboolean smb_open_is_needed (GnomeCmdCon *con)
 {
     return TRUE;
 }
 
 
-static GnomeVFSURI *
-smb_create_uri (GnomeCmdCon *con, GnomeCmdPath *path)
+static GnomeVFSURI *smb_create_uri (GnomeCmdCon *con, GnomeCmdPath *path)
 {
     GnomeVFSURI *u1, *u2;
 
@@ -163,8 +153,7 @@
 }
 
 
-static GnomeCmdPath *
-smb_create_path (GnomeCmdCon *con, const gchar *path_str)
+static GnomeCmdPath *smb_create_path (GnomeCmdCon *con, const gchar *path_str)
 {
     return gnome_cmd_smb_path_new_from_str (path_str);
 }
@@ -175,20 +164,16 @@
  * Gtk class implementation
  *******************************/
 
-static void
-destroy (GtkObject *object)
+static void destroy (GtkObject *object)
 {
     GnomeCmdConSmb *con = GNOME_CMD_CON_SMB (object);
 
-    g_free (con->priv);
-
     if (GTK_OBJECT_CLASS (parent_class)->destroy)
         (*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
 }
 
 
-static void
-class_init (GnomeCmdConSmbClass *klass)
+static void class_init (GnomeCmdConSmbClass *klass)
 {
     GtkObjectClass *object_class = GTK_OBJECT_CLASS (klass);
     GnomeCmdConClass *con_class = GNOME_CMD_CON_CLASS (klass);
@@ -206,15 +191,12 @@
 }
 
 
-static void
-init (GnomeCmdConSmb *smb_con)
+static void init (GnomeCmdConSmb *smb_con)
 {
     guint dev_icon_size = gnome_cmd_data.dev_icon_size;
 
     GnomeCmdCon *con = GNOME_CMD_CON (smb_con);
 
-    smb_con->priv = g_new0 (GnomeCmdConSmbPrivate, 1);
-
     con->alias = g_strdup (_("SMB"));
     con->method = CON_SMB;
     con->open_msg = g_strdup (_("Searching for workgroups and hosts"));
@@ -260,8 +242,7 @@
 }
 
 
-GnomeCmdCon *
-gnome_cmd_con_smb_new ()
+GnomeCmdCon *gnome_cmd_con_smb_new ()
 {
     return GNOME_CMD_CON (gtk_type_new (gnome_cmd_con_smb_get_type ()));
 }

Modified: trunk/src/gnome-cmd-con-smb.h
==============================================================================
--- trunk/src/gnome-cmd-con-smb.h	(original)
+++ trunk/src/gnome-cmd-con-smb.h	Thu Mar  5 22:35:06 2009
@@ -30,28 +30,19 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_smb_get_type ())
 
 
-typedef struct _GnomeCmdConSmb GnomeCmdConSmb;
-typedef struct _GnomeCmdConSmbClass GnomeCmdConSmbClass;
-typedef struct _GnomeCmdConSmbPrivate GnomeCmdConSmbPrivate;
-
-
-struct _GnomeCmdConSmb
+struct GnomeCmdConSmb
 {
     GnomeCmdCon parent;
-
-    GnomeCmdConSmbPrivate *priv;
 };
 
-struct _GnomeCmdConSmbClass
+struct GnomeCmdConSmbClass
 {
     GnomeCmdConClass parent_class;
 };
 
 
-GtkType
-gnome_cmd_con_smb_get_type ();
+GtkType gnome_cmd_con_smb_get_type ();
 
-GnomeCmdCon *
-gnome_cmd_con_smb_new ();
+GnomeCmdCon *gnome_cmd_con_smb_new ();
 
 #endif // __GNOME_CMD_CON_SMB_H__

Modified: trunk/src/gnome-cmd-con.cc
==============================================================================
--- trunk/src/gnome-cmd-con.cc	(original)
+++ trunk/src/gnome-cmd-con.cc	Thu Mar  5 22:35:06 2009
@@ -28,7 +28,7 @@
 using namespace std;
 
 
-struct _GnomeCmdConPrivate
+struct GnomeCmdConPrivate
 {
     GnomeCmdDir    *cwd;           // current working directory
     GnomeCmdDir    *root_dir;      // the root dir of this connection

Modified: trunk/src/gnome-cmd-con.h
==============================================================================
--- trunk/src/gnome-cmd-con.h	(original)
+++ trunk/src/gnome-cmd-con.h	Thu Mar  5 22:35:06 2009
@@ -29,9 +29,7 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_con_get_type ())
 #define GNOME_CMD_CON_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_CON, GnomeCmdConClass))
 
-typedef struct _GnomeCmdCon GnomeCmdCon;
-typedef struct _GnomeCmdConClass GnomeCmdConClass;
-typedef struct _GnomeCmdConPrivate GnomeCmdConPrivate;
+struct GnomeCmdConPrivate;
 
 #include <string>
 
@@ -72,7 +70,7 @@
     CON_LOCAL      // CON_FILE ???
 } ConnectionMethodID;
 
-struct _GnomeCmdCon
+struct GnomeCmdCon
 {
     GtkObject parent;
 
@@ -108,7 +106,7 @@
     GnomeCmdConPrivate *priv;
 };
 
-struct _GnomeCmdConClass
+struct GnomeCmdConClass
 {
     GtkObjectClass parent_class;
 

Modified: trunk/src/gnome-cmd-data.h
==============================================================================
--- trunk/src/gnome-cmd-data.h	(original)
+++ trunk/src/gnome-cmd-data.h	Thu Mar  5 22:35:06 2009
@@ -32,7 +32,7 @@
 #include "history.h"
 #include "dict.h"
 
-typedef struct _GnomeCmdConFtp GnomeCmdConFtp;
+struct GnomeCmdConFtp;
 
 struct GnomeCmdData
 {

Modified: trunk/src/gnome-cmd-delete-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-delete-dialog.h	(original)
+++ trunk/src/gnome-cmd-delete-dialog.h	Thu Mar  5 22:35:06 2009
@@ -20,7 +20,6 @@
 #ifndef __GNOME_CMD_DELETE_DIALOG_H__
 #define __GNOME_CMD_DELETE_DIALOG_H__
 
-void
-gnome_cmd_delete_dialog_show (GList *files);
+void gnome_cmd_delete_dialog_show (GList *files);
 
 #endif // __GNOME_CMD_DELETE_DIALOG_H__

Modified: trunk/src/gnome-cmd-dir-indicator.cc
==============================================================================
--- trunk/src/gnome-cmd-dir-indicator.cc	(original)
+++ trunk/src/gnome-cmd-dir-indicator.cc	Thu Mar  5 22:35:06 2009
@@ -32,7 +32,7 @@
 using namespace std;
 
 
-struct _GnomeCmdDirIndicatorPrivate
+struct GnomeCmdDirIndicatorPrivate
 {
     GtkWidget *event_box;
     GtkWidget *label;

Modified: trunk/src/gnome-cmd-dir-indicator.h
==============================================================================
--- trunk/src/gnome-cmd-dir-indicator.h	(original)
+++ trunk/src/gnome-cmd-dir-indicator.h	Thu Mar  5 22:35:06 2009
@@ -33,40 +33,32 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_dir_indicator_get_type ())
 
 
-typedef struct _GnomeCmdDirIndicator GnomeCmdDirIndicator;
-typedef struct _GnomeCmdDirIndicatorClass GnomeCmdDirIndicatorClass;
-typedef struct _GnomeCmdDirIndicatorPrivate GnomeCmdDirIndicatorPrivate;
+struct GnomeCmdDirIndicatorPrivate;
 
 
-struct _GnomeCmdDirIndicator
+struct GnomeCmdDirIndicator
 {
     GtkFrame parent;
 
     GnomeCmdDirIndicatorPrivate *priv;
 };
 
-struct _GnomeCmdDirIndicatorClass
+struct GnomeCmdDirIndicatorClass
 {
     GtkFrameClass parent_class;
 };
 
 
-GtkType
-gnome_cmd_dir_indicator_get_type ();
+GtkType gnome_cmd_dir_indicator_get_type ();
 
-GtkWidget *
-gnome_cmd_dir_indicator_new (GnomeCmdFileSelector *fs);
+GtkWidget *gnome_cmd_dir_indicator_new (GnomeCmdFileSelector *fs);
 
-void
-gnome_cmd_dir_indicator_set_dir (GnomeCmdDirIndicator *indicator, gchar *path);
+void gnome_cmd_dir_indicator_set_dir (GnomeCmdDirIndicator *indicator, gchar *path);
 
-void
-gnome_cmd_dir_indicator_set_active (GnomeCmdDirIndicator *indicator, gboolean value);
+void gnome_cmd_dir_indicator_set_active (GnomeCmdDirIndicator *indicator, gboolean value);
 
-void
-gnome_cmd_dir_indicator_show_history (GnomeCmdDirIndicator *indicator);
+void gnome_cmd_dir_indicator_show_history (GnomeCmdDirIndicator *indicator);
 
-void
-gnome_cmd_dir_indicator_show_bookmarks (GnomeCmdDirIndicator *indicator);
+void gnome_cmd_dir_indicator_show_bookmarks (GnomeCmdDirIndicator *indicator);
 
 #endif // __GNOME_CMD_DIR_INDICATOR_H__

Modified: trunk/src/gnome-cmd-dir.cc
==============================================================================
--- trunk/src/gnome-cmd-dir.cc	(original)
+++ trunk/src/gnome-cmd-dir.cc	Thu Mar  5 22:35:06 2009
@@ -51,7 +51,7 @@
     LAST_SIGNAL
 };
 
-struct _GnomeCmdDirPrivate
+struct GnomeCmdDirPrivate
 {
     GnomeVFSAsyncHandle *list_handle;
 

Modified: trunk/src/gnome-cmd-dir.h
==============================================================================
--- trunk/src/gnome-cmd-dir.h	(original)
+++ trunk/src/gnome-cmd-dir.h	Thu Mar  5 22:35:06 2009
@@ -29,13 +29,10 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_dir_get_type ())
 
 
-typedef struct _GnomeCmdDir         GnomeCmdDir;
-typedef struct _GnomeCmdDirPrivate  GnomeCmdDirPrivate;
-typedef struct _GnomeCmdDirClass    GnomeCmdDirClass;
-
-typedef void (* DirListDoneFunc) (GnomeCmdDir *dir,
-                                  GList *files,
-                                  GnomeVFSResult result);
+struct GnomeCmdDir;
+struct GnomeCmdDirPrivate;
+
+typedef void (* DirListDoneFunc) (GnomeCmdDir *dir, GList *files, GnomeVFSResult result);
 
 #include <string>
 
@@ -51,7 +48,7 @@
     DIR_STATE_CANCELING
 } DirState;
 
-struct _GnomeCmdDir
+struct GnomeCmdDir
 {
     GnomeCmdFile parent;
 
@@ -71,7 +68,7 @@
     GnomeCmdDirPrivate *priv;
 };
 
-struct _GnomeCmdDirClass
+struct GnomeCmdDirClass
 {
     GnomeCmdFileClass parent_class;
 
@@ -83,7 +80,7 @@
     void (* list_failed)        (GnomeCmdDir *dir, GnomeVFSResult result);
 };
 
-typedef struct _GnomeCmdCon GnomeCmdCon;
+struct GnomeCmdCon;
 
 GtkType gnome_cmd_dir_get_type ();
 

Modified: trunk/src/gnome-cmd-file-popmenu.cc
==============================================================================
--- trunk/src/gnome-cmd-file-popmenu.cc	(original)
+++ trunk/src/gnome-cmd-file-popmenu.cc	Thu Mar  5 22:35:06 2009
@@ -49,7 +49,8 @@
 
 static GtkMenuClass *parent_class = NULL;
 
-struct _GnomeCmdFilePopmenuPrivate
+
+struct GnomeCmdFilePopmenuPrivate
 {
     GList *data_list;
 };

Modified: trunk/src/gnome-cmd-file-popmenu.h
==============================================================================
--- trunk/src/gnome-cmd-file-popmenu.h	(original)
+++ trunk/src/gnome-cmd-file-popmenu.h	Thu Mar  5 22:35:06 2009
@@ -31,20 +31,18 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_file_popmenu_get_type ())
 
 
-typedef struct _GnomeCmdFilePopmenu GnomeCmdFilePopmenu;
-typedef struct _GnomeCmdFilePopmenuPrivate GnomeCmdFilePopmenuPrivate;
-typedef struct _GnomeCmdFilePopmenuClass GnomeCmdFilePopmenuClass;
+struct GnomeCmdFilePopmenuPrivate;
 
 
-
-struct _GnomeCmdFilePopmenu
+struct GnomeCmdFilePopmenu
 {
     GtkMenu parent;
+
     GnomeCmdFilePopmenuPrivate *priv;
 };
 
 
-struct _GnomeCmdFilePopmenuClass
+struct GnomeCmdFilePopmenuClass
 {
     GtkMenuClass parent_class;
 };

Modified: trunk/src/gnome-cmd-file-props-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-file-props-dialog.h	(original)
+++ trunk/src/gnome-cmd-file-props-dialog.h	Thu Mar  5 22:35:06 2009
@@ -23,7 +23,6 @@
 
 #include "gnome-cmd-file.h"
 
-GtkWidget*
-gnome_cmd_file_props_dialog_create (GnomeCmdFile *finfo);
+GtkWidget *gnome_cmd_file_props_dialog_create (GnomeCmdFile *finfo);
 
 #endif // __GNOME_CMD_FILE_PROPS_DIALOG_H__

Modified: trunk/src/gnome-cmd-file-selector.h
==============================================================================
--- trunk/src/gnome-cmd-file-selector.h	(original)
+++ trunk/src/gnome-cmd-file-selector.h	Thu Mar  5 22:35:06 2009
@@ -25,7 +25,7 @@
 #define GNOME_CMD_FILE_SELECTOR_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, gnome_cmd_file_selector_get_type (), GnomeCmdFileSelectorClass)
 #define GNOME_CMD_IS_FILE_SELECTOR(obj)       GTK_CHECK_TYPE (obj, gnome_cmd_file_selector_get_type ())
 
-typedef struct _GnomeCmdMainWin GnomeCmdMainWin;
+struct GnomeCmdMainWin;
 
 #include "gnome-cmd-file-list.h"
 #include "gnome-cmd-con.h"

Modified: trunk/src/gnome-cmd-file.cc
==============================================================================
--- trunk/src/gnome-cmd-file.cc	(original)
+++ trunk/src/gnome-cmd-file.cc	Thu Mar  5 22:35:06 2009
@@ -49,7 +49,7 @@
 
 static GnomeCmdFileInfoClass *parent_class = NULL;
 
-struct _GnomeCmdFilePrivate
+struct GnomeCmdFilePrivate
 {
     Handle *dir_handle;
     GTimeVal last_update;

Modified: trunk/src/gnome-cmd-file.h
==============================================================================
--- trunk/src/gnome-cmd-file.h	(original)
+++ trunk/src/gnome-cmd-file.h	Thu Mar  5 22:35:06 2009
@@ -29,13 +29,10 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_file_get_type ())
 
 
-typedef struct _GnomeCmdFile        GnomeCmdFile;
-typedef struct _GnomeCmdFileClass   GnomeCmdFileClass;
-typedef struct _GnomeCmdFilePrivate GnomeCmdFilePrivate;
-
+struct GnomeCmdFilePrivate;
 class GnomeCmdFileMetadata;
 
-struct _GnomeCmdFile
+struct GnomeCmdFile
 {
     GnomeCmdFileInfo parent;
 
@@ -45,13 +42,13 @@
     GnomeCmdFileMetadata *metadata;
 };
 
-struct _GnomeCmdFileClass
+struct GnomeCmdFileClass
 {
     GnomeCmdFileInfoClass parent_class;
 };
 
 
-typedef struct _GnomeCmdDir         GnomeCmdDir;
+struct GnomeCmdDir;
 
 
 GtkType gnome_cmd_file_get_type ();

Modified: trunk/src/gnome-cmd-list-popmenu.cc
==============================================================================
--- trunk/src/gnome-cmd-list-popmenu.cc	(original)
+++ trunk/src/gnome-cmd-list-popmenu.cc	Thu Mar  5 22:35:06 2009
@@ -34,10 +34,6 @@
 
 static GtkMenuClass *parent_class = NULL;
 
-struct _GnomeCmdListPopmenuPrivate
-{
-};
-
 
 static void on_new_directory (GtkMenuItem *item, GnomeCmdFileSelector *fs)
 {
@@ -71,8 +67,6 @@
 {
     GnomeCmdListPopmenu *menu = GNOME_CMD_LIST_POPMENU (object);
 
-    g_free (menu->priv);
-
     if (GTK_OBJECT_CLASS (parent_class)->destroy)
         (*GTK_OBJECT_CLASS (parent_class)->destroy) (object);
 }
@@ -98,7 +92,6 @@
 
 static void init (GnomeCmdListPopmenu *menu)
 {
-    menu->priv = g_new0 (GnomeCmdListPopmenuPrivate, 1);
 }
 
 

Modified: trunk/src/gnome-cmd-list-popmenu.h
==============================================================================
--- trunk/src/gnome-cmd-list-popmenu.h	(original)
+++ trunk/src/gnome-cmd-list-popmenu.h	Thu Mar  5 22:35:06 2009
@@ -31,29 +31,20 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_list_popmenu_get_type ())
 
 
-typedef struct _GnomeCmdListPopmenu GnomeCmdListPopmenu;
-typedef struct _GnomeCmdListPopmenuPrivate GnomeCmdListPopmenuPrivate;
-typedef struct _GnomeCmdListPopmenuClass GnomeCmdListPopmenuClass;
-
-
-
-struct _GnomeCmdListPopmenu
+struct GnomeCmdListPopmenu
 {
     GtkMenu parent;
-    GnomeCmdListPopmenuPrivate *priv;
 };
 
 
-struct _GnomeCmdListPopmenuClass
+struct GnomeCmdListPopmenuClass
 {
     GtkMenuClass parent_class;
 };
 
 
-GtkWidget*
-gnome_cmd_list_popmenu_new (GnomeCmdFileSelector *fs);
+GtkWidget *gnome_cmd_list_popmenu_new (GnomeCmdFileSelector *fs);
 
-GtkType
-gnome_cmd_list_popmenu_get_type ();
+GtkType gnome_cmd_list_popmenu_get_type ();
 
 #endif // __GNOME_CMD_LIST_POPMENU_H__

Modified: trunk/src/gnome-cmd-main-menu.cc
==============================================================================
--- trunk/src/gnome-cmd-main-menu.cc	(original)
+++ trunk/src/gnome-cmd-main-menu.cc	Thu Mar  5 22:35:06 2009
@@ -93,7 +93,7 @@
     NULL }
 
 
-struct _GnomeCmdMainMenuPrivate
+struct GnomeCmdMainMenuPrivate
 {
     GtkWidget *file_menu;
     GtkWidget *edit_menu;

Modified: trunk/src/gnome-cmd-main-menu.h
==============================================================================
--- trunk/src/gnome-cmd-main-menu.h	(original)
+++ trunk/src/gnome-cmd-main-menu.h	Thu Mar  5 22:35:06 2009
@@ -31,20 +31,18 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_main_menu_get_type ())
 
 
-typedef struct _GnomeCmdMainMenu GnomeCmdMainMenu;
-typedef struct _GnomeCmdMainMenuPrivate GnomeCmdMainMenuPrivate;
-typedef struct _GnomeCmdMainMenuClass GnomeCmdMainMenuClass;
+struct GnomeCmdMainMenuPrivate;
 
 
-
-struct _GnomeCmdMainMenu
+struct GnomeCmdMainMenu
 {
     GtkMenuBar parent;
+
     GnomeCmdMainMenuPrivate *priv;
 };
 
 
-struct _GnomeCmdMainMenuClass
+struct GnomeCmdMainMenuClass
 {
     GtkMenuBarClass parent_class;
 };

Modified: trunk/src/gnome-cmd-main-win.cc
==============================================================================
--- trunk/src/gnome-cmd-main-win.cc	(original)
+++ trunk/src/gnome-cmd-main-win.cc	Thu Mar  5 22:35:06 2009
@@ -72,7 +72,7 @@
 };
 
 
-struct _GnomeCmdMainWinPrivate
+struct GnomeCmdMainWinPrivate
 {
     FileSelectorID current_fs;
     GnomeCmdState state;
@@ -750,7 +750,6 @@
     klass->switch_fs = gnome_cmd_main_win_real_switch_fs;
 }
 
-
 static void init (GnomeCmdMainWin *mw)
 {
     /* It is very important that this global variable gets assigned here so that

Modified: trunk/src/gnome-cmd-main-win.h
==============================================================================
--- trunk/src/gnome-cmd-main-win.h	(original)
+++ trunk/src/gnome-cmd-main-win.h	Thu Mar  5 22:35:06 2009
@@ -28,23 +28,21 @@
 #define GNOME_CMD_IS_MAIN_WIN(obj) \
     GTK_CHECK_TYPE(obj, gnome_cmd_main_win_get_type ())
 
-typedef struct _GnomeCmdMainWin GnomeCmdMainWin;
-typedef struct _GnomeCmdMainWinPrivate GnomeCmdMainWinPrivate;
-typedef struct _GnomeCmdMainWinClass GnomeCmdMainWinClass;
+struct GnomeCmdMainWinPrivate;
 
 #include "gnome-cmd-file-selector.h"
 #include "gnome-cmd-advrename-dialog.h"
 #include "gnome-cmd-cmdline.h"
 #include "plugin_manager.h"
 
-struct _GnomeCmdMainWin
+struct GnomeCmdMainWin
 {
     GnomeApp parent;
     GnomeCmdAdvrenameDialog *advrename_dlg;
     GnomeCmdMainWinPrivate *priv;
 };
 
-struct _GnomeCmdMainWinClass
+struct GnomeCmdMainWinClass
 {
     GnomeAppClass parent_class;
 

Modified: trunk/src/gnome-cmd-make-copy-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-make-copy-dialog.cc	(original)
+++ trunk/src/gnome-cmd-make-copy-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -27,7 +27,7 @@
 using namespace std;
 
 
-struct _GnomeCmdMakeCopyDialogPrivate
+struct GnomeCmdMakeCopyDialogPrivate
 {
     GnomeCmdFile *finfo;
     GnomeCmdDir *dir;

Modified: trunk/src/gnome-cmd-make-copy-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-make-copy-dialog.h	(original)
+++ trunk/src/gnome-cmd-make-copy-dialog.h	Thu Mar  5 22:35:06 2009
@@ -31,19 +31,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_make_copy_dialog_get_type ())
 
 
-typedef struct _GnomeCmdMakeCopyDialog GnomeCmdMakeCopyDialog;
-typedef struct _GnomeCmdMakeCopyDialogPrivate GnomeCmdMakeCopyDialogPrivate;
-typedef struct _GnomeCmdMakeCopyDialogClass GnomeCmdMakeCopyDialogClass;
+struct GnomeCmdMakeCopyDialogPrivate;
 
 
-struct _GnomeCmdMakeCopyDialog
+struct GnomeCmdMakeCopyDialog
 {
     GnomeCmdStringDialog parent;
     GnomeCmdMakeCopyDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdMakeCopyDialogClass
+struct GnomeCmdMakeCopyDialogClass
 {
     GnomeCmdStringDialogClass parent_class;
 };

Modified: trunk/src/gnome-cmd-mkdir-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-mkdir-dialog.cc	(original)
+++ trunk/src/gnome-cmd-mkdir-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -28,7 +28,7 @@
 using namespace std;
 
 
-struct _GnomeCmdMkdirDialogPrivate
+struct GnomeCmdMkdirDialogPrivate
 {
     GnomeCmdDir *dir;
     GnomeCmdMainWin *mw;

Modified: trunk/src/gnome-cmd-mkdir-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-mkdir-dialog.h	(original)
+++ trunk/src/gnome-cmd-mkdir-dialog.h	Thu Mar  5 22:35:06 2009
@@ -31,29 +31,25 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_mkdir_dialog_get_type ())
 
 
-typedef struct _GnomeCmdMkdirDialog GnomeCmdMkdirDialog;
-typedef struct _GnomeCmdMkdirDialogPrivate GnomeCmdMkdirDialogPrivate;
-typedef struct _GnomeCmdMkdirDialogClass GnomeCmdMkdirDialogClass;
+struct GnomeCmdMkdirDialogPrivate;
 
 
-
-struct _GnomeCmdMkdirDialog
+struct GnomeCmdMkdirDialog
 {
     GnomeCmdStringDialog parent;
+
     GnomeCmdMkdirDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdMkdirDialogClass
+struct GnomeCmdMkdirDialogClass
 {
     GnomeCmdStringDialogClass parent_class;
 };
 
 
-GtkWidget*
-gnome_cmd_mkdir_dialog_new (GnomeCmdDir *dir);
+GtkWidget *gnome_cmd_mkdir_dialog_new (GnomeCmdDir *dir);
 
-GtkType
-gnome_cmd_mkdir_dialog_get_type ();
+GtkType gnome_cmd_mkdir_dialog_get_type ();
 
 #endif // __GNOME_CMD_MKDIR_DIALOG_H__

Modified: trunk/src/gnome-cmd-path.h
==============================================================================
--- trunk/src/gnome-cmd-path.h	(original)
+++ trunk/src/gnome-cmd-path.h	Thu Mar  5 22:35:06 2009
@@ -29,16 +29,12 @@
 #define GNOME_CMD_PATH_GET_CLASS(obj)   (G_TYPE_INSTANCE_GET_CLASS ((obj), GNOME_CMD_PATH, GnomeCmdPathClass))
 
 
-typedef struct _GnomeCmdPath GnomeCmdPath;
-typedef struct _GnomeCmdPathClass GnomeCmdPathClass;
-
-
-struct _GnomeCmdPath
+struct GnomeCmdPath
 {
     GtkObject parent;
 };
 
-struct _GnomeCmdPathClass
+struct GnomeCmdPathClass
 {
     GtkObjectClass parent_class;
 

Modified: trunk/src/gnome-cmd-patternsel-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-patternsel-dialog.cc	(original)
+++ trunk/src/gnome-cmd-patternsel-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -28,7 +28,7 @@
 using namespace std;
 
 
-struct _GnomeCmdPatternselDialogPrivate
+struct GnomeCmdPatternselDialogPrivate
 {
     GnomeCmdFileList *fl;
 

Modified: trunk/src/gnome-cmd-patternsel-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-patternsel-dialog.h	(original)
+++ trunk/src/gnome-cmd-patternsel-dialog.h	Thu Mar  5 22:35:06 2009
@@ -30,29 +30,24 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_patternsel_dialog_get_type ())
 
 
-typedef struct _GnomeCmdPatternselDialog GnomeCmdPatternselDialog;
-typedef struct _GnomeCmdPatternselDialogPrivate GnomeCmdPatternselDialogPrivate;
-typedef struct _GnomeCmdPatternselDialogClass GnomeCmdPatternselDialogClass;
+struct GnomeCmdPatternselDialogPrivate;
 
 
-
-struct _GnomeCmdPatternselDialog
+struct GnomeCmdPatternselDialog
 {
     GnomeCmdStringDialog parent;
     GnomeCmdPatternselDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdPatternselDialogClass
+struct GnomeCmdPatternselDialogClass
 {
     GnomeCmdStringDialogClass parent_class;
 };
 
 
-GtkWidget*
-gnome_cmd_patternsel_dialog_new (GnomeCmdFileList *fl, gboolean mode);
+GtkWidget *gnome_cmd_patternsel_dialog_new (GnomeCmdFileList *fl, gboolean mode);
 
-GtkType
-gnome_cmd_patternsel_dialog_get_type ();
+GtkType gnome_cmd_patternsel_dialog_get_type ();
 
 #endif // __GNOME_CMD_PATTERNSEL_DIALOG_H__

Modified: trunk/src/gnome-cmd-pixmap.h
==============================================================================
--- trunk/src/gnome-cmd-pixmap.h	(original)
+++ trunk/src/gnome-cmd-pixmap.h	Thu Mar  5 22:35:06 2009
@@ -21,14 +21,14 @@
 #ifndef __GNOME_CMD_PIXMAP_H__
 #define __GNOME_CMD_PIXMAP_H__
 
-typedef struct
+struct GnomeCmdPixmap
 {
     GdkPixbuf *pixbuf;
     GdkPixmap *pixmap;
     GdkBitmap *mask;
     gint width;
     gint height;
-} GnomeCmdPixmap;
+};
 
 
 GnomeCmdPixmap *gnome_cmd_pixmap_new_from_file (const gchar *filepath, int width=-1, int height=-1);

Modified: trunk/src/gnome-cmd-plain-path.cc
==============================================================================
--- trunk/src/gnome-cmd-plain-path.cc	(original)
+++ trunk/src/gnome-cmd-plain-path.cc	Thu Mar  5 22:35:06 2009
@@ -25,7 +25,7 @@
 using namespace std;
 
 
-struct _GnomeCmdPlainPathPrivate
+struct GnomeCmdPlainPathPrivate
 {
     gchar *path;
 };

Modified: trunk/src/gnome-cmd-plain-path.h
==============================================================================
--- trunk/src/gnome-cmd-plain-path.h	(original)
+++ trunk/src/gnome-cmd-plain-path.h	Thu Mar  5 22:35:06 2009
@@ -30,19 +30,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_plain_path_get_type ())
 
 
-typedef struct _GnomeCmdPlainPath GnomeCmdPlainPath;
-typedef struct _GnomeCmdPlainPathClass GnomeCmdPlainPathClass;
-typedef struct _GnomeCmdPlainPathPrivate GnomeCmdPlainPathPrivate;
+struct GnomeCmdPlainPathPrivate;
 
 
-struct _GnomeCmdPlainPath
+struct GnomeCmdPlainPath
 {
     GnomeCmdPath parent;
 
     GnomeCmdPlainPathPrivate *priv;
 };
 
-struct _GnomeCmdPlainPathClass
+struct GnomeCmdPlainPathClass
 {
     GnomeCmdPathClass parent_class;
 

Modified: trunk/src/gnome-cmd-python-plugin.h
==============================================================================
--- trunk/src/gnome-cmd-python-plugin.h	(original)
+++ trunk/src/gnome-cmd-python-plugin.h	Thu Mar  5 22:35:06 2009
@@ -23,12 +23,12 @@
 
 #include "gnome-cmd-main-win.h"
 
-typedef struct
+struct PythonPluginData
 {
     gchar *name;        // plugin name
     gchar *path;        // full path to plugin (including file name, but without ext: .py or .pyc)
     gchar *fname;       // file name (without ext: .py or .pyc)
-} PythonPluginData;
+};
 
 
 void python_plugin_manager_init ();

Modified: trunk/src/gnome-cmd-quicksearch-popup.cc
==============================================================================
--- trunk/src/gnome-cmd-quicksearch-popup.cc	(original)
+++ trunk/src/gnome-cmd-quicksearch-popup.cc	Thu Mar  5 22:35:06 2009
@@ -31,7 +31,7 @@
 
 static GtkWindowClass *parent_class = NULL;
 
-struct _GnomeCmdQuicksearchPopupPrivate
+struct GnomeCmdQuicksearchPopupPrivate
 {
     GnomeCmdFileList *fl;
 

Modified: trunk/src/gnome-cmd-quicksearch-popup.h
==============================================================================
--- trunk/src/gnome-cmd-quicksearch-popup.h	(original)
+++ trunk/src/gnome-cmd-quicksearch-popup.h	Thu Mar  5 22:35:06 2009
@@ -29,12 +29,11 @@
 #define GNOME_CMD_IS_QUICKSEARCH_POPUP(obj) \
     GTK_CHECK_TYPE (obj, gnome_cmd_quicksearch_popup_get_type ())
 
-typedef struct _GnomeCmdQuicksearchPopup GnomeCmdQuicksearchPopup;
-typedef struct _GnomeCmdQuicksearchPopupPrivate GnomeCmdQuicksearchPopupPrivate;
-typedef struct _GnomeCmdQuicksearchPopupClass GnomeCmdQuicksearchPopupClass;
 
+struct GnomeCmdQuicksearchPopupPrivate;
 
-struct _GnomeCmdQuicksearchPopup
+
+struct GnomeCmdQuicksearchPopup
 {
     GtkWindow parent;
 
@@ -48,7 +47,7 @@
 };
 
 
-struct _GnomeCmdQuicksearchPopupClass
+struct GnomeCmdQuicksearchPopupClass
 {
     GtkWindowClass parent_class;
 };

Modified: trunk/src/gnome-cmd-remote-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-remote-dialog.cc	(original)
+++ trunk/src/gnome-cmd-remote-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -37,7 +37,7 @@
 static GnomeCmdDialogClass *parent_class = NULL;
 
 
-struct _GnomeCmdRemoteDialogPrivate
+struct GnomeCmdRemoteDialogPrivate
 {
     GtkWidget         *connection_list;
     GtkWidget         *anonymous_pw_entry;

Modified: trunk/src/gnome-cmd-remote-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-remote-dialog.h	(original)
+++ trunk/src/gnome-cmd-remote-dialog.h	Thu Mar  5 22:35:06 2009
@@ -26,12 +26,10 @@
 #define GNOME_CMD_IS_REMOTE_DIALOG(obj)       (G_TYPE_INSTANCE_CHECK_TYPE ((obj), GNOME_CMD_TYPE_REMOTE_DIALOG))
 
 
-typedef struct _GnomeCmdRemoteDialog GnomeCmdRemoteDialog;
-typedef struct _GnomeCmdRemoteDialogPrivate GnomeCmdRemoteDialogPrivate;
-typedef struct _GnomeCmdRemoteDialogClass GnomeCmdRemoteDialogClass;
+struct GnomeCmdRemoteDialogPrivate;
 
 
-struct _GnomeCmdRemoteDialog
+struct GnomeCmdRemoteDialog
 {
     GnomeCmdDialog parent;
 
@@ -39,7 +37,7 @@
 };
 
 
-struct _GnomeCmdRemoteDialogClass
+struct GnomeCmdRemoteDialogClass
 {
     GnomeCmdDialogClass parent_class;
 };

Modified: trunk/src/gnome-cmd-rename-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-rename-dialog.cc	(original)
+++ trunk/src/gnome-cmd-rename-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -29,7 +29,7 @@
 using namespace std;
 
 
-struct _GnomeCmdRenameDialogPrivate
+struct GnomeCmdRenameDialogPrivate
 {
     GnomeCmdFile *finfo;
     GnomeCmdMainWin *mw;

Modified: trunk/src/gnome-cmd-rename-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-rename-dialog.h	(original)
+++ trunk/src/gnome-cmd-rename-dialog.h	Thu Mar  5 22:35:06 2009
@@ -31,29 +31,25 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_rename_dialog_get_type ())
 
 
-typedef struct _GnomeCmdRenameDialog GnomeCmdRenameDialog;
-typedef struct _GnomeCmdRenameDialogPrivate GnomeCmdRenameDialogPrivate;
-typedef struct _GnomeCmdRenameDialogClass GnomeCmdRenameDialogClass;
+struct GnomeCmdRenameDialogPrivate;
 
 
-
-struct _GnomeCmdRenameDialog
+struct GnomeCmdRenameDialog
 {
     GtkWindow parent;
+
     GnomeCmdRenameDialogPrivate *priv;
 };
 
 
-struct _GnomeCmdRenameDialogClass
+struct GnomeCmdRenameDialogClass
 {
     GtkWindowClass parent_class;
 };
 
 
-GtkWidget*
-gnome_cmd_rename_dialog_new (GnomeCmdFile *finfo, gint x, gint y, gint width, gint height);
+GtkWidget *gnome_cmd_rename_dialog_new (GnomeCmdFile *finfo, gint x, gint y, gint width, gint height);
 
-GtkType
-gnome_cmd_rename_dialog_get_type ();
+GtkType gnome_cmd_rename_dialog_get_type ();
 
 #endif // __GNOME_CMD_RENAME_DIALOG_H__

Modified: trunk/src/gnome-cmd-search-dialog.cc
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.cc	(original)
+++ trunk/src/gnome-cmd-search-dialog.cc	Thu Mar  5 22:35:06 2009
@@ -94,7 +94,7 @@
     guint           len;
 };
 
-struct _GnomeCmdSearchDialogPrivate
+struct GnomeCmdSearchDialogPrivate
 {
     SearchData *data;                       // holds data needed by the search routines
 

Modified: trunk/src/gnome-cmd-search-dialog.h
==============================================================================
--- trunk/src/gnome-cmd-search-dialog.h	(original)
+++ trunk/src/gnome-cmd-search-dialog.h	Thu Mar  5 22:35:06 2009
@@ -31,13 +31,10 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_search_dialog_get_type ())
 
 
-typedef struct _GnomeCmdSearchDialog GnomeCmdSearchDialog;
-typedef struct _GnomeCmdSearchDialogPrivate GnomeCmdSearchDialogPrivate;
-typedef struct _GnomeCmdSearchDialogClass GnomeCmdSearchDialogClass;
+struct GnomeCmdSearchDialogPrivate;
 
 
-
-struct _GnomeCmdSearchDialog
+struct GnomeCmdSearchDialog
 {
     GnomeCmdDialog parent;
 
@@ -45,7 +42,7 @@
 };
 
 
-struct _GnomeCmdSearchDialogClass
+struct GnomeCmdSearchDialogClass
 {
     GnomeCmdDialogClass parent_class;
 };

Modified: trunk/src/gnome-cmd-smb-net.h
==============================================================================
--- trunk/src/gnome-cmd-smb-net.h	(original)
+++ trunk/src/gnome-cmd-smb-net.h	Thu Mar  5 22:35:06 2009
@@ -28,15 +28,14 @@
 } SmbEntityType;
 
 
-typedef struct
+struct SmbEntity
 {
     gchar *name;
     SmbEntityType type;
 
     // this one is only set if type == SMB_HOST and
     gchar *workgroup_name;
-} SmbEntity;
-
+};
 
 
 SmbEntity *gnome_cmd_smb_net_get_entity (const gchar *name);

Modified: trunk/src/gnome-cmd-smb-path.cc
==============================================================================
--- trunk/src/gnome-cmd-smb-path.cc	(original)
+++ trunk/src/gnome-cmd-smb-path.cc	Thu Mar  5 22:35:06 2009
@@ -27,7 +27,7 @@
 using namespace std;
 
 
-struct _GnomeCmdSmbPathPrivate
+struct GnomeCmdSmbPathPrivate
 {
     gchar *workgroup;
     gchar *resource;

Modified: trunk/src/gnome-cmd-smb-path.h
==============================================================================
--- trunk/src/gnome-cmd-smb-path.h	(original)
+++ trunk/src/gnome-cmd-smb-path.h	Thu Mar  5 22:35:06 2009
@@ -31,19 +31,17 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_smb_path_get_type ())
 
 
-typedef struct _GnomeCmdSmbPath GnomeCmdSmbPath;
-typedef struct _GnomeCmdSmbPathClass GnomeCmdSmbPathClass;
-typedef struct _GnomeCmdSmbPathPrivate GnomeCmdSmbPathPrivate;
+struct GnomeCmdSmbPathPrivate;
 
 
-struct _GnomeCmdSmbPath
+struct GnomeCmdSmbPath
 {
     GnomeCmdPath parent;
 
     GnomeCmdSmbPathPrivate *priv;
 };
 
-struct _GnomeCmdSmbPathClass
+struct GnomeCmdSmbPathClass
 {
     GnomeCmdPathClass parent_class;
 

Modified: trunk/src/gnome-cmd-types.h
==============================================================================
--- trunk/src/gnome-cmd-types.h	(original)
+++ trunk/src/gnome-cmd-types.h	Thu Mar  5 22:35:06 2009
@@ -20,7 +20,6 @@
 #ifndef __GNOME_CMD_TYPES_H__
 #define __GNOME_CMD_TYPES_H__
 
-typedef struct _GnomeCmdBookmarkGroup GnomeCmdBookmarkGroup;
 typedef gchar *GnomeCmdDateFormat;
 
 enum GnomeCmdLayout
@@ -86,10 +85,10 @@
 };
 
 
-typedef struct _GnomeCmdCon GnomeCmdCon;
+struct GnomeCmdCon;
 
 
-struct _GnomeCmdBookmarkGroup
+struct GnomeCmdBookmarkGroup
 {
     GList *bookmarks;
     GnomeCmdCon *con;

Modified: trunk/src/gnome-cmd-xfer-progress-win.h
==============================================================================
--- trunk/src/gnome-cmd-xfer-progress-win.h	(original)
+++ trunk/src/gnome-cmd-xfer-progress-win.h	Thu Mar  5 22:35:06 2009
@@ -29,12 +29,7 @@
     GTK_CHECK_TYPE (obj, gnome_cmd_xfer_progress_win_get_type ())
 
 
-typedef struct _GnomeCmdXferProgressWin GnomeCmdXferProgressWin;
-typedef struct _GnomeCmdXferProgressWinClass GnomeCmdXferProgressWinClass;
-
-
-
-struct _GnomeCmdXferProgressWin
+struct GnomeCmdXferProgressWin
 {
     GtkWindow parent;
 
@@ -47,7 +42,7 @@
 };
 
 
-struct _GnomeCmdXferProgressWinClass
+struct GnomeCmdXferProgressWinClass
 {
     GtkWindowClass parent_class;
 };

Modified: trunk/src/handle.h
==============================================================================
--- trunk/src/handle.h	(original)
+++ trunk/src/handle.h	Thu Mar  5 22:35:06 2009
@@ -21,11 +21,11 @@
 #ifndef __HANDLE_H__
 #define __HANDLE_H__
 
-typedef struct
+struct Handle
 {
     gint ref_count;
     gpointer ref;
-} Handle;
+};
 
 
 inline Handle *handle_new (gpointer ref)

Modified: trunk/src/ls_colors.h
==============================================================================
--- trunk/src/ls_colors.h	(original)
+++ trunk/src/ls_colors.h	Thu Mar  5 22:35:06 2009
@@ -23,12 +23,12 @@
 
 #include "gnome-cmd-file.h"
 
-typedef struct
+struct LsColor
 {
     GnomeVFSFileType type;
     gchar *ext;
     GdkColor *fg, *bg;
-} LsColor;
+};
 
 void     ls_colors_init ();
 LsColor *ls_colors_get (GnomeCmdFile *finfo);



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