From 66b9480494c57ae38b78553e62a358ca5c999be8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Danielle=20For=C3=A9?= Date: Thu, 29 Jan 2026 09:25:50 -0800 Subject: [PATCH] AppChooser/Dialog: invert primary and secondary text --- src/AppChooser/Dialog.vala | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/AppChooser/Dialog.vala b/src/AppChooser/Dialog.vala index 4c417211..514d2cf4 100644 --- a/src/AppChooser/Dialog.vala +++ b/src/AppChooser/Dialog.vala @@ -48,11 +48,6 @@ public class AppChooser.Dialog : Gtk.Window { buttons = new HashTable (str_hash, str_equal); AppInfo? info = app_id == "" ? null : new DesktopAppInfo (app_id + ".desktop"); - var primary_text = _("Open file with…"); - if (filename != "") { - primary_text = _("Open “%s” with…").printf (filename); - } - var content_description = ContentType.get_description ("text/plain"); var content_icon = ContentType.get_icon ("text/plain"); if (content_type != "") { @@ -60,6 +55,16 @@ public class AppChooser.Dialog : Gtk.Window { content_icon = ContentType.get_icon (content_type); } + var primary_text = _("An application wants to open a %s").printf (content_description); + if (info != null) { + primary_text = _("“%s” wants to open a %s").printf (info.get_display_name (), content_description); + } + + var secondary_text = _("Open file with…"); + if (filename != "") { + secondary_text = _("Open “%s” with…").printf (filename); + } + var primary_label = new Gtk.Label (primary_text) { max_width_chars = 50, selectable = false, @@ -69,11 +74,6 @@ public class AppChooser.Dialog : Gtk.Window { }; primary_label.add_css_class (Granite.STYLE_CLASS_TITLE_LABEL); - var secondary_text = _("An application requested to open a %s.").printf (content_description); - if (info != null) { - secondary_text = _("“%s” requested to open a %s.").printf (info.get_display_name (), content_description); - } - var secondary_label = new Gtk.Label (secondary_text) { max_width_chars = 50, margin_bottom = 18,