Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void main(string[] args) {
- // Declaring variables
- var msg = "test";
- var notification = new GLib.Notification ("Synapse - Pastebin");
- notification.set_body (msg);
- //var gicon = GLib.Icon.new_for_string ("synapse");
- //notification.set_icon (gicon);
- GLib.Application.get_default ().send_notification (null, notification);
- }
- /*console
- gavr@archlabs ~> vala console.vala --pkg gio-2.0
- (process:4047): GLib-GIO-CRITICAL **: 15:18:49.922: g_application_send_notification: assertion 'G_IS_APPLICATION (application)' failed
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement