aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 14:28:38 +0100
committerMike Gabriel <mike.gabriel@das-netzwerkteam.de>2023-03-01 14:28:38 +0100
commitea1692f872f8075ef0b26ffafb3ab7ff075e9066 (patch)
treeeba8cd78b176e4429d2ab5c797711c14a17cc786 /src
parent03b4ed0f9cd9bb90bf00f24057c82538cb6f6076 (diff)
downloadarctica-greeter-ea1692f872f8075ef0b26ffafb3ab7ff075e9066.tar.gz
arctica-greeter-ea1692f872f8075ef0b26ffafb3ab7ff075e9066.tar.bz2
arctica-greeter-ea1692f872f8075ef0b26ffafb3ab7ff075e9066.zip
src/: Get rid of various vala interpreter warnings.
Diffstat (limited to 'src')
-rw-r--r--src/arctica-greeter.vala9
-rw-r--r--src/prompt-box.vala2
2 files changed, 6 insertions, 5 deletions
diff --git a/src/arctica-greeter.vala b/src/arctica-greeter.vala
index 309503b..ecbcc01 100644
--- a/src/arctica-greeter.vala
+++ b/src/arctica-greeter.vala
@@ -549,9 +549,9 @@ public class ArcticaGreeter : Object
var time_post = GLib.get_monotonic_time ();
var time_diff = time_post - time_pre;
assert (0 <= time_diff);
- var time_diff_sec = time_diff / 1000000;
- var time_diff_msec = time_diff / 1000;
- var time_diff_usec = time_diff % 1000000;
+ // var time_diff_sec = time_diff / 1000000;
+ // var time_diff_msec = time_diff / 1000;
+ // var time_diff_usec = time_diff % 1000000;
// debug ("Time passed: %" + int64.FORMAT + " s, %" + int64.FORMAT + " ms, %" + int64.FORMAT + " us", time_diff_sec, time_diff_msec, time_diff_usec);
}
@@ -1015,6 +1015,9 @@ public class ArcticaGreeter : Object
*
* We want to do this before creating the actual greeter, since the
* latter is using AGSettings quite extensively.
+ *
+ * This will throw a Vala warning: "local variable `agsettings' declared
+ * but never used". Which can be ignored.
*/
var agsettings = new AGSettings ();
diff --git a/src/prompt-box.vala b/src/prompt-box.vala
index a5d44bb..ffce61c 100644
--- a/src/prompt-box.vala
+++ b/src/prompt-box.vala
@@ -208,7 +208,6 @@ public class PromptBox : FadableBox
debug ("Internal error loading font style (%s, %dpt): %s", font_family, font_size+2, e.message);
}
- var agsettings = new AGSettings ();
try
{
var color_provider = new Gtk.CssProvider ();
@@ -917,7 +916,6 @@ private class ActiveIndicator : Gtk.Image
var rowstride = this.pixbuf_inverted_.get_rowstride ();
var col_bytes = (((channels * sample_size) + 7) / 8);
- var row_bytes = (this.pixbuf_inverted_.width * col_bytes);
unowned var pixels = this.pixbuf_inverted_.get_pixels ();
assert (pixels != null);
size_t color_bits = channels;