blob: 8b50230f77ce7413c588faa3c8f8e1074e1fb110 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
/**
* pygnt- Python bindings for the GNT toolkit.
* Copyright (C) 2007 Sadrul Habib Chowdhury <sadrul@pidgin.im>
*
* gntwidget.override: overrides for generic widgets.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02111-1301
* USA
*/
%%
override gnt_widget_get_size args
static PyObject *
_wrap_gnt_widget_get_size(PyGObject *self)
{
PyObject *list = PyList_New(0);
int x = 0, y = 0;
gnt_widget_get_size(GNT_WIDGET(self->obj), &x, &y);
PyList_Append(list, PyInt_FromLong((long)x));
PyList_Append(list, PyInt_FromLong((long)y));
return list;
}
|