[gtk/gtk-3-24: 1/2] Annotate values of PRIORITY constants



commit d3b6d16d85af601f5809ae3b9ff22ddc23633bfa
Author: Tomasz Miąsko <tomasz miasko gmail com>
Date:   Sat Dec 22 00:00:00 2018 +0000

    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 @@
    -    <constant name="PRIORITY_REDRAW" value="20" c:type="GDK_PRIORITY_REDRAW">
    +    <constant name="PRIORITY_REDRAW" value="120" c:type="GDK_PRIORITY_REDRAW">
    @@ -74229,3 +74229,3 @@
         </constant>
    -    <constant name="PRIORITY_RESIZE" value="10" c:type="GTK_PRIORITY_RESIZE">
    +    <constant name="PRIORITY_RESIZE" value="110" c:type="GTK_PRIORITY_RESIZE">
           <doc xml:space="preserve">Use this priority for functionality related to size allocation.
    @@ -106786,3 +106786,3 @@
         <constant name="TEXT_VIEW_PRIORITY_VALIDATE"
    -              value="5"
    +              value="125"
                   c:type="GTK_TEXT_VIEW_PRIORITY_VALIDATE">
    ```

 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.


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]