[libadwaita/ebassi/toast-format: 30/31] Do not overinclude headers in AdwToast
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libadwaita/ebassi/toast-format: 30/31] Do not overinclude headers in AdwToast
- Date: Mon, 4 Apr 2022 11:37:14 +0000 (UTC)
commit f3a25f151c0383590d931927fcf269baa3a89684
Author: Emmanuele Bassi <ebassi gnome org>
Date: Mon Feb 28 17:19:43 2022 +0000
Do not overinclude headers in AdwToast
AdwToast does not need the whole of GTK header files
included in its build.
src/adw-toast.c | 2 ++
src/adw-toast.h | 4 ++--
2 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/adw-toast.c b/src/adw-toast.c
index 9ecf6730..aaa135df 100644
--- a/src/adw-toast.c
+++ b/src/adw-toast.c
@@ -12,6 +12,8 @@
#include <stdarg.h>
+#include <gio/gio.h>
+
/**
* AdwToastPriority:
* @ADW_TOAST_PRIORITY_NORMAL: the toast will be queued if another toast is
diff --git a/src/adw-toast.h b/src/adw-toast.h
index a6a47e67..0836786e 100644
--- a/src/adw-toast.h
+++ b/src/adw-toast.h
@@ -12,7 +12,7 @@
#include "adw-version.h"
-#include <gtk/gtk.h>
+#include <glib-object.h>
#include "adw-enums.h"
G_BEGIN_DECLS
@@ -46,7 +46,7 @@ void adw_toast_set_button_label (AdwToast *self,
const char *button_label);
ADW_AVAILABLE_IN_ALL
-const char *adw_toast_get_action_name (AdwToast *self);
+const char *adw_toast_get_action_name (AdwToast *self);
ADW_AVAILABLE_IN_ALL
void adw_toast_set_action_name (AdwToast *self,
const char *action_name);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]