|
Revision 1063, 0.7 kB
(checked in by asterix, 4 years ago)
|
|
reorder files
|
| Line | |
|---|
| 1 | /* -*- Mode: C; c-basic-offset: 4 -*- */ |
|---|
| 2 | %% |
|---|
| 3 | headers |
|---|
| 4 | #include <Python.h> |
|---|
| 5 | |
|---|
| 6 | #include "pygobject.h" |
|---|
| 7 | #include "eggtrayicon.h" |
|---|
| 8 | %% |
|---|
| 9 | modulename trayicon |
|---|
| 10 | %% |
|---|
| 11 | import gtk.Plug as PyGtkPlug_Type |
|---|
| 12 | import gtk.gdk.Screen as PyGdkScreen_Type |
|---|
| 13 | %% |
|---|
| 14 | ignore-glob |
|---|
| 15 | *_get_type |
|---|
| 16 | %% |
|---|
| 17 | override egg_tray_icon_send_message kwargs |
|---|
| 18 | static PyObject* |
|---|
| 19 | _wrap_egg_tray_icon_send_message(PyGObject *self, PyObject *args, PyObject *kwargs) |
|---|
| 20 | { |
|---|
| 21 | static char *kwlist[] = {"timeout", "message", NULL}; |
|---|
| 22 | int timeout, len, ret; |
|---|
| 23 | char *message; |
|---|
| 24 | |
|---|
| 25 | if (!PyArg_ParseTupleAndKeywords(args, kwargs, "is#:TrayIcon.send_message", kwlist, &timeout, &message, &len)) |
|---|
| 26 | return NULL; |
|---|
| 27 | ret = egg_tray_icon_send_message(EGG_TRAY_ICON(self->obj), timeout, message, len); |
|---|
| 28 | return PyInt_FromLong(ret); |
|---|
| 29 | } |
|---|