[gnome-commander] search: GnomeCmdSearchDialogPrivate -> GnomeCmdSearchDialog::Private



commit 86a220d3d6200f0dfb3e3a32993f99434fffc32c
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sat May 14 23:12:49 2011 +0200

    search: GnomeCmdSearchDialogPrivate -> GnomeCmdSearchDialog::Private

 src/dialogs/gnome-cmd-search-dialog.cc |   15 +++++++++++----
 src/dialogs/gnome-cmd-search-dialog.h  |   11 ++---------
 2 files changed, 13 insertions(+), 13 deletions(-)
---
diff --git a/src/dialogs/gnome-cmd-search-dialog.cc b/src/dialogs/gnome-cmd-search-dialog.cc
index 5912591..cec03ad 100755
--- a/src/dialogs/gnome-cmd-search-dialog.cc
+++ b/src/dialogs/gnome-cmd-search-dialog.cc
@@ -48,8 +48,6 @@ static char *msgs[] = {N_("Search local directories only"),
 #define SEARCH_BUFFER_SIZE  (SEARCH_JUMP_SIZE * 10U)
 
 
-G_DEFINE_TYPE (GnomeCmdSearchDialog, gnome_cmd_search_dialog, GNOME_CMD_TYPE_DIALOG)
-
 
 struct SearchData
 {
@@ -95,7 +93,13 @@ struct SearchFileData
 };
 
 
-struct GnomeCmdSearchDialogPrivate
+struct GnomeCmdSearchDialogClass
+{
+    GnomeCmdDialogClass parent_class;
+};
+
+
+struct GnomeCmdSearchDialog::Private
 {
     SearchData *data;                       // holds data needed by the search routines
 
@@ -119,6 +123,9 @@ struct GnomeCmdSearchDialogPrivate
 };
 
 
+G_DEFINE_TYPE (GnomeCmdSearchDialog, gnome_cmd_search_dialog, GNOME_CMD_TYPE_DIALOG)
+
+
 /**
  * Puts a string in the statusbar.
  *
@@ -737,7 +744,7 @@ static void gnome_cmd_search_dialog_init (GnomeCmdSearchDialog *dialog)
     GtkWidget *sw;
     GtkWidget *pbar;
 
-    dialog->priv = g_new0 (GnomeCmdSearchDialogPrivate, 1);
+    dialog->priv = g_new0 (GnomeCmdSearchDialog::Private, 1);
     dialog->priv->data = g_new0 (SearchData, 1);
 
     window = GTK_WIDGET (dialog);
diff --git a/src/dialogs/gnome-cmd-search-dialog.h b/src/dialogs/gnome-cmd-search-dialog.h
index b2b1db2..9ca6e2f 100644
--- a/src/dialogs/gnome-cmd-search-dialog.h
+++ b/src/dialogs/gnome-cmd-search-dialog.h
@@ -31,20 +31,13 @@
 #define GNOME_CMD_SEARCH_DIALOG_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_SEARCH_DIALOG, GnomeCmdSearchDialogClass))
 
 
-struct GnomeCmdSearchDialogPrivate;
-
-
 struct GnomeCmdSearchDialog
 {
     GnomeCmdDialog parent;
 
-    GnomeCmdSearchDialogPrivate *priv;
-};
+    class Private;
 
-
-struct GnomeCmdSearchDialogClass
-{
-    GnomeCmdDialogClass parent_class;
+    Private *priv;
 };
 
 



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