diff --git a/data/heartbeat.js b/data/heartbeat.js index f690a90..60bd2d4 100644 --- a/data/heartbeat.js +++ b/data/heartbeat.js @@ -67,4 +67,4 @@ class LightDMGreeterHeartbeat { } -window.LightDMGreeterHeartbeat = LightDMGreeterHeartbeat; +new LightDMGreeterHeartbeat(); diff --git a/src/greeter.c b/src/greeter.c index 65ba762..42fa77a 100644 --- a/src/greeter.c +++ b/src/greeter.c @@ -222,7 +222,7 @@ lock_hint_enabled_handler(void) { static void -load_theme_heartbeat_script() { +load_theme_heartbeat_script(void) { webkit_web_view_run_javascript_from_gresource( WEBKIT_WEB_VIEW(web_view), "/com/antergos/lightdm-webkit2-greeter/js/heartbeat.js", diff --git a/src/gresource/greeter-resources.c b/src/gresource/greeter-resources.c index 23116e0..3d7e607 100644 --- a/src/gresource/greeter-resources.c +++ b/src/gresource/greeter-resources.c @@ -6,7 +6,7 @@ # define SECTION #endif -static const SECTION union { const guint8 data[2708]; const double alignment; void * const ptr;} greeter_resources_resource_data = { { +static const SECTION union { const guint8 data[2684]; const double alignment; void * const ptr;} greeter_resources_resource_data = { { 0x47, 0x56, 0x61, 0x72, 0x69, 0x61, 0x6e, 0x74, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x18, 0x00, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, @@ -23,27 +23,27 @@ static const SECTION union { const guint8 data[2708]; const double alignment; vo 0x0c, 0x01, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x73, 0xf8, 0xf6, 0x72, 0x00, 0x00, 0x00, 0x00, 0x10, 0x01, 0x00, 0x00, 0x0c, 0x00, 0x76, 0x00, - 0x20, 0x01, 0x00, 0x00, 0x0b, 0x0a, 0x00, 0x00, + 0x20, 0x01, 0x00, 0x00, 0xf0, 0x09, 0x00, 0x00, 0xd4, 0xb5, 0x02, 0x00, 0xff, 0xff, 0xff, 0xff, - 0x0b, 0x0a, 0x00, 0x00, 0x01, 0x00, 0x4c, 0x00, - 0x0c, 0x0a, 0x00, 0x00, 0x10, 0x0a, 0x00, 0x00, + 0xf0, 0x09, 0x00, 0x00, 0x01, 0x00, 0x4c, 0x00, + 0xf4, 0x09, 0x00, 0x00, 0xf8, 0x09, 0x00, 0x00, 0x8c, 0x77, 0x10, 0x71, 0x07, 0x00, 0x00, 0x00, - 0x10, 0x0a, 0x00, 0x00, 0x09, 0x00, 0x76, 0x00, - 0x20, 0x0a, 0x00, 0x00, 0x5c, 0x0a, 0x00, 0x00, + 0xf8, 0x09, 0x00, 0x00, 0x09, 0x00, 0x76, 0x00, + 0x08, 0x0a, 0x00, 0x00, 0x44, 0x0a, 0x00, 0x00, 0xb4, 0xae, 0x96, 0xdb, 0x01, 0x00, 0x00, 0x00, - 0x5c, 0x0a, 0x00, 0x00, 0x09, 0x00, 0x4c, 0x00, - 0x68, 0x0a, 0x00, 0x00, 0x6c, 0x0a, 0x00, 0x00, + 0x44, 0x0a, 0x00, 0x00, 0x09, 0x00, 0x4c, 0x00, + 0x50, 0x0a, 0x00, 0x00, 0x54, 0x0a, 0x00, 0x00, 0x0c, 0xa6, 0xd8, 0x48, 0x05, 0x00, 0x00, 0x00, - 0x6c, 0x0a, 0x00, 0x00, 0x18, 0x00, 0x4c, 0x00, - 0x84, 0x0a, 0x00, 0x00, 0x8c, 0x0a, 0x00, 0x00, + 0x54, 0x0a, 0x00, 0x00, 0x18, 0x00, 0x4c, 0x00, + 0x6c, 0x0a, 0x00, 0x00, 0x74, 0x0a, 0x00, 0x00, 0xc4, 0x0d, 0xcd, 0xb1, 0x06, 0x00, 0x00, 0x00, - 0x8c, 0x0a, 0x00, 0x00, 0x04, 0x00, 0x4c, 0x00, - 0x90, 0x0a, 0x00, 0x00, 0x94, 0x0a, 0x00, 0x00, + 0x74, 0x0a, 0x00, 0x00, 0x04, 0x00, 0x4c, 0x00, + 0x78, 0x0a, 0x00, 0x00, 0x7c, 0x0a, 0x00, 0x00, 0x6a, 0x73, 0x2f, 0x00, 0x02, 0x00, 0x00, 0x00, 0x63, 0x6f, 0x6d, 0x2f, 0x05, 0x00, 0x00, 0x00, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x2e, 0x6a, 0x73, 0x00, 0x00, 0x00, 0x00, - 0xdb, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, + 0xc0, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2f, 0x2a, 0x0a, 0x20, 0x2a, 0x20, 0x68, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x2e, 0x6a, 0x73, 0x0a, 0x20, 0x2a, 0x0a, 0x20, 0x2a, @@ -320,15 +320,12 @@ static const SECTION union { const guint8 data[2708]; const double alignment; vo 0x0a, 0x09, 0x09, 0x09, 0x7d, 0x0a, 0x09, 0x09, 0x7d, 0x2c, 0x20, 0x35, 0x30, 0x30, 0x30, 0x29, 0x3b, 0x0a, 0x09, 0x7d, 0x0a, 0x7d, 0x0a, 0x0a, - 0x0a, 0x77, 0x69, 0x6e, 0x64, 0x6f, 0x77, 0x2e, - 0x4c, 0x69, 0x67, 0x68, 0x74, 0x44, 0x4d, 0x47, - 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, 0x48, 0x65, - 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, 0x74, 0x20, - 0x3d, 0x20, 0x4c, 0x69, 0x67, 0x68, 0x74, 0x44, - 0x4d, 0x47, 0x72, 0x65, 0x65, 0x74, 0x65, 0x72, - 0x48, 0x65, 0x61, 0x72, 0x74, 0x62, 0x65, 0x61, - 0x74, 0x3b, 0x0a, 0x00, 0x00, 0x28, 0x75, 0x75, - 0x61, 0x79, 0x29, 0x2f, 0x01, 0x00, 0x00, 0x00, + 0x0a, 0x6e, 0x65, 0x77, 0x20, 0x4c, 0x69, 0x67, + 0x68, 0x74, 0x44, 0x4d, 0x47, 0x72, 0x65, 0x65, + 0x74, 0x65, 0x72, 0x48, 0x65, 0x61, 0x72, 0x74, + 0x62, 0x65, 0x61, 0x74, 0x28, 0x29, 0x3b, 0x0a, + 0x00, 0x00, 0x28, 0x75, 0x75, 0x61, 0x79, 0x29, + 0x2f, 0x00, 0x00, 0x00, 0x01, 0x00, 0x00, 0x00, 0x73, 0x74, 0x79, 0x6c, 0x65, 0x2e, 0x63, 0x73, 0x73, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x2c, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,