mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-17 03:00:19 +00:00
python: Handle get_info('win_ptr')
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user