[pygtk/gtk-3.0: 18/55] Deprecated: Remove GtkCurve
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk/gtk-3.0: 18/55] Deprecated: Remove GtkCurve
- Date: Sat, 17 Jul 2010 00:25:55 +0000 (UTC)
commit 28f0f6830b623c5d48ed9485dc081d76d7ed3b00
Author: John Stowers <john stowers gmail com>
Date: Sat Jul 10 19:49:44 2010 +1200
Deprecated: Remove GtkCurve
gtk/gtk-base-types.defs | 18 ----------
gtk/gtk-base.defs | 80 -----------------------------------------------
gtk/gtk.override | 61 -----------------------------------
3 files changed, 0 insertions(+), 159 deletions(-)
---
diff --git a/gtk/gtk-base-types.defs b/gtk/gtk-base-types.defs
index 827e6bc..03d5f41 100644
--- a/gtk/gtk-base-types.defs
+++ b/gtk/gtk-base-types.defs
@@ -240,17 +240,6 @@
)
)
-(define-enum CurveType
- (in-module "Gtk")
- (c-name "GtkCurveType")
- (gtype-id "GTK_TYPE_CURVE_TYPE")
- (values
- '("linear" "GTK_CURVE_TYPE_LINEAR")
- '("spline" "GTK_CURVE_TYPE_SPLINE")
- '("free" "GTK_CURVE_TYPE_FREE")
- )
-)
-
(define-enum DeleteType
(in-module "Gtk")
(c-name "GtkDeleteType")
@@ -1626,13 +1615,6 @@
)
-(define-object Curve
- (in-module "Gtk")
- (parent "GtkDrawingArea")
- (c-name "GtkCurve")
- (gtype-id "GTK_TYPE_CURVE")
-)
-
(define-object Dialog
(in-module "Gtk")
(parent "GtkWindow")
diff --git a/gtk/gtk-base.defs b/gtk/gtk-base.defs
index 65fefc4..01e76a9 100644
--- a/gtk/gtk-base.defs
+++ b/gtk/gtk-base.defs
@@ -3905,81 +3905,6 @@
)
)
-;; From /opt/gtk2/include/gtk-2.0/gtk/gtkcurve.h
-
-(define-function gtk_curve_get_type
- (c-name "gtk_curve_get_type")
- (return-type "GType")
-)
-
-(define-function gtk_curve_new
- (c-name "gtk_curve_new")
- (is-constructor-of "GtkCurve")
- (return-type "GtkWidget*")
-)
-
-(define-method reset
- (of-object "GtkCurve")
- (c-name "gtk_curve_reset")
- (return-type "none")
-)
-
-(define-method set_gamma
- (of-object "GtkCurve")
- (c-name "gtk_curve_set_gamma")
- (return-type "none")
- (parameters
- '("gfloat" "gamma")
- )
-)
-
-(define-method set_range
- (of-object "GtkCurve")
- (c-name "gtk_curve_set_range")
- (return-type "none")
- (parameters
- '("gfloat" "min_x")
- '("gfloat" "max_x")
- '("gfloat" "min_y")
- '("gfloat" "max_y")
- )
-)
-
-(define-method get_vector
- (of-object "GtkCurve")
- (c-name "gtk_curve_get_vector")
- (return-type "none")
- (parameters
- '("int" "veclen")
- '("gfloat[]" "vector")
- )
-)
-
-(define-method set_vector
- (of-object "GtkCurve")
- (c-name "gtk_curve_set_vector")
- (return-type "none")
- (parameters
- '("int" "veclen")
- '("gfloat[]" "vector")
- )
-)
-
-(define-method set_curve_type
- (of-object "GtkCurve")
- (c-name "gtk_curve_set_curve_type")
- (return-type "none")
- (parameters
- '("GtkCurveType" "type")
- )
-)
-
-(define-virtual curve_type_changed
- (of-object "GtkCurve")
- (return-type "none")
-)
-
-
;; From /opt/gtk2/include/gtk-2.0/gtk/gtkdebug.h
@@ -23073,11 +22998,6 @@
(return-type "GType")
)
-(define-function gtk_curve_type_get_type
- (c-name "gtk_curve_type_get_type")
- (return-type "GType")
-)
-
(define-function gtk_delete_type_get_type
(c-name "gtk_delete_type_get_type")
(return-type "GType")
diff --git a/gtk/gtk.override b/gtk/gtk.override
index 7209968..e31d117 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -912,67 +912,6 @@ _wrap_gtk_combo_set_popdown_strings(PyGObject *self, PyObject *args,
return Py_None;
}
%%
-override gtk_curve_get_vector kwargs
-static PyObject *
-_wrap_gtk_curve_get_vector(PyGObject *self, PyObject *args,
- PyObject *kwargs)
-{
- static char *kwlist[] = { "size", NULL };
- int size = -1, i;
- gfloat *vector;
- PyObject *ret;
-
- if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "|i:GtkCurve.get_vector", kwlist,
- &size))
- return NULL;
- if (size < 0) size = GTK_CURVE(self->obj)->num_points;
- vector = g_new(gfloat, size);
- gtk_curve_get_vector(GTK_CURVE(self->obj), size, vector);
- ret = PyTuple_New(size);
- for (i = 0; i < size; i++)
- PyTuple_SetItem(ret, i, PyFloat_FromDouble(vector[i]));
- g_free(vector);
- return ret;
-}
-%%
-override gtk_curve_set_vector kwargs
-static PyObject *
-_wrap_gtk_curve_set_vector(PyGObject *self, PyObject *args,
- PyObject *kwargs)
-{
- static char *kwlist[] = { "vector", NULL };
- PyObject *seq;
- int size, i;
- gfloat *vector;
-
- if (!PyArg_ParseTupleAndKeywords(args, kwargs, "O:GtkCurve.set_vector",
- kwlist, &seq))
- return NULL;
- if (!PySequence_Check(seq)) {
- PyErr_SetString(PyExc_TypeError, "1st argument is not a sequence");
- return NULL;
- }
- size = PySequence_Length(seq);
- vector = g_new(gfloat, size);
- for (i = 0; i < size; i++) {
- PyObject *item = PySequence_GetItem(seq, i);
-
- Py_DECREF(item);
- item = PyNumber_Float(item); /* item has a ref now */
- if (item == NULL) {
- g_free(vector);
- return NULL;
- }
- vector[i] = PyFloat_AsDouble(item);
- Py_DECREF(item);
- }
- gtk_curve_set_vector(GTK_CURVE(self->obj), size, vector);
- g_free(vector);
- Py_INCREF(Py_None);
- return Py_None;
-}
-%%
override gtk_binding_entry_add_signal
static PyObject *
_wrap_gtk_binding_entry_add_signal(PyGObject *self, PyObject *args)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]