[add] initial notification stuff and .desktop file
This commit is contained in:
6
src/org.gtk.teleportapp.desktop
Executable file
6
src/org.gtk.teleportapp.desktop
Executable file
@@ -0,0 +1,6 @@
|
||||
[Desktop Entry]
|
||||
Name=Teleport
|
||||
Exec=/home/tobi/code/teleport/src/teleportapp
|
||||
Icon=utilities-terminal
|
||||
Type=Application
|
||||
Categories=GTK;GNOME;Utility;
|
||||
@@ -58,6 +58,14 @@ teleport_app_activate (GApplication *app)
|
||||
*/
|
||||
run_avahi_publish_service("Angela's (self)");
|
||||
run_avahi_service(peerList);
|
||||
GNotification *notification = g_notification_new ("Hello world!");
|
||||
g_notification_set_body (notification, "This is an example notification.");
|
||||
GIcon *icon = g_themed_icon_new ("dialog-information");
|
||||
g_notification_set_icon (notification, icon);
|
||||
g_notification_add_button (notification, "5 minutes", "app.reply-5-minutes");
|
||||
g_application_send_notification (app, NULL, notification);
|
||||
g_object_unref (icon);
|
||||
g_object_unref (notification);
|
||||
}
|
||||
|
||||
static void
|
||||
|
||||
Reference in New Issue
Block a user