view finch/libgnt/pygnt/gntbox.override @ 20191:0f964c98798c

applied changes from 8df1cedfbc540695a8645b21230d41783fe4f171 through 326d6e6c8c6a955cdba84f1f802fc21ec3e6b662
author Richard Laager <rlaager@wiktel.com>
date Fri, 28 Sep 2007 15:01:27 +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>
 *
 *   gntbox.override: overrides for the box widget.
 *
 * 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_box_add_widget kwargs
static PyObject *
_wrap_gnt_box_add_widget(PyGObject *self, PyObject *args, PyObject *kwargs)
{
    static char *kwlist[] = { "widget", NULL };
    PyGObject *widget;

    if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:GntBox.add_widget", kwlist, &PyGntWidget_Type, &widget))
        return NULL;
    
    gnt_box_add_widget(GNT_BOX(self->obj), GNT_WIDGET(widget->obj));
	Py_INCREF(widget);
    
    Py_INCREF(Py_None);
    return Py_None;
}