Skip to content

Commit

Permalink
Fix some warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
leolost2605 committed Jun 21, 2024
1 parent cecf3ba commit 9edfa99
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/Application.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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 () {
Expand Down
2 changes: 1 addition & 1 deletion src/Dialogs/StripeDialog.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
2 changes: 1 addition & 1 deletion src/Widgets/Banner.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9edfa99

Please sign in to comment.