Consider GTK_DISABLE_DEPRECATED in gtk3-compat.h
This commit is contained in:
parent
81526df6d6
commit
d3a60802ac
2 changed files with 4 additions and 4 deletions
|
@ -6,7 +6,7 @@
|
||||||
|
|
||||||
G_BEGIN_DECLS
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
#if GTK_CHECK_VERSION (3, 2, 0)
|
#if GTK_CHECK_VERSION (3, 2, 0) && defined (GTK_DISABLE_DEPRECATED)
|
||||||
#define GTK_TYPE_VBOX GTK_TYPE_BOX
|
#define GTK_TYPE_VBOX GTK_TYPE_BOX
|
||||||
#define GtkVBox GtkBox
|
#define GtkVBox GtkBox
|
||||||
#define GtkVBoxClass GtkBoxClass
|
#define GtkVBoxClass GtkBoxClass
|
||||||
|
|
|
@ -154,13 +154,13 @@ properties_object_get_set (GObject* object)
|
||||||
static void
|
static void
|
||||||
properties_object_test (gconstpointer object)
|
properties_object_test (gconstpointer object)
|
||||||
{
|
{
|
||||||
if (GTK_IS_OBJECT (object))
|
if (GTK_IS_WIDGET (object))
|
||||||
g_object_ref_sink ((GObject*)object);
|
g_object_ref_sink ((GObject*)object);
|
||||||
|
|
||||||
properties_object_get_set ((GObject*)object);
|
properties_object_get_set ((GObject*)object);
|
||||||
|
|
||||||
if (GTK_IS_OBJECT (object))
|
if (GTK_IS_WIDGET (object))
|
||||||
gtk_object_destroy (GTK_OBJECT (object));
|
gtk_widget_destroy (GTK_WIDGET (object));
|
||||||
g_object_unref ((GObject*)object);
|
g_object_unref ((GObject*)object);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue