[gnome-contacts] Init libhandy properly



commit 1b5e4bdceef904a4bb3aa5cf0e6af69e3a61172a
Author: Adrien Plazas <kekun plazas laposte net>
Date:   Wed Jan 16 11:54:29 2019 +0100

    Init libhandy properly
    
    Use Hdy.init() to properly init libhandy and stop initializing the
    widget types manually.

 src/contacts-app.vala | 6 ------
 src/main.vala         | 2 ++
 2 files changed, 2 insertions(+), 6 deletions(-)
---
diff --git a/src/contacts-app.vala b/src/contacts-app.vala
index 2ae52e5..aa0e17c 100644
--- a/src/contacts-app.vala
+++ b/src/contacts-app.vala
@@ -16,7 +16,6 @@
  */
 
 using Gtk;
-using Hdy;
 using Folks;
 
 public class Contacts.App : Gtk.Application {
@@ -321,11 +320,6 @@ public class Contacts.App : Gtk.Application {
     base.startup ();
 
     load_styling ();
-
-    // Ensure the following types are loaded on startup, which is needed for
-    // them to be instanciable by GtkBuilder.
-    typeof (HeaderGroup).ensure ();
-    typeof (TitleBar).ensure ();
   }
 
   public void load_styling () {
diff --git a/src/main.vala b/src/main.vala
index 271542a..c1fe0eb 100644
--- a/src/main.vala
+++ b/src/main.vala
@@ -29,6 +29,8 @@ main (string[] args) {
   GtkCheese.init (ref args);
 #endif
 
+  Hdy.init (ref args);
+
   var app = new App ();
   app.run (args);
   app = null;


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