summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-07-18 15:10:15 +0000
committerGustavo J. A. M. Carneiro <gcarneiro@src.gnome.org>2004-07-18 15:10:15 +0000
commitac3b48b2912e18026b6effb5378bec1336efc416 (patch)
treea2a3c984e4cc073ae1a7b4aa6a860cc155f7a7ce /gtk
parentb5daf0a032e4e7943bc4a8bc8d7387193baafa7c (diff)
downloadpygtk-ac3b48b2912e18026b6effb5378bec1336efc416.tar.gz
Bug 144474: DeprecationWarnings
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk.defs5
-rw-r--r--gtk/gtkclist.override3
-rw-r--r--gtk/gtkctree.override3
3 files changed, 11 insertions, 0 deletions
diff --git a/gtk/gtk.defs b/gtk/gtk.defs
index 2e9ef0e6..7c60d9b7 100644
--- a/gtk/gtk.defs
+++ b/gtk/gtk.defs
@@ -3104,6 +3104,7 @@
(c-name "gtk_combo_new")
(is-constructor-of "GtkCombo")
(return-type "GtkWidget*")
+ (deprecated "use gtk.ComboBoxEntry")
)
(define-method set_value_in_list
@@ -8054,6 +8055,7 @@
'("const-gchar*" "path")
'("GtkAccelGroup*" "accel_group" (null-ok) (default "NULL"))
)
+ (deprecated "use gtk.UIManager")
)
(define-method construct
@@ -8891,6 +8893,7 @@
(c-name "gtk_list_item_new")
(is-constructor-of "GtkListItem")
(return-type "GtkWidget*")
+ (deprecated "use gtk.TreeView")
)
(define-function gtk_list_item_new_with_label
@@ -8900,6 +8903,7 @@
(parameters
'("const-gchar*" "label")
)
+ (deprecated "use gtk.TreeView")
)
(define-method select
@@ -10383,6 +10387,7 @@
(c-name "gtk_option_menu_new")
(is-constructor-of "GtkOptionMenu")
(return-type "GtkWidget*")
+ (deprecated "use gtk.ComboBox")
)
(define-method get_menu
diff --git a/gtk/gtkclist.override b/gtk/gtkclist.override
index 42741d64..89906424 100644
--- a/gtk/gtkclist.override
+++ b/gtk/gtkclist.override
@@ -34,6 +34,9 @@ _wrap_gtk_clist_new_with_titles(PyGObject *self, PyObject *args,
int count = 1, i;
PyObject *py_list = NULL;
+ if (PyErr_Warn(PyExc_DeprecationWarning, "use gtk.TreeView") < 0)
+ return -1;
+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|iO:GtkCList.__init__",
kwlist, &count, &py_list))
return -1;
diff --git a/gtk/gtkctree.override b/gtk/gtkctree.override
index 6c4d6415..9b962161 100644
--- a/gtk/gtkctree.override
+++ b/gtk/gtkctree.override
@@ -64,6 +64,9 @@ _wrap_gtk_ctree_new_with_titles(PyGObject *self, PyObject *args,
int columns = 1, tree_column = 0;
PyObject *py_titles = NULL;
+ if (PyErr_Warn(PyExc_DeprecationWarning, "use gtk.TreeView") < 0)
+ return -1;
+
if (!PyArg_ParseTupleAndKeywords(args, kwargs, "|iiO:GtkCTree.__init__",
kwlist, &columns, &tree_column,
&py_titles))