diff options
author | Benjamin Otte <otte@redhat.com> | 2016-10-26 05:29:07 +0200 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2016-10-27 05:07:23 +0200 |
commit | 48f5df53188382ced355bf8116bbe1b5e1fced08 (patch) | |
tree | 81820f47422cf95b2db85d2cabc07c964a8bc5ff /gtk/gtkmain.c | |
parent | e1e64ac6fcda36c5875cba0514efca341808f25b (diff) | |
download | gtk+-48f5df53188382ced355bf8116bbe1b5e1fced08.tar.gz |
gtk: Add back infrastructure for GTK_DEBUG=updates
Includes the ability to turn on updates in the inspector. Animations are
now run via a tick function which allows us to neatly overlay a
semi-transparent red rectangle and fade it out over time.
It also probably enables way more, but somebody with more UI neatness
than me needs to figure out what it eanbles first...
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r-- | gtk/gtkmain.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c index 854938c936..e7dca63675 100644 --- a/gtk/gtkmain.c +++ b/gtk/gtkmain.c @@ -115,6 +115,7 @@ #include "gtkbox.h" #include "gtkclipboardprivate.h" #include "gtkdebug.h" +#include "gtkdebugupdatesprivate.h" #include "gtkdndprivate.h" #include "gtkmain.h" #include "gtkmenu.h" @@ -714,6 +715,9 @@ do_post_parse_initialization (int *argc, g_log_set_always_fatal (fatal_mask); } + if (debug_flags[0].flags & GTK_DEBUG_UPDATES) + gtk_debug_updates_set_enabled (TRUE); + gtk_widget_set_default_direction (gtk_get_locale_direction ()); _gtk_ensure_resources (); |