[pygtk/gtk-3.0: 17/55] Deprecated: Remove GtkTooltips
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk/gtk-3.0: 17/55] Deprecated: Remove GtkTooltips
- Date: Sat, 17 Jul 2010 00:25:50 +0000 (UTC)
commit 0918157432153d75f15453a630d3456bb6a7f7a0
Author: John Stowers <john stowers gmail com>
Date: Sat Jul 10 19:46:57 2010 +1200
Deprecated: Remove GtkTooltips
gtk/gtk-base-types.defs | 17 -------
gtk/gtk-base.defs | 119 -----------------------------------------------
gtk/gtk.override | 71 ----------------------------
3 files changed, 0 insertions(+), 207 deletions(-)
---
diff --git a/gtk/gtk-base-types.defs b/gtk/gtk-base-types.defs
index 060bfcd..827e6bc 100644
--- a/gtk/gtk-base-types.defs
+++ b/gtk/gtk-base-types.defs
@@ -2383,23 +2383,6 @@
(gtype-id "GTK_TYPE_TOOL_ITEM")
)
-(define-object Tooltips
- (in-module "Gtk")
- (parent "GtkObject")
- (c-name "GtkTooltips")
- (fields
- '("GtkWidget*" "tip_window")
- '("GtkWidget*" "tip_label")
- '("GtkTooltipsData*" "active_tips_data")
- '("GList*" "tips_data_list")
- '("guint" "delay")
- '("guint" "enabled")
- '("guint" "use_sticky_delay")
- '("gint" "timer_tag")
- )
- (gtype-id "GTK_TYPE_TOOLTIPS")
-)
-
(define-object TreeModelFilter
(in-module "Gtk")
(parent "GObject")
diff --git a/gtk/gtk-base.defs b/gtk/gtk-base.defs
index 9576703..65fefc4 100644
--- a/gtk/gtk-base.defs
+++ b/gtk/gtk-base.defs
@@ -11351,17 +11351,6 @@
(return-type "GtkWidget*")
)
-(define-method set_arrow_tooltip
- (of-object "GtkMenuToolButton")
- (c-name "gtk_menu_tool_button_set_arrow_tooltip")
- (return-type "none")
- (parameters
- '("GtkTooltips*" "tooltips")
- '("const-gchar*" "tip_text" (null-ok))
- '("const-gchar*" "tip_private" (null-ok) (default "NULL"))
- )
-)
-
(define-virtual show_menu
(of-object "GtkMenuToolButton")
(return-type "none")
@@ -20064,17 +20053,6 @@
(return-type "gboolean")
)
-(define-method set_tooltip
- (of-object "GtkToolItem")
- (c-name "gtk_tool_item_set_tooltip")
- (return-type "none")
- (parameters
- ("GtkTooltips*" "tooltips")
- ("const-gchar*" "tip_text" (null-ok) (default "NULL"))
- ("const-gchar*" "tip_private" (null-ok) (default "NULL"))
- )
-)
-
(define-method set_use_drag_window
(of-object "GtkToolItem")
(c-name "gtk_tool_item_set_use_drag_window")
@@ -20198,103 +20176,6 @@
(of-object "GtkToolItem")
(return-type "none")
)
-(define-virtual set_tooltip
- (of-object "GtkToolItem")
- (return-type "gboolean")
- (parameters
- '("GtkTooltips*" "tooltips")
- '("const-gchar*" "tip_text")
- '("const-gchar*" "tip_private")
- )
-)
-
-;; From /opt/gtk2/include/gtk-2.0/gtk/gtktooltips.h
-
-(define-function gtk_tooltips_get_type
- (c-name "gtk_tooltips_get_type")
- (return-type "GType")
-)
-
-(define-function gtk_tooltips_new
- (c-name "gtk_tooltips_new")
- (deprecated "Use the new widget gtk.Tooltip")
- (is-constructor-of "GtkTooltips")
- (return-type "GtkTooltips*")
-)
-
-(define-method enable
- (of-object "GtkTooltips")
- (c-name "gtk_tooltips_enable")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "none")
-)
-
-(define-method disable
- (of-object "GtkTooltips")
- (c-name "gtk_tooltips_disable")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "none")
-)
-
-(define-method set_delay
- (of-object "GtkTooltips")
- (c-name "gtk_tooltips_set_delay")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "none")
- (parameters
- '("guint" "delay")
- )
-)
-
-(define-method set_tip
- (of-object "GtkTooltips")
- (c-name "gtk_tooltips_set_tip")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "none")
- (parameters
- '("GtkWidget*" "widget")
- '("const-gchar*" "tip_text" (null-ok))
- '("const-gchar*" "tip_private" (null-ok) (default "NULL"))
- )
-)
-
-(define-function tooltips_data_get
- (c-name "gtk_tooltips_data_get")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "GtkTooltipsData*")
- (parameters
- '("GtkWidget*" "widget")
- )
-)
-
-(define-function gtk_tooltips_data_get
- (c-name "gtk_tooltips_data_get1")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "GtkTooltipsData*")
- (parameters
- '("GtkWidget*" "widget")
- )
-)
-
-(define-method force_window
- (of-object "GtkTooltips")
- (c-name "gtk_tooltips_force_window")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "none")
-)
-
-(define-method tooltips_get_info_from_tip_window
- (of-object "GtkWindow")
- (c-name "gtk_tooltips_get_info_from_tip_window")
- (deprecated "Use the new widget gtk.Tooltip")
- (return-type "gboolean")
- (parameters
- '("GtkTooltips**" "tooltips")
- '("GtkWidget**" "current_widget")
- )
-)
-
-
;; From /opt/gtk2/include/gtk-2.0/gtk/gtktreednd.h
diff --git a/gtk/gtk.override b/gtk/gtk.override
index e05c02d..7209968 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -3221,32 +3221,6 @@ _wrap_gtk_im_context_get_surrounding(PyGObject *self)
return Py_None;
}
%%
-override-attr GtkTooltips.active_tips_data
-static PyObject *
-_wrap_gtk_tooltips__get_active_tips_data(PyGObject *self, void *closure)
-{
- GtkTooltips *tips = GTK_TOOLTIPS(self->obj);
- GtkTooltipsData *data = tips->active_tips_data;
-
- if (data == NULL) {
- Py_INCREF(Py_None);
- return Py_None;
- }
-
- return Py_BuildValue("NNss",
- pygobject_new((GObject *)data->tooltips),
- pygobject_new((GObject *)data->widget),
- data->tip_text,
- data->tip_private);
-}
-%%
-override-attr GtkTooltips.tips_data_list
-static PyObject *
-_wrap_gtk_tooltips__get_tips_data_list(PyGObject *self, void *closure)
-{
- return PyList_New(0);
-}
-%%
override-attr GtkAdjustment.value
static int
_wrap_gtk_adjustment__set_value(PyGObject *self, PyObject *value,
@@ -3658,33 +3632,6 @@ _wrap_gtk_scrolled_window_get_policy(PyGObject *self)
pyg_enum_from_gtype(GTK_TYPE_POLICY_TYPE, vscrollbar_policy));
}
%%
-override gtk_tooltips_data_get kwargs
-static PyObject *
-_wrap_gtk_tooltips_data_get(PyGObject *self, PyObject *args, PyObject *kwargs)
-{
- static char *kwlist[] = { "widget", NULL };
- PyGObject *widget;
- GtkTooltipsData *data;
-
- if (!PyArg_ParseTupleAndKeywords(args, kwargs,
- "O!:GtkTooltips.data_get",
- kwlist, &PyGtkWidget_Type, &widget))
- return NULL;
-
- data = gtk_tooltips_data_get(GTK_WIDGET(widget->obj));
-
- if (!data) {
- Py_INCREF(Py_None);
- return Py_None;
- }
-
- return Py_BuildValue("NNss",
- pygobject_new((GObject *)data->tooltips),
- pygobject_new((GObject *)data->widget),
- data->tip_text,
- data->tip_private);
-}
-%%
override gtk_tooltips_data_get1 kwargs
static PyObject *
_wrap_gtk_tooltips_data_get1(PyGObject *self, PyObject *args, PyObject *kwargs)
@@ -5437,24 +5384,6 @@ _wrap_gtk_scale_get_layout_offsets(PyGObject *self)
return Py_BuildValue("(ii)", x, y);
}
%%
-override gtk_tooltips_get_info_from_tip_window noargs
-static PyObject *
-_wrap_gtk_tooltips_get_info_from_tip_window(PyGObject *self)
-{
- gboolean ret;
- GtkWidget *widget;
- GtkTooltips *tooltips;
-
- ret = gtk_tooltips_get_info_from_tip_window(GTK_WINDOW(self->obj),
- &tooltips, &widget);
- if (ret)
- return Py_BuildValue("(NN)",
- pygobject_new((GObject *)tooltips),
- pygobject_new((GObject *)widget));
- Py_INCREF(Py_None);
- return Py_None;
-}
-%%
override gtk_menu_item_toggle_size_request noargs
static PyObject *
_wrap_gtk_menu_item_toggle_size_request(PyGObject *self)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]