view finch/libgnt/pygnt/gntbox.override @ 19582:d4fb44035799

merge of '1bc4d7f1a38917e6d2bf837a660f5f498a29ea0c' and 'dd0060c3e748fd6d877ca32879c785c9bdb434fc'
author Ka-Hing Cheung <khc@hxbc.us>
date Mon, 03 Sep 2007 02:19:23 +0000
parents 7389b597a812
children 44b4e8bd759b
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307
 * 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;
}