[gnome-commander] GnomeCmdMainWin: added operator for conversion to GObject *
- From: Piotr Eljasiak <epiotr src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gnome-commander] GnomeCmdMainWin: added operator for conversion to GObject *
- Date: Wed, 30 Sep 2009 15:51:46 +0000 (UTC)
commit 5d02185204efce1c62647959ff8cbb7ef6ac749f
Author: Piotr Eljasiak <epiotr src gnome org>
Date: Wed Sep 30 17:20:10 2009 +0200
GnomeCmdMainWin: added operator for conversion to GObject *
src/gnome-cmd-main-win.cc | 4 ++--
src/gnome-cmd-main-win.h | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/src/gnome-cmd-main-win.cc b/src/gnome-cmd-main-win.cc
index 5af9d53..94604fc 100644
--- a/src/gnome-cmd-main-win.cc
+++ b/src/gnome-cmd-main-win.cc
@@ -775,7 +775,7 @@ static void init (GnomeCmdMainWin *mw)
gnome_app_construct (GNOME_APP (mw), "gnome-commander", gcmd_owner.is_root() ? _("GNOME Commander - ROOT PRIVILEGES") :
_("GNOME Commander"));
- g_object_set_data (G_OBJECT (mw), "main_win", mw);
+ g_object_set_data (*mw, "main_win", mw);
restore_size_and_pos (mw);
gtk_window_set_policy (GTK_WINDOW (mw), TRUE, TRUE, FALSE);
@@ -1242,7 +1242,7 @@ void GnomeCmdMainWin::update_list_orientation()
priv->paned = gnome_cmd_data.list_orientation ? gtk_vpaned_new () : gtk_hpaned_new ();
gtk_widget_ref (priv->paned);
- g_object_set_data_full (G_OBJECT (this), "paned", priv->paned, (GDestroyNotify) gtk_widget_unref);
+ g_object_set_data_full (*this, "paned", priv->paned, (GDestroyNotify) gtk_widget_unref);
gtk_widget_show (priv->paned);
gtk_paned_pack1 (GTK_PANED (priv->paned), priv->file_selector[LEFT], TRUE, TRUE);
diff --git a/src/gnome-cmd-main-win.h b/src/gnome-cmd-main-win.h
index 2b9916e..8488ec8 100644
--- a/src/gnome-cmd-main-win.h
+++ b/src/gnome-cmd-main-win.h
@@ -48,6 +48,7 @@ struct GnomeCmdMainWin
Private *priv;
+ operator GObject * () { return G_OBJECT (this); }
operator GtkObject * () { return GTK_OBJECT (this); }
operator GtkWidget * () { return GTK_WIDGET (this); }
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]