[gnome-commander] GnomeCmdConnectDialog: initial migration to C++
- From: Piotr Eljasiak <epiotr src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdConnectDialog: initial migration to C++
- Date: Wed, 14 Sep 2011 16:17:21 +0000 (UTC)
commit 3b76805209d04cff804a4fb669b4af23aa34b954
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Sep 14 18:16:45 2011 +0200
GnomeCmdConnectDialog: initial migration to C++
src/gnome-cmd-con-dialog.cc | 17 ++++++++++-------
1 files changed, 10 insertions(+), 7 deletions(-)
---
diff --git a/src/gnome-cmd-con-dialog.cc b/src/gnome-cmd-con-dialog.cc
index b852aff..15e2f0f 100644
--- a/src/gnome-cmd-con-dialog.cc
+++ b/src/gnome-cmd-con-dialog.cc
@@ -65,7 +65,10 @@ using namespace std;
struct GnomeCmdConnectDialog
{
GtkDialog parent;
- GnomeCmdConnectDialogPrivate *priv;
+
+ class Private;
+
+ Private *priv;
};
struct GnomeCmdConnectDialogClass
@@ -74,7 +77,7 @@ struct GnomeCmdConnectDialogClass
};
-struct GnomeCmdConnectDialogPrivate
+struct GnomeCmdConnectDialog::Private
{
string *alias;
string uri_str;
@@ -97,12 +100,12 @@ struct GnomeCmdConnectDialogPrivate
GtkWidget *user_entry;
GtkWidget *password_entry;
- GnomeCmdConnectDialogPrivate();
- ~GnomeCmdConnectDialogPrivate();
+ Private();
+ ~Private();
};
-inline GnomeCmdConnectDialogPrivate::GnomeCmdConnectDialogPrivate()
+inline GnomeCmdConnectDialog::Private::Private()
{
alias = NULL;
@@ -148,7 +151,7 @@ inline GnomeCmdConnectDialogPrivate::GnomeCmdConnectDialogPrivate()
}
-inline GnomeCmdConnectDialogPrivate::~GnomeCmdConnectDialogPrivate()
+inline GnomeCmdConnectDialog::Private::~Private()
{
g_object_unref (alias_entry);
g_object_unref (uri_entry);
@@ -453,7 +456,7 @@ static void gnome_cmd_connect_dialog_init (GnomeCmdConnectDialog *dialog)
GtkWidget *hbox;
GtkWidget *vbox;
- dialog->priv = new GnomeCmdConnectDialogPrivate;
+ dialog->priv = new GnomeCmdConnectDialog::Private;
g_return_if_fail (dialog->priv != NULL);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]