[gnome-builder] glade: alter priority of glade loader



commit dec3c2a246eae1ba91cce4afea8245c474905eb7
Author: Christian Hergert <chergert redhat com>
Date:   Sun Jun 2 16:21:04 2019 -0700

    glade: alter priority of glade loader
    
    It can be pretty annoying to always see a window with an infobar about
    not being able to display things.
    
    Fixes #932

 src/plugins/glade/gbp-glade-workbench-addin.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)
---
diff --git a/src/plugins/glade/gbp-glade-workbench-addin.c b/src/plugins/glade/gbp-glade-workbench-addin.c
index eac7b4bd9..85118ada1 100644
--- a/src/plugins/glade/gbp-glade-workbench-addin.c
+++ b/src/plugins/glade/gbp-glade-workbench-addin.c
@@ -97,7 +97,10 @@ gbp_glade_workbench_addin_can_open (IdeWorkbenchAddin *addin,
       g_strcmp0 (content_type, "application/x-designer") == 0 ||
       (path && g_str_has_suffix (path, ".ui")))
     {
-      *priority = -100;
+      /* Be lower priority than editor, because glade does not currently
+       * handle templates well enough currently.
+       */
+      *priority = 100;
       return TRUE;
     }
 


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