pygtk r3089 - in trunk: . gtk
- From: gianmt svn gnome org
- To: svn-commits-list gnome org
- Subject: pygtk r3089 - in trunk: . gtk
- Date: Sun, 22 Feb 2009 21:21:57 +0000 (UTC)
Author: gianmt
Date: Sun Feb 22 21:21:57 2009
New Revision: 3089
URL: http://svn.gnome.org/viewvc/pygtk?rev=3089&view=rev
Log:
2009-02-22 Gian Mario Tagliaretti <gianmt gnome org>
Bug 309180 â gtk.MessageDialog exposes private attributes
* gtk/gtk.override: add deprecation warnings using private attributes.
Modified:
trunk/ChangeLog
trunk/gtk/gtk.override
Modified: trunk/gtk/gtk.override
==============================================================================
--- trunk/gtk/gtk.override (original)
+++ trunk/gtk/gtk.override Sun Feb 22 21:21:57 2009
@@ -8692,3 +8692,33 @@
return pyg_enum_from_gtype(GTK_TYPE_FILE_CHOOSER_ACTION, ret);
}
+%%
+override-attr GtkMessageDialog.image
+static PyObject *
+_wrap_gtk_message_dialog__get_image(PyObject *self, void *closure)
+{
+ GtkWidget *ret;
+
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "use set_image() instead") < 0)
+ return NULL;
+
+ ret = GTK_MESSAGE_DIALOG(pygobject_get(self))->image;
+ /* pygobject_new handles NULL checking */
+ return pygobject_new((GObject *)ret);
+}
+%%
+override-attr GtkMessageDialog.label
+static PyObject *
+_wrap_gtk_message_dialog__get_label(PyObject *self, void *closure)
+{
+ GtkWidget *ret;
+
+ if (PyErr_Warn(PyExc_DeprecationWarning,
+ "use set_markup() instead") < 0)
+ return NULL;
+
+ ret = GTK_MESSAGE_DIALOG(pygobject_get(self))->label;
+ /* pygobject_new handles NULL checking */
+ return pygobject_new((GObject *)ret);
+}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]