[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:40:09 +0000 (UTC)
commit ea75e8746bd495efac05b093592e51b44281647e
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..3a5ee74f3 100644
--- a/src/meson.build
+++ b/src/meson.build
@@ -282,6 +282,7 @@ nautilus_deps = [
gmodule,
gnome_autoar,
gnome_desktop,
+ libhandy,
libgd_dep,
libportal,
nautilus_extension,
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]