[gnome-commander] convert 'typedef struct {} X' -> 'struct X {}'



commit 3701cbc1517dfa98da9e7a3cf55226d68b5765b1
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Tue Nov 16 19:52:00 2010 +0100

    convert 'typedef struct {} X' -> 'struct X {}'

 libgcmd/gnome-cmd-state.h          |    5 +++--
 libgcmd/plugin-info.h              |    5 +++--
 src/gnome-cmd-file-popmenu.cc      |    4 ++--
 src/gnome-cmd-file-props-dialog.cc |    4 ++--
 src/gnome-cmd-hintbox.cc           |    4 ++--
 src/gnome-cmd-main-menu.cc         |    8 ++++----
 src/gnome-cmd-xfer.cc              |    4 ++--
 src/intviewer/viewer-window.cc     |    5 +++--
 src/utils.cc                       |    4 ++--
 9 files changed, 23 insertions(+), 20 deletions(-)
---
diff --git a/libgcmd/gnome-cmd-state.h b/libgcmd/gnome-cmd-state.h
index f03f3de..89b1da4 100644
--- a/libgcmd/gnome-cmd-state.h
+++ b/libgcmd/gnome-cmd-state.h
@@ -21,13 +21,14 @@
 #ifndef __GNOME_CMD_STATE_H__
 #define __GNOME_CMD_STATE_H__
 
-typedef struct {
+struct GnomeCmdState 
+{
     GnomeVFSURI *active_dir_uri;
     GnomeVFSURI *inactive_dir_uri;
     GList *active_dir_files;
     GList *inactive_dir_files;
     GList *active_dir_selected_files;
     GList *inactive_dir_selected_files;
-} GnomeCmdState;
+};
 
 #endif //__GNOME_CMD_STATE_H__
diff --git a/libgcmd/plugin-info.h b/libgcmd/plugin-info.h
index 5d07f72..8710631 100644
--- a/libgcmd/plugin-info.h
+++ b/libgcmd/plugin-info.h
@@ -31,7 +31,8 @@
 /* This struct must never ever be changed
  * since it is needed to determinate the version of a plugin
  */
