Skip to content

Commit

Permalink
backend/adw: Fix errors
Browse files Browse the repository at this point in the history
  • Loading branch information
tseli0s committed Nov 12, 2023
1 parent 874259c commit 863c79f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 15 deletions.
9 changes: 0 additions & 9 deletions src/backend/adw/nvdialog_adw.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
13 changes: 7 additions & 6 deletions src/backend/adw/nvdialog_notification.c
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 863c79f

Please sign in to comment.