[gnome-commander] GnomeCmdRemoteDialog: initial migration to C++



commit aaff569b1b97d86229965c4bfc88e5c7992914ae
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Mon Sep 12 17:46:22 2011 +0200

    GnomeCmdRemoteDialog: initial migration to C++

 src/gnome-cmd-remote-dialog.cc |   10 +++++-----
 src/gnome-cmd-remote-dialog.h  |    7 +++----
 2 files changed, 8 insertions(+), 9 deletions(-)
---
diff --git a/src/gnome-cmd-remote-dialog.cc b/src/gnome-cmd-remote-dialog.cc
index 94456a1..f0ef19e 100644
--- a/src/gnome-cmd-remote-dialog.cc
+++ b/src/gnome-cmd-remote-dialog.cc
@@ -35,11 +35,11 @@
 using namespace std;
 
 
-struct GnomeCmdRemoteDialogPrivate
+struct GnomeCmdRemoteDialog::Private
 {
-    GtkWidget         *connection_list;
-    GtkWidget         *anonymous_pw_entry;
-    GtkWidget         *connect_button;
+    GtkWidget *connection_list;
+    GtkWidget *anonymous_pw_entry;
+    GtkWidget *connect_button;
 };
 
 
@@ -431,7 +431,7 @@ static void gnome_cmd_remote_dialog_init (GnomeCmdRemoteDialog *ftp_dialog)
 
     GtkWidget *dialog = GTK_WIDGET (ftp_dialog);
 
-    ftp_dialog->priv = g_new0 (GnomeCmdRemoteDialogPrivate, 1);
+    ftp_dialog->priv = g_new0 (GnomeCmdRemoteDialog::Private, 1);
 
     gtk_window_set_position (GTK_WINDOW (dialog), GTK_WIN_POS_CENTER);
     gtk_window_set_title (GTK_WINDOW (dialog), _("Remote Connections"));
diff --git a/src/gnome-cmd-remote-dialog.h b/src/gnome-cmd-remote-dialog.h
index d61931f..e658ea9 100644
--- a/src/gnome-cmd-remote-dialog.h
+++ b/src/gnome-cmd-remote-dialog.h
@@ -28,14 +28,13 @@
 #define GNOME_CMD_REMOTE_DIALOG_GET_CLASS(obj)    (G_TYPE_INSTANCE_GET_CLASS((obj), GNOME_CMD_TYPE_REMOTE_DIALOG, GnomeCmdRemoteDialogClass))
 
 
-struct GnomeCmdRemoteDialogPrivate;
-
-
 struct GnomeCmdRemoteDialog
 {
     GnomeCmdDialog parent;
 
-    GnomeCmdRemoteDialogPrivate *priv;
+    struct Private;
+
+    Private *priv;
 };
 
 



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