[pygtk/gtk-3.0: 7/55] Fixme: Work around missing gtk_menu_get_position_func{, _data}



commit e51c09edf0b3ada4febdaed4677a80ff0708fc0a
Author: John Stowers <john stowers gmail com>
Date:   Mon Jul 5 12:41:37 2010 +1200

    Fixme: Work around missing gtk_menu_get_position_func{,_data}

 gtk/gtk.override |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtk.override b/gtk/gtk.override
index e44ee5d..1517bb9 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -1621,8 +1621,8 @@ _wrap_gtk_menu_popup(PyGObject *self, PyObject *args, PyObject *kwargs)
 
     /* this is an ugly hack to avoid leaking memory and references
        gtk_menu_popup should use a data destroy function */
-    if (menu->position_func == pygtk_menu_position) {
-        cunote = menu->position_func_data;
+    if (menu->_g_sealed__position_func == pygtk_menu_position) {
+        cunote = menu->_g_sealed__position_func_data;
         Py_DECREF(cunote->func);
         Py_XDECREF(cunote->data);
         g_free(cunote);



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