Index: gobject/pygobject-private.h
===================================================================
--- gobject/pygobject-private.h	(revision 711)
+++ gobject/pygobject-private.h	(working copy)
@@ -263,15 +263,6 @@
 
 typedef struct {
     PyObject_HEAD
-    GOptionGroup *group;
-    gboolean other_owner, is_in_context;
-    PyObject *callback;
-    GSList *strings; /* all strings added with the entries, are freed on 
-                        GOptionGroup.destroy() */
-} PyGOptionGroup;
-
-typedef struct {
-    PyObject_HEAD
     PyGOptionGroup *main_group;
     GOptionContext *context;
 } PyGOptionContext;
Index: gobject/gobjectmodule.c
===================================================================
--- gobject/gobjectmodule.c	(revision 711)
+++ gobject/gobjectmodule.c	(working copy)
@@ -3501,7 +3501,10 @@ struct _PyGObject_Functions pygobject_ap
   disable_warning_redirections,
   
   pyg_type_register_custom_callback,
-  pyg_gerror_exception_check
+  pyg_gerror_exception_check,
+
+  pyg_option_group_new
+  
 };
 
 #define REGISTER_TYPE(d, type, name) \
Index: gobject/pygobject.h
===================================================================
--- gobject/pygobject.h	(revision 711)
+++ gobject/pygobject.h	(working copy)
@@ -84,6 +84,18 @@
 typedef PyTypeObject * (*PyGTypeRegistrationFunction) (const gchar *name,
 						       gpointer data);
 
+/* pygoption.c */
+extern PyTypeObject PyGOptionGroup_Type;
+
+typedef struct {
+    PyObject_HEAD
+    GOptionGroup *group;
+    gboolean other_owner, is_in_context;
+    PyObject *callback;
+    GSList *strings; /* all strings added with the entries, are freed on 
+                        GOptionGroup.destroy() */
+} PyGOptionGroup;
+
 struct _PyGObject_Functions {
     /* 
      * All field names in here are considered private,
@@ -198,9 +210,10 @@
 				      PyGTypeRegistrationFunction callback,
 				      gpointer data);
     gboolean  (*gerror_exception_check) (GError **error);
-
+    PyObject* (*option_group_new) (GOptionGroup *group);
 };
 
+
 #ifndef _INSIDE_PYGOBJECT_
 
 #if defined(NO_IMPORT) || defined(NO_IMPORT_PYGOBJECT)
@@ -262,6 +275,7 @@
 #define pyg_disable_warning_redirections (_PyGObject_API->disable_warning_redirections)
 #define pyg_type_register_custom_callback (_PyGObject_API->type_register_custom)
 #define pyg_gerror_exception_check (_PyGObject_API->gerror_exception_check)
+#define pyg_option_group_new       (_PyGObject_API->option_group_new)
 
 
 #define pyg_block_threads()   G_STMT_START {   \
