[gnome-commander] GnomeCmdFileList: operator for casting to GObject *



commit 47bbbf2898833becf1acb14944dce37be3d52b75
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Sun Jun 20 11:38:21 2010 +0200

    GnomeCmdFileList: operator for casting to GObject *

 src/gnome-cmd-file-list.h |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-cmd-file-list.h b/src/gnome-cmd-file-list.h
index 594e611..72767cb 100644
--- a/src/gnome-cmd-file-list.h
+++ b/src/gnome-cmd-file-list.h
@@ -70,6 +70,7 @@ struct GnomeCmdFileList
     void *operator new (size_t size);
     void operator delete (void *p)      {  g_object_unref (p);  }
 
+    operator GObject * ()               {  return G_OBJECT (this);         }
     operator GtkObject * ()             {  return GTK_OBJECT (this);       }
     operator GtkWidget * ()             {  return GTK_WIDGET (this);       }
     operator GtkCList * ()              {  return GTK_CLIST (this);        }



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