| 1 |
diff -rup notify-python-0.1.1-orig/src/pynotify.c notify-python-0.1.1/src/pynotify.c |
|---|
| 2 |
--- notify-python-0.1.1-orig/src/pynotify.c 2006-10-08 19:59:03.000000000 +0200 |
|---|
| 3 |
+++ notify-python-0.1.1/src/pynotify.c 2007-03-01 12:17:24.000000000 +0100 |
|---|
| 4 |
@@ -215,6 +215,19 @@ _wrap_notify_notification_attach_to_widg |
|---|
| 5 |
} |
|---|
| 6 |
|
|---|
| 7 |
static PyObject * |
|---|
| 8 |
+_wrap_notify_notification_attach_to_status_icon(PyGObject *self, PyObject *args, PyObject *kwargs) |
|---|
| 9 |
+{ |
|---|
| 10 |
+ static char *kwlist[] = { "attach", NULL }; |
|---|
| 11 |
+ PyGObject *attach; |
|---|
| 12 |
+ |
|---|
| 13 |
+ if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O!:NotifyNotification.attach_to_status_icon", kwlist, &PyGtkWidget_Type, &attach)) |
|---|
| 14 |
+ return NULL; |
|---|
| 15 |
+ notify_notification_attach_to_status_icon(NOTIFY_NOTIFICATION(self->obj), GTK_STATUS_ICON(attach->obj)); |
|---|
| 16 |
+ Py_INCREF(Py_None); |
|---|
| 17 |
+ return Py_None; |
|---|
| 18 |
+} |
|---|
| 19 |
+ |
|---|
| 20 |
+static PyObject * |
|---|
| 21 |
_wrap_notify_notification_show(PyGObject *self) |
|---|
| 22 |
{ |
|---|
| 23 |
int ret; |
|---|
| 24 |
@@ -499,6 +512,7 @@ _wrap_notify_notification_set_hint(PyGOb |
|---|
| 25 |
static PyMethodDef _PyNotifyNotification_methods[] = { |
|---|
| 26 |
{ "update", (PyCFunction)_wrap_notify_notification_update, METH_VARARGS|METH_KEYWORDS }, |
|---|
| 27 |
{ "attach_to_widget", (PyCFunction)_wrap_notify_notification_attach_to_widget, METH_VARARGS|METH_KEYWORDS }, |
|---|
| 28 |
+ { "attach_to_status_icon", (PyCFunction)_wrap_notify_notification_attach_to_status_icon, METH_VARARGS|METH_KEYWORDS }, |
|---|
| 29 |
{ "show", (PyCFunction)_wrap_notify_notification_show, METH_NOARGS }, |
|---|
| 30 |
{ "set_timeout", (PyCFunction)_wrap_notify_notification_set_timeout, METH_VARARGS|METH_KEYWORDS }, |
|---|
| 31 |
{ "set_category", (PyCFunction)_wrap_notify_notification_set_category, METH_VARARGS|METH_KEYWORDS }, |
|---|