[gnome-bluetooth] sendto: Initialize libadwaita
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] sendto: Initialize libadwaita
- Date: Fri, 15 Jul 2022 19:54:46 +0000 (UTC)
commit 347f4fc7396e757b221bb89a7bdbd3076b0c9916
Author: Maximiliano Sandoval R <msandova gnome org>
Date: Fri Jul 15 20:54:04 2022 +0200
sendto: Initialize libadwaita
Adds support for dark mode.
Fixes: https://gitlab.gnome.org/GNOME/gnome-bluetooth/-/issues/114
sendto/main.c | 2 ++
sendto/meson.build | 2 +-
2 files changed, 3 insertions(+), 1 deletion(-)
---
diff --git a/sendto/main.c b/sendto/main.c
index 8dc2b122..4040017d 100644
--- a/sendto/main.c
+++ b/sendto/main.c
@@ -28,6 +28,7 @@
#include <sys/time.h>
+#include <adwaita.h>
#include <glib/gi18n.h>
#include <glib/gstdio.h>
#include <gio/gio.h>
@@ -751,6 +752,7 @@ int main(int argc, char *argv[])
error = NULL;
gtk_init();
+ adw_init();
option_context = g_option_context_new(NULL);
g_option_context_add_main_entries(option_context, options, GETTEXT_PACKAGE);
diff --git a/sendto/meson.build b/sendto/meson.build
index 7694b692..ea718dab 100644
--- a/sendto/meson.build
+++ b/sendto/meson.build
@@ -4,7 +4,7 @@ executable(
name,
'main.c',
include_directories: top_inc,
- dependencies: [libgnome_bluetooth_dep, gtk_dep],
+ dependencies: [libgnome_bluetooth_dep, gtk_dep, libadwaita_dep],
install: true,
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]