[pygtk/gtk-3.0: 42/55] Deprecated: Remove GtkType macros
- From: John Stowers <jstowers src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygtk/gtk-3.0: 42/55] Deprecated: Remove GtkType macros
- Date: Sat, 17 Jul 2010 00:27:56 +0000 (UTC)
commit 34fbeb76525a34dda06fa9442612fb7fc1e2f257
Author: John Stowers <john stowers gmail com>
Date: Sun Jul 11 14:53:06 2010 +1200
Deprecated: Remove GtkType macros
gtk/gtk.override | 2 +-
gtk/gtkmodule.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtk.override b/gtk/gtk.override
index 6ef67da..5ec4896 100644
--- a/gtk/gtk.override
+++ b/gtk/gtk.override
@@ -960,7 +960,7 @@ _wrap_gtk_binding_entry_add_signal(PyGObject *self, PyObject *args)
slist = g_slist_prepend(slist, arg);
arg->arg_type = arg_type;
- switch (GTK_FUNDAMENTAL_TYPE(arg->arg_type)) {
+ switch (G_TYPE_FUNDAMENTAL(arg->arg_type)) {
case G_TYPE_CHAR:
case G_TYPE_UCHAR:
case G_TYPE_INT:
diff --git a/gtk/gtkmodule.c b/gtk/gtkmodule.c
index 1d80d41..9f8df55 100644
--- a/gtk/gtkmodule.c
+++ b/gtk/gtkmodule.c
@@ -76,7 +76,7 @@ sink_gtkinvisible(GObject *object)
static void
sink_gtkobject(GObject *object)
{
- if (GTK_OBJECT_FLOATING(object)) {
+ if (g_object_is_floating(object)) {
g_object_ref_sink(object);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]