[minor] code styling fixes
This commit is contained in:
@@ -15,16 +15,14 @@ static TeleportAppWindow *win;
|
||||
static GApplication *application;
|
||||
static gint signalIds [N_SIGNALS];
|
||||
|
||||
struct _TeleportApp
|
||||
{
|
||||
struct _TeleportApp {
|
||||
GtkApplication parent;
|
||||
};
|
||||
|
||||
G_DEFINE_TYPE (TeleportApp, teleport_app, GTK_TYPE_APPLICATION);
|
||||
|
||||
|
||||
static void create_user_notification (const char *file_name, const int file_size, const char *origin_device)
|
||||
{
|
||||
static void create_user_notification (const char *file_name, const int file_size, const char *origin_device) {
|
||||
g_print("Create Notification");
|
||||
GNotification *notification = g_notification_new ("Teleport");
|
||||
g_notification_set_body (notification, g_strdup_printf("%s is sending %s (%d Byte)", origin_device, file_name, file_size));
|
||||
@@ -37,8 +35,7 @@ static void create_user_notification (const char *file_name, const int file_size
|
||||
g_object_unref (notification);
|
||||
}
|
||||
|
||||
static void create_finished_notification (const char *file_name, const int file_size, const char *origin_device)
|
||||
{
|
||||
static void create_finished_notification (const char *file_name, const int file_size, const char *origin_device) {
|
||||
GNotification *notification = g_notification_new ("Teleport");
|
||||
g_notification_set_body (notification, g_strdup_printf("Transfer %s from %s is complete)", file_name, origin_device));
|
||||
GIcon *icon = g_themed_icon_new ("dialog-information");
|
||||
@@ -75,14 +72,12 @@ void callback_notify_user(GObject *instance, char *name, TeleportAppWindow *win
|
||||
}
|
||||
|
||||
static void
|
||||
teleport_app_init (TeleportApp *app)
|
||||
{
|
||||
teleport_app_init (TeleportApp *app) {
|
||||
|
||||
}
|
||||
|
||||
static void
|
||||
teleport_app_activate (GApplication *app)
|
||||
{
|
||||
teleport_app_activate (GApplication *app) {
|
||||
//TeleportAppWindow *win;
|
||||
application = app;
|
||||
TeleportPeer *peerList = g_object_new (TELEPORT_TYPE_PEER, NULL);
|
||||
|
||||
Reference in New Issue
Block a user