Mercurial > pidgin
view finch/libgnt/pygnt/gntwidget.override @ 20947:3c4d37b98c31
merge of '60c313e0859ab5b5106920e3133826ed0ec09703'
and '9af00415175d29e7e9227c383939d392ea0af499'
author | Casey Harkins <charkins@pidgin.im> |
---|---|
date | Mon, 15 Oct 2007 04:14:53 +0000 |
parents | 44b4e8bd759b |
children |
line wrap: on
line source
/** * 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; }