summaryrefslogtreecommitdiff
path: root/gtk/gtkmain.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2022-09-21 21:47:06 -0400
committerMatthias Clasen <mclasen@redhat.com>2022-09-21 21:47:06 -0400
commitee1a634c255992190672d1f29c48d23d5cfda8d8 (patch)
treec8580072c20bcf3a8b42ea69374761695c3e097b /gtk/gtkmain.c
parent55ab99cb98f7ce305b6f575acf1d40a9b663270a (diff)
downloadgtk+-ee1a634c255992190672d1f29c48d23d5cfda8d8.tar.gz
Mark the invert-text-dir flag as always there
This flag works in non-debug builds too.
Diffstat (limited to 'gtk/gtkmain.c')
-rw-r--r--gtk/gtkmain.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gtk/gtkmain.c b/gtk/gtkmain.c
index ed161d29b7..ca351e0b96 100644
--- a/gtk/gtkmain.c
+++ b/gtk/gtkmain.c
@@ -95,10 +95,12 @@ typedef struct {
#define N_DEBUG_DISPLAYS 4
DisplayDebugFlags debug_flags[N_DEBUG_DISPLAYS];
+
/* This is a flag to speed up development builds. We set it to TRUE when
* any of the debug displays has debug flags >0, but we never set it back
* to FALSE. This way we don't need to call gtk_widget_get_display() in
- * hot paths. */
+ * hot paths.
+ */
gboolean any_display_debug_flags_set = FALSE;
GtkDebugFlags
@@ -203,7 +205,7 @@ static const GdkDebugKey gtk_debug_keys[] = {
{ "snapshot", GTK_DEBUG_SNAPSHOT, "Generate debug render nodes" },
{ "accessibility", GTK_DEBUG_A11Y, "Information about accessibility state changes" },
{ "iconfallback", GTK_DEBUG_ICONFALLBACK, "Information about icon fallback" },
- { "invert-text-dir", GTK_DEBUG_INVERT_TEXT_DIR, "Invert the default text direction" },
+ { "invert-text-dir", GTK_DEBUG_INVERT_TEXT_DIR, "Invert the default text direction", TRUE },
};
/* This checks to see if the process is running suid or sgid