[libadwaita/ebassi/toast-format: 6/7] Do not overinclude headers in AdwToast




commit f485959623ffcb320f7e70a181e6cf581d7b99df
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 c488c29b..0677a0f5 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 1af12b15..4b1525c0 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]