python: Handle get_info('win_ptr')
This commit is contained in:
parent
aab881fda2
commit
0826e7d353
@ -1726,7 +1726,7 @@ Module_hexchat_get_info(PyObject *self, PyObject *args)
|
|||||||
if (info == NULL) {
|
if (info == NULL) {
|
||||||
Py_RETURN_NONE;
|
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 */
|
return PyUnicode_FromFormat("%p", info); /* format as pointer */
|
||||||
else
|
else
|
||||||
return PyUnicode_FromString(info);
|
return PyUnicode_FromString(info);
|
||||||
|
Loading…
Reference in New Issue
Block a user