Fixed building on Ubuntu
This commit is contained in:
@@ -242,7 +242,8 @@ namespace SwayNotificationCenter {
|
|||||||
params.set ("app_name", app_name);
|
params.set ("app_name", app_name);
|
||||||
params.set ("replaces_id", replaces_id.to_string ());
|
params.set ("replaces_id", replaces_id.to_string ());
|
||||||
params.set ("app_icon", app_icon);
|
params.set ("app_icon", app_icon);
|
||||||
params.set ("default_action", default_action ? .to_string ());
|
params.set ("default_action", default_action == null
|
||||||
|
? null : default_action.to_string ());
|
||||||
params.set ("summary", summary);
|
params.set ("summary", summary);
|
||||||
params.set ("body", "\t" + body);
|
params.set ("body", "\t" + body);
|
||||||
string[] _hints = {};
|
string[] _hints = {};
|
||||||
@@ -267,7 +268,7 @@ namespace SwayNotificationCenter {
|
|||||||
params.set ("resident", resident.to_string ());
|
params.set ("resident", resident.to_string ());
|
||||||
params.set ("urgency", urgency.to_string ());
|
params.set ("urgency", urgency.to_string ());
|
||||||
string[] _actions = {};
|
string[] _actions = {};
|
||||||
foreach (var _action in actions) {
|
foreach (var _action in actions.data) {
|
||||||
_actions += "\n\t" + _action.to_string ();
|
_actions += "\n\t" + _action.to_string ();
|
||||||
}
|
}
|
||||||
params.set ("actions", string.joinv ("", _actions));
|
params.set ("actions", string.joinv ("", _actions));
|
||||||
|
@@ -336,7 +336,7 @@ namespace SwayNotificationCenter {
|
|||||||
alt_actions_box = new Gtk.ButtonBox (Gtk.Orientation.HORIZONTAL);
|
alt_actions_box = new Gtk.ButtonBox (Gtk.Orientation.HORIZONTAL);
|
||||||
alt_actions_box.set_homogeneous (true);
|
alt_actions_box.set_homogeneous (true);
|
||||||
alt_actions_box.set_layout (Gtk.ButtonBoxStyle.EXPAND);
|
alt_actions_box.set_layout (Gtk.ButtonBoxStyle.EXPAND);
|
||||||
foreach (var action in param.actions) {
|
foreach (var action in param.actions.data) {
|
||||||
var action_button = new Gtk.Button.with_label (action.name);
|
var action_button = new Gtk.Button.with_label (action.name);
|
||||||
action_button.clicked.connect (() => action_clicked (action));
|
action_button.clicked.connect (() => action_clicked (action));
|
||||||
action_button
|
action_button
|
||||||
|
Reference in New Issue
Block a user