From d3b6d16d85af601f5809ae3b9ff22ddc23633bfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomasz=20Mi=C4=85sko?= Date: Sat, 22 Dec 2018 00:00:00 +0000 Subject: [PATCH] Annotate values of PRIORITY constants g-ir-scanner incorrectly evaluates macro definition that include references to other macro definitions. Provide a correct value as an annotation. Differences in generated gir files: ```diff @@ -19017 +19017 @@ - + @@ -74229,3 +74229,3 @@ - + Use this priority for functionality related to size allocation. @@ -106786,3 +106786,3 @@ ``` --- gdk/gdkevents.h | 2 +- gtk/gtkmain.h | 2 +- gtk/gtktextview.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/gdk/gdkevents.h b/gdk/gdkevents.h index 904e2baf25..5d2101f59e 100644 --- a/gdk/gdkevents.h +++ b/gdk/gdkevents.h @@ -62,7 +62,7 @@ G_BEGIN_DECLS #define GDK_PRIORITY_EVENTS (G_PRIORITY_DEFAULT) /** - * GDK_PRIORITY_REDRAW: + * GDK_PRIORITY_REDRAW: (value 120) * * This is the priority that the idle handler processing window updates * is given in the diff --git a/gtk/gtkmain.h b/gtk/gtkmain.h index 8c3b17fcb4..f68ef5b576 100644 --- a/gtk/gtkmain.h +++ b/gtk/gtkmain.h @@ -40,7 +40,7 @@ G_BEGIN_DECLS /** - * GTK_PRIORITY_RESIZE: + * GTK_PRIORITY_RESIZE: (value 110) * * Use this priority for functionality related to size allocation. * diff --git a/gtk/gtktextview.h b/gtk/gtktextview.h index f70dc490f6..5e47b89ae7 100644 --- a/gtk/gtktextview.h +++ b/gtk/gtktextview.h @@ -103,7 +103,7 @@ typedef enum } GtkTextExtendSelection; /** - * GTK_TEXT_VIEW_PRIORITY_VALIDATE: + * GTK_TEXT_VIEW_PRIORITY_VALIDATE: (value 125) * * The priority at which the text view validates onscreen lines * in an idle job in the background.