aboutsummaryrefslogtreecommitdiff
path: root/main/src/ui/util
diff options
context:
space:
mode:
authorfiaxh <git@lightrise.org>2023-10-07 14:29:26 +0200
committerfiaxh <git@lightrise.org>2023-10-07 14:34:23 +0200
commit1e167eeea67f18f3d5788dc34d97d94e6f401499 (patch)
treedf73a70a25fb02d7a2e70623b3ab5ecbe86ced53 /main/src/ui/util
parent0c45387bf903e5b0d02502d27642dd2a78aa6539 (diff)
downloaddino-1e167eeea67f18f3d5788dc34d97d94e6f401499.tar.gz
dino-1e167eeea67f18f3d5788dc34d97d94e6f401499.zip
Fix some compiler warnings
Diffstat (limited to 'main/src/ui/util')
-rw-r--r--main/src/ui/util/data_forms.vala1
-rw-r--r--main/src/ui/util/label_hybrid.vala4
2 files changed, 0 insertions, 5 deletions
diff --git a/main/src/ui/util/data_forms.vala b/main/src/ui/util/data_forms.vala
index d10196ab..39dce3ee 100644
--- a/main/src/ui/util/data_forms.vala
+++ b/main/src/ui/util/data_forms.vala
@@ -75,7 +75,6 @@ public static ViewModel.PreferencesRow.Any? get_data_form_field_view_model(DataF
if (option.value == list_single_field.value) combobox_model.active_item = i;
}
combobox_model.bind_property("active-item", list_single_field, "value", BindingFlags.DEFAULT, (binding, from, ref to) => {
- var src_field = (DataForms.DataForm.ListSingleField) binding.dup_target();
var active_item = (int) from;
to = list_single_field.options[active_item].value;
return true;
diff --git a/main/src/ui/util/label_hybrid.vala b/main/src/ui/util/label_hybrid.vala
index f426de7e..0059d2ae 100644
--- a/main/src/ui/util/label_hybrid.vala
+++ b/main/src/ui/util/label_hybrid.vala
@@ -97,10 +97,6 @@ public class EntryLabelHybrid : LabelHybrid {
}
}
- private void on_focus_leave() {
- show_label();
- }
-
private void update_label() {
if (visibility) {
label.label = entry.text;