summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGian Mario Tagliaretti <gianmt@gnome.org>2009-12-29 17:06:52 +0100
committerGian Mario Tagliaretti <gianmt@gnome.org>2009-12-29 17:06:52 +0100
commit635227480f9659a1f91ab1ec12536d3ed012a976 (patch)
tree2b07d0cc351e597b633f62d0765c1bac5b96dcd6
parent3c0cbc95af29b1e192ed4b5963e96e39c70b349c (diff)
downloadpygobject-635227480f9659a1f91ab1ec12536d3ed012a976.tar.gz
pygobject-635227480f9659a1f91ab1ec12536d3ed012a976.tar.xz
pygobject-635227480f9659a1f91ab1ec12536d3ed012a976.zip
Deprecate old gio.Drive methods
-rw-r--r--gio/gdrive.override7
-rw-r--r--gio/gio.defs1
2 files changed, 7 insertions, 1 deletions
diff --git a/gio/gdrive.override b/gio/gdrive.override
index bbaf274..342cb1b 100644
--- a/gio/gdrive.override
+++ b/gio/gdrive.override
@@ -69,7 +69,12 @@ _wrap_g_drive_eject(PyGObject *self, PyObject *args, PyObject *kwargs)
&py_cancellable,
&notify->data))
goto error;
-
+
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "gio.Drive.ejectis deprecated, \
+ use gtk.Drive.eject_with_operation instead") < 0)
+ return NULL;
+
if (!pygio_notify_callback_is_valid(notify))
goto error;
diff --git a/gio/gio.defs b/gio/gio.defs
index 7974b42..a43c452 100644
--- a/gio/gio.defs
+++ b/gio/gio.defs
@@ -7313,6 +7313,7 @@
'("GAsyncResult*" "result")
'("GError**" "error")
)
+ (deprecated "use gio.Drive.eject_with_operation_finish instead.")
)
(define-method get_identifier