summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Catanzaro <mcatanzaro@igalia.com>2017-08-27 19:04:08 -0500
committerMichael Catanzaro <mcatanzaro@igalia.com>2017-09-09 16:15:01 -0500
commit6d4354e65448ef4fa157f0b42699570469779112 (patch)
tree965932650236a7ea458500e57e465ffc1d6b8dd5
parent0d969d9bec9e3f62df3ca6c4e42d0d681e40f4c4 (diff)
downloadepiphany-6d4354e65448ef4fa157f0b42699570469779112.tar.gz
Switch to DzlApplication
This ensures the CSS for DzlSuggestionEntry gets loaded. We could do that manually but there's not really any reason not to use DzlApplication now that we're going to depend on libdazzle.
-rw-r--r--embed/ephy-embed-shell.c3
-rw-r--r--embed/ephy-embed-shell.h5
-rw-r--r--embed/meson.build1
3 files changed, 6 insertions, 3 deletions
diff --git a/embed/ephy-embed-shell.c b/embed/ephy-embed-shell.c
index 5d3d22c0d..3ca8c4559 100644
--- a/embed/ephy-embed-shell.c
+++ b/embed/ephy-embed-shell.c
@@ -41,6 +41,7 @@
#include "ephy-web-app-utils.h"
#include "ephy-web-extension-proxy.h"
+#include <dazzle.h>
#include <glib/gi18n.h>
#include <gtk/gtk.h>
#include <stdlib.h>
@@ -98,7 +99,7 @@ static EphyEmbedShell *embed_shell = NULL;
static void ephy_embed_shell_tabs_catalog_iface_init (EphyTabsCatalogInterface *iface);
-G_DEFINE_TYPE_WITH_CODE (EphyEmbedShell, ephy_embed_shell, GTK_TYPE_APPLICATION,
+G_DEFINE_TYPE_WITH_CODE (EphyEmbedShell, ephy_embed_shell, DZL_TYPE_APPLICATION,
G_ADD_PRIVATE (EphyEmbedShell)
G_IMPLEMENT_INTERFACE (EPHY_TYPE_TABS_CATALOG,
ephy_embed_shell_tabs_catalog_iface_init))
diff --git a/embed/ephy-embed-shell.h b/embed/ephy-embed-shell.h
index 43f40b210..6d9b2d00e 100644
--- a/embed/ephy-embed-shell.h
+++ b/embed/ephy-embed-shell.h
@@ -21,6 +21,7 @@
#pragma once
+#include <dazzle.h>
#include <webkit2/webkit2.h>
#include "ephy-downloads-manager.h"
@@ -33,7 +34,7 @@ G_BEGIN_DECLS
#define EPHY_TYPE_EMBED_SHELL (ephy_embed_shell_get_type ())
-G_DECLARE_DERIVABLE_TYPE (EphyEmbedShell, ephy_embed_shell, EPHY, EMBED_SHELL, GtkApplication)
+G_DECLARE_DERIVABLE_TYPE (EphyEmbedShell, ephy_embed_shell, EPHY, EMBED_SHELL, DzlApplication)
typedef enum
{
@@ -48,7 +49,7 @@ typedef enum
struct _EphyEmbedShellClass
{
- GtkApplicationClass parent_class;
+ DzlApplicationClass parent_class;
void (* restored_window) (EphyEmbedShell *shell);
};
diff --git a/embed/meson.build b/embed/meson.build
index 9562ae75c..7c84495f7 100644
--- a/embed/meson.build
+++ b/embed/meson.build
@@ -38,6 +38,7 @@ libephyembed_deps = [
glib_dep,
gtk_dep,
icu_uc_dep,
+ libdazzle_dep,
libsecret_dep,
libsoup_dep,
m_dep,