]> jfr.im git - irc/hexchat/hexchat.git/commitdiff
python: Handle get_info('win_ptr')
authorPatrick Griffis <redacted>
Thu, 18 Feb 2016 17:59:02 +0000 (12:59 -0500)
committerPatrick Griffis <redacted>
Thu, 18 Feb 2016 17:59:02 +0000 (12:59 -0500)
plugins/python/python.c

index b97761f5e419df1e1c7e6778e58d83d15d3acbb8..34784c3b150c202531eb44719a119d7b4bbda858 100644 (file)
@@ -1726,7 +1726,7 @@ Module_hexchat_get_info(PyObject *self, PyObject *args)
        if (info == NULL) {
                Py_RETURN_NONE;
        }
-       if (strcmp (name, "gtkwin_ptr") == 0)
+       if (strcmp (name, "gtkwin_ptr") == 0 || strcmp (name, "win_ptr") == 0)
                return PyUnicode_FromFormat("%p", info); /* format as pointer */
        else
                return PyUnicode_FromString(info);