From 9edfa9925aba23c02c43844c718fdc3741e84a9d Mon Sep 17 00:00:00 2001 From: Leonhard Kargl Date: Fri, 21 Jun 2024 13:52:07 +0200 Subject: [PATCH] Fix some warnings --- src/Application.vala | 2 +- src/Dialogs/StripeDialog.vala | 2 +- src/Widgets/Banner.vala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Application.vala b/src/Application.vala index d49e8c6cf..0a74faa48 100644 --- a/src/Application.vala +++ b/src/Application.vala @@ -227,7 +227,7 @@ public class AppCenter.App : Gtk.Application { ((MainWindow) active_window).go_to_installed (); } - active_window.present_with_time (Gdk.CURRENT_TIME); + active_window.present (); } public async void request_background () { diff --git a/src/Dialogs/StripeDialog.vala b/src/Dialogs/StripeDialog.vala index 5a43e2003..67f18fc94 100644 --- a/src/Dialogs/StripeDialog.vala +++ b/src/Dialogs/StripeDialog.vala @@ -415,7 +415,7 @@ public class AppCenter.Widgets.StripeDialog : Granite.Dialog { } } - private void on_response (Gtk.Dialog source, int response_id) { + private void on_response (int response_id) { switch (response_id) { case Gtk.ResponseType.APPLY: if (layouts.visible_child_name == "card") { diff --git a/src/Widgets/Banner.vala b/src/Widgets/Banner.vala index 1cd370ccc..8e9d3c2e7 100644 --- a/src/Widgets/Banner.vala +++ b/src/Widgets/Banner.vala @@ -125,7 +125,7 @@ public class AppCenter.Widgets.Banner : Gtk.Button { } var colored_css = BANNER_STYLE_CSS.printf (bg_color, text_color); - provider.load_from_data (colored_css.data); + provider.load_from_string (colored_css); get_style_context ().add_provider (provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION); } catch (GLib.Error e) { critical ("Unable to set accent color: %s", e.message);