Mercurial > pidgin
annotate finch/libgnt/pygnt/gnt.override @ 18717:d3542cffbb42
Allow un/setting flags for widgets.
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sun, 29 Jul 2007 16:36:05 +0000 |
parents | 5e1412f4e67a |
children | 1ad1a4e8dfea |
rev | line source |
---|---|
15929
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
1 %% |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
2 headers |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
3 #include <Python.h> |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
4 #include "pygobject.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
5 #include "gnt.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
6 #include "gntbindable.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
7 #include "gntwidget.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
8 #include "gntbox.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
9 #include "gntbutton.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
10 #include "gntcheckbox.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
11 #include "gntcolors.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
12 #include "gntcombobox.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
13 #include "gntentry.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
14 #include "gntfilesel.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
15 #include "gntkeys.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
16 #include "gntlabel.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
17 #include "gntline.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
18 #include "gntmenu.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
19 #include "gntmenuitem.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
20 #include "gntmenuitemcheck.h" |
18556
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
21 #include "gntslider.h" |
15929
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
22 #include "gntstyle.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
23 #include "gnttextview.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
24 #include "gnttree.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
25 #include "gntutils.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
26 #include "gntwindow.h" |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
27 #include "gntwm.h" |
18556
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
28 #include "gntws.h" |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
29 #include "common.h" |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
30 %% |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
31 include |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
32 gntfilesel.override |
5e1412f4e67a
Do some work to make pygnt more useful. The dbus-gnt script works fairly
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
15929
diff
changeset
|
33 gnttree.override |
15929
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
34 %% |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
35 modulename gnt |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
36 %% |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
37 import gobject.GObject as PyGObject_Type |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
38 %% |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
39 ignore-glob |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
40 *_get_gtype |
8fd5ab3f9716
python bindings for libgnt. dbus-gnt is a gnt-ui (sort of) for gaim over dbus. It allows continuing with the currently opened conversations. pygnt/README.txt explains what to do. Use at your own risk.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
diff
changeset
|
41 %% |
18717
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
42 define set_flag |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
43 static PyObject * |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
44 _wrap_set_flag(PyGObject *self, PyObject *args, PyObject *kwargs) |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
45 { |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
46 static char *kwlist[] = {"flags", NULL}; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
47 PyGObject *widget; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
48 int flags; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
49 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
50 if (!PyArg_ParseTuple(args, "O!i:gnt.set_flag", &PyGntWidget_Type, &widget, |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
51 &flags)) { |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
52 return NULL; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
53 } |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
54 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
55 GNT_WIDGET_SET_FLAGS(widget->obj, flags); |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
56 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
57 Py_INCREF(Py_None); |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
58 return Py_None; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
59 } |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
60 %% |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
61 define unset_flag |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
62 static PyObject * |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
63 _wrap_unset_flag(PyGObject *self, PyObject *args, PyObject *kwargs) |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
64 { |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
65 static char *kwlist[] = {"flags", NULL}; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
66 PyGObject *widget; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
67 int flags; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
68 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
69 if (!PyArg_ParseTuple(args, "O!i:gnt.unset_flag", &PyGntWidget_Type, &widget, |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
70 &flags)) { |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
71 return NULL; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
72 } |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
73 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
74 GNT_WIDGET_UNSET_FLAGS(widget->obj, flags); |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
75 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
76 Py_INCREF(Py_None); |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
77 return Py_None; |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
78 } |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
79 |
d3542cffbb42
Allow un/setting flags for widgets.
Sadrul Habib Chowdhury <imadil@gmail.com>
parents:
18556
diff
changeset
|
80 |