python: Handle get_info('win_ptr')

This commit is contained in:
Patrick Griffis 2016-02-18 12:59:02 -05:00
parent aab881fda2
commit 0826e7d353
1 changed files with 1 additions and 1 deletions

View 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);