[nautilus/wip/cdavis/hdywindow: 1/4] general: Use libhandy 1.0
- From: António Fernandes <antoniof src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus/wip/cdavis/hdywindow: 1/4] general: Use libhandy 1.0
- Date: Tue, 9 Feb 2021 00:45:28 +0000 (UTC)
commit ea615c91387b9c99ad1253923924ae61b2453b95
Author: Adrien Plazas <kekun plazas laposte net>
Date: Tue Dec 8 16:17:24 2020 +0100
general: Use libhandy 1.0
It provides widgets we need for the enhancements in the next commits.
meson.build | 1 +
src/meson.build | 1 +
src/nautilus-application.c | 3 +++
3 files changed, 5 insertions(+)
---
diff --git a/meson.build b/meson.build
index 3d9aaa340..3ceac6924 100644
--- a/meson.build
+++ b/meson.build
@@ -120,6 +120,7 @@ gmodule = dependency('gmodule-no-export-2.0', version: glib_ver)
gnome_autoar = dependency('gnome-autoar-0', version: '>= 0.2.1')
gnome_desktop = dependency('gnome-desktop-3.0', version: '>= 3.0.0')
gtk = dependency('gtk+-3.0', version: '>= 3.22.27')
+libhandy = dependency('libhandy-1', version: '>= 1.0.0')
libportal = []
if get_option('libportal')
libportal = dependency('libportal', version: '>= 0.3')
diff --git a/src/meson.build b/src/meson.build
index a1b9bdbd2..0672359a5 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -283,6 +283,7 @@ nautilus_deps = [
gnome_autoar,
gnome_desktop,
libgd_dep,
+ libhandy,
libportal,
nautilus_extension,
selinux,
diff --git a/src/nautilus-application.c b/src/nautilus-application.c
index 7842a582a..73153f548 100644
--- a/src/nautilus-application.c
+++ b/src/nautilus-application.c
@@ -34,6 +34,7 @@
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gtk/gtk.h>
+#include <libhandy-1/handy.h>
#include <nautilus-extension.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -1326,6 +1327,8 @@ nautilus_application_startup_common (NautilusApplication *self)
*/
G_APPLICATION_CLASS (nautilus_application_parent_class)->startup (G_APPLICATION (self));
+ hdy_init ();
+
gtk_window_set_default_icon_name (APPLICATION_ID);
setup_theme_extensions ();
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]