-typedef struct {
+struct PluginInfo 
+{
     gint plugin_system_version;
 
     const gchar *name;
@@ -42,7 +43,7 @@ typedef struct {
     gchar **documenters;
     const gchar *translator;
     const gchar *webpage;
-} PluginInfo;
+};
 
 
 /* This function prototype must never ever be changed
diff --git a/src/gnome-cmd-file-popmenu.cc b/src/gnome-cmd-file-popmenu.cc
index c2f74d0..7b2bbd9 100644
--- a/src/gnome-cmd-file-popmenu.cc
+++ b/src/gnome-cmd-file-popmenu.cc
@@ -41,12 +41,12 @@ using namespace std;
 #define MAX_OPEN_WITH_APPS 20
 
 
-typedef struct
+struct OpenWithData
 {
     GList *files;
     GnomeCmdApp *app;
     GtkPixmap *pm;
-} OpenWithData;
+};
 
 
 static GtkMenuClass *parent_class = NULL;
diff --git a/src/gnome-cmd-file-props-dialog.cc b/src/gnome-cmd-file-props-dialog.cc
index 26a0204..d1f60f4 100644
--- a/src/gnome-cmd-file-props-dialog.cc
+++ b/src/gnome-cmd-file-props-dialog.cc
@@ -38,7 +38,7 @@
 using namespace std;
 
 
-typedef struct
+struct GnomeCmdFilePropsDialogPrivate
 {
     GtkWidget *dialog;
     GnomeCmdFile *f;
@@ -63,7 +63,7 @@ typedef struct
     GtkWidget *chown_component;
     GtkWidget *chmod_component;
 
-} GnomeCmdFilePropsDialogPrivate;
+};
 
 
 inline const gchar *get_size_disp_string (GnomeVFSFileSize size)
diff --git a/src/gnome-cmd-hintbox.cc b/src/gnome-cmd-hintbox.cc
index 0fdb978..6cefcec 100644
--- a/src/gnome-cmd-hintbox.cc
+++ b/src/gnome-cmd-hintbox.cc
@@ -50,13 +50,13 @@ using namespace std;
 
 typedef GtkHBoxClass  GnomeCmdHintBoxClass;
 
-typedef struct
+struct GnomeCmdHintBox
 {
   GtkHBox    parent_instance;
 
   gchar     *stock_id;
   gchar     *hint;
-} GnomeCmdHintBox;
+};
 
 #define GNOME_CMD_HINT_BOX(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GNOME_CMD_TYPE_HINT_BOX, GnomeCmdHintBox))
 
diff --git a/src/gnome-cmd-main-menu.cc b/src/gnome-cmd-main-menu.cc
index 7b8b428..7ca6703 100644
--- a/src/gnome-cmd-main-menu.cc
+++ b/src/gnome-cmd-main-menu.cc
@@ -44,7 +44,7 @@ using namespace std;
    menus. Another difference is that we want only mouse-clicks in the menu to generate an
    action, keyboard shortcuts are caught by the different components by them self */
 
-typedef enum
+enum MenuType
 {
     MENU_TYPE_END,        // No more items, use it at the end of an array
     MENU_TYPE_ITEM,       // Normal item, or radio item if it is inside a radioitems group
@@ -53,10 +53,10 @@ typedef enum
     MENU_TYPE_RADIOITEMS, // Radio item group
     MENU_TYPE_SUBTREE,    // Item that defines a subtree/submenu
     MENU_TYPE_SEPARATOR   // Separator line (menus) or blank space (toolbars)
-} MenuType;
+};
 
 
-typedef struct
+struct MenuData
 {
     MenuType type;          // Type of item
     const gchar *label;     // The text to use for this menu-item
@@ -78,7 +78,7 @@ typedef struct
                                      */
 
     GtkWidget *widget;      // Filled in by gnome_app_create*, you can use this to tweak the widgets once they have been created
-} MenuData;
+};
 
 #define MENUTYPE_END { \
     MENU_TYPE_END, \
diff --git a/src/gnome-cmd-xfer.cc b/src/gnome-cmd-xfer.cc
index 177d88f..c9f6673 100644
--- a/src/gnome-cmd-xfer.cc
+++ b/src/gnome-cmd-xfer.cc
@@ -37,7 +37,7 @@ using namespace std;
 #define XFER_PRIORITY GNOME_VFS_PRIORITY_DEFAULT
 
 
-typedef struct
+struct XferData
 {
     GnomeVFSXferOptions xferOptions;
     GnomeVFSAsyncHandle *handle;
@@ -73,7 +73,7 @@ typedef struct
     gboolean done;
     gboolean aborted;
 
-} XferData;
+};
 
 
 inline void free_xfer_data (XferData *data)
diff --git a/src/intviewer/viewer-window.cc b/src/intviewer/viewer-window.cc
index 9d6f7eb..ca156c0 100644
--- a/src/intviewer/viewer-window.cc
+++ b/src/intviewer/viewer-window.cc
@@ -473,7 +473,8 @@ enum MENUITEMTYPE
 } ;
 
 
-typedef struct {
+struct MENU_ITEM_DATA
+{
     MENUITEMTYPE menutype;
     const gchar *label;
 
@@ -491,7 +492,7 @@ typedef struct {
     GtkWidget **menu_item_widget;
 
     GSList **radio_list;
-} MENU_ITEM_DATA;
+};
 
 static GtkWidget *create_menu_item (MENUITEMTYPE type,
                                     const gchar *name,
diff --git a/src/utils.cc b/src/utils.cc
index eba8fcb..78e1229 100644
--- a/src/utils.cc
+++ b/src/utils.cc
@@ -39,12 +39,12 @@
 using namespace std;
 
 
-typedef struct
+struct TmpDlData
 {
     GnomeCmdFile *f;
     GtkWidget *dialog;
     gpointer *args;
-} TmpDlData;
+};
 
 #ifdef HAVE_LOCALE_H
 extern struct lconv *locale_information;



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