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