mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 14:31:10 +00:00
Always use #ifdef for G_ENABLE_DEBUG
Release builds don't define it to 0, they just don't define it. Avoid the compilation warning we get otherwise.
This commit is contained in:
parent
9b8ff8d6c3
commit
5b453ecd19
@ -449,7 +449,7 @@ gdk_x11_device_xi2_grab (GdkDevice *device,
|
|||||||
event_mask,
|
event_mask,
|
||||||
&mask.mask_len);
|
&mask.mask_len);
|
||||||
|
|
||||||
#if G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (GDK_DISPLAY_DEBUG_CHECK (display, NOGRABS))
|
if (GDK_DISPLAY_DEBUG_CHECK (display, NOGRABS))
|
||||||
status = GrabSuccess;
|
status = GrabSuccess;
|
||||||
else
|
else
|
||||||
|
@ -810,7 +810,7 @@ _gtk_builder_construct (GtkBuilder *builder,
|
|||||||
else
|
else
|
||||||
g_object_set_property (obj, name, value);
|
g_object_set_property (obj, name, value);
|
||||||
|
|
||||||
#if G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (GTK_DEBUG_CHECK (BUILDER))
|
if (GTK_DEBUG_CHECK (BUILDER))
|
||||||
{
|
{
|
||||||
gchar *str = g_strdup_value_contents (value);
|
gchar *str = g_strdup_value_contents (value);
|
||||||
@ -874,7 +874,7 @@ _gtk_builder_apply_properties (GtkBuilder *builder,
|
|||||||
else
|
else
|
||||||
g_object_set_property (info->object, name, value);
|
g_object_set_property (info->object, name, value);
|
||||||
|
|
||||||
#if G_ENABLE_DEBUG
|
#ifdef G_ENABLE_DEBUG
|
||||||
if (GTK_DEBUG_CHECK (BUILDER))
|
if (GTK_DEBUG_CHECK (BUILDER))
|
||||||
{
|
{
|
||||||
gchar *str = g_strdup_value_contents (value);
|
gchar *str = g_strdup_value_contents (value);
|
||||||
|
Loading…
Reference in New Issue
Block a user