diff --git a/src/backend/adw/nvdialog_adw.h b/src/backend/adw/nvdialog_adw.h index b7327db..cd48cbd 100644 --- a/src/backend/adw/nvdialog_adw.h +++ b/src/backend/adw/nvdialog_adw.h @@ -106,15 +106,6 @@ void *nvd_dialog_box_get_raw_adw (NvdDialogBox *dialog); void *nvd_dialog_question_get_raw_adw (NvdQuestionBox *dialog); void *nvd_open_file_dialog_get_raw_adw(NvdFileDialog *dialog); -/* Creates a new CSS manager compatible with libadwaita. */ -NvdCSSManager *nvd_css_manager_adw(); - -/* TODO: Add comments here. */ -int nvd_css_manager_attach_string_stylesheet_adw(NvdCSSManager *mgr, - const char *str); -int nvd_css_manager_attach_stylesheet_adw(NvdCSSManager *mgr, const char *filename); -int nvd_css_manager_use_style_adw (NvdCSSManager *mgr, void *raw_handle); - /* * Sets the specified action for the notification. * (Adwaita implementation) diff --git a/src/backend/adw/nvdialog_notification.c b/src/backend/adw/nvdialog_notification.c index f0a576a..6ddbcbc 100644 --- a/src/backend/adw/nvdialog_notification.c +++ b/src/backend/adw/nvdialog_notification.c @@ -23,6 +23,7 @@ */ #include "../../nvdialog_assert.h" +#include "nvdialog_typeimpl.h" #include "nvdialog_adw.h" #include "nvdialog_notification.h" /* So we reduce compile-time dependencies. */ @@ -109,13 +110,13 @@ NvdNotification *nvd_notification_adw(const char *title, const char *icon_name = __nvd_match_notif_type(type); - notification->title = (char*) title; - notification->contents = (char*) msg; - notification->raw = (void*) notify_new(notification->title, - notification->contents, + notification->title = (char*) title; + notification->body = (char*) msg; + notification->raw = (void*) notify_new(notification->title, + notification->body, icon_name); - notification->type = type; - notification->shown = false; + notification->type = type; + notification->shown = false; if (notification->type == NVD_NOTIFICATION_ERROR) { const char *fn_name = "notify_notification_set_urgency";