finch/libgnt/pygnt/gntbox.override

Sat, 18 Aug 2007 05:54:49 +0000

author
William Ehlhardt <williamehlhardt@gmail.com>
date
Sat, 18 Aug 2007 05:54:49 +0000
branch
soc.2007.certmgr
changeset 19489
772b691e901b
parent 19185
0af58585b665
child 19859
71d37b57eff2
permissions
-rw-r--r--

- Add purple_certificate_display_x509

19185
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
1 /**
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
2 * pygnt- Python bindings for the GNT toolkit.
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
3 * Copyright (C) 2007 Sadrul Habib Chowdhury <sadrul@pidgin.im>
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
4 *
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
5 * gntbox.override: overrides for the box widget.
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
6 *
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
7 * This library is free software; you can redistribute it and/or
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
8 * modify it under the terms of the GNU Lesser General Public
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
9 * License as published by the Free Software Foundation; either
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
10 * version 2.1 of the License, or (at your option) any later version.
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
11 *
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
12 * This library is distributed in the hope that it will be useful,
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
15 * Lesser General Public License for more details.
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
16 *
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
17 * You should have received a copy of the GNU Lesser General Public
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
18 * License along with this library; if not, write to the Free Software
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
19 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
20 * USA
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
21 */
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
22 %%
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
23 override gnt_box_add_widget kwargs
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
24 static PyObject *
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
25 _wrap_gnt_box_add_widget(PyGObject *self, PyObject *args, PyObject *kwargs)
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
26 {
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
27 static char *kwlist[] = { "widget", NULL };
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
28 PyGObject *widget;
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
29
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
30 if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:GntBox.add_widget", kwlist, &PyGntWidget_Type, &widget))
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
31 return NULL;
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
32
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
33 gnt_box_add_widget(GNT_BOX(self->obj), GNT_WIDGET(widget->obj));
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
34 Py_INCREF(widget);
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
35
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
36 Py_INCREF(Py_None);
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
37 return Py_None;
0af58585b665 This gets rid of more weird crashes.
Sadrul Habib Chowdhury <sadrul@pidgin.im>
parents:
diff changeset
38 }

mercurial