[gnome-bluetooth] lib: Initialize libadwaita for tests
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] lib: Initialize libadwaita for tests
- Date: Thu, 28 Oct 2021 15:29:59 +0000 (UTC)
commit bdce5d4491620839910a78882efb1d819a19ac7a
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 27 16:09:45 2021 -0300
lib: Initialize libadwaita for tests
Doesn't make any actual difference, besides making the test windows
a bit more pleasing to stare at :)
lib/test-client.c | 2 ++
lib/test-pairing-dialog.c | 2 ++
lib/test-settings.c | 2 ++
3 files changed, 6 insertions(+)
---
diff --git a/lib/test-client.c b/lib/test-client.c
index 7b9fc681..cf3c6625 100644
--- a/lib/test-client.c
+++ b/lib/test-client.c
@@ -26,6 +26,7 @@
#endif
#include <gtk/gtk.h>
+#include <adwaita.h>
#include "bluetooth-client.h"
#include "bluetooth-client-private.h"
@@ -288,6 +289,7 @@ int main(int argc, char *argv[])
GLogLevelFlags fatal_mask;
gtk_init();
+ adw_init ();
fatal_mask = g_log_set_always_fatal (G_LOG_FATAL_MASK);
fatal_mask |= G_LOG_LEVEL_WARNING | G_LOG_LEVEL_CRITICAL;
diff --git a/lib/test-pairing-dialog.c b/lib/test-pairing-dialog.c
index 9c8ddc00..408f3894 100644
--- a/lib/test-pairing-dialog.c
+++ b/lib/test-pairing-dialog.c
@@ -1,4 +1,5 @@
#include "bluetooth-pairing-dialog.h"
+#include <adwaita.h>
static const char *
response_to_str (int response)
@@ -49,6 +50,7 @@ int main (int argc, char **argv)
const char *device = "My device";
gtk_init ();
+ adw_init ();
if (g_strcmp0 (argv[1], "pin-confirmation") == 0 ||
argv[1] == NULL) {
diff --git a/lib/test-settings.c b/lib/test-settings.c
index 5fdc833e..3dc0fb64 100644
--- a/lib/test-settings.c
+++ b/lib/test-settings.c
@@ -1,10 +1,12 @@
#include "bluetooth-settings-widget.h"
+#include <adwaita.h>
int main (int argc, char **argv)
{
GtkWidget *window, *widget;
gtk_init ();
+ adw_init ();
window = gtk_window_new ();
gtk_widget_set_size_request (window, 300, 600);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]