Skip to content

Conversation

@meisenzahl
Copy link
Member

@meisenzahl meisenzahl commented Sep 27, 2020

  • ../src/Core/PackageKitBackend.vala:420.90-420.120: warning: `AppStream.ProvidedKind.MIMETYPE' is deprecated. Use MEDIATYPE
  • ../src/Dialogs/StripeDialog.vala:192.43-192.57: warning: `Gtk.Dialog.get_action_area' has been deprecated since 3.12
  • ../src/Views/AppListUpdateView.vala:323.17-323.38: warning: implicit .begin is deprecated
  • ../src/Dialogs/RestartDialog.vala:81.31-81.45: warning: `Gtk.Dialog.get_action_area' has been deprecated since 3.12

@meisenzahl
Copy link
Member Author

meisenzahl commented Sep 27, 2020

  1. The action_area in RestartDialog gets only styled. Can we remove this code because Gtk.Dialog.get_action_area has been deprecated?
  2. The action_area in StripeDialog gets styled and a Gtk.LinkButton is added. Can we replace the logic with Gtk.Dialog.add_button?

@danirabbit
Copy link
Member

I think we should be able to do something like:

        var privacy_policy_link = new Gtk.LinkButton.with_label ("https://stripe.com/privacy", _("Privacy Policy")) {
            halign = Gtk.Align.START,
            hexpand = true
        };

        add_action_widget (privacy_policy_link, Gtk.ResponseType.NONE);

But to avoid having to manually mess with margins in dialogs, we need elementary/stylesheet#839

@meisenzahl meisenzahl requested a review from danirabbit October 21, 2020 17:46
@danirabbit danirabbit merged commit e3a9b4f into elementary:master Oct 21, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants