[nautilus] view: use g_app_info_get_name() for application names in Open With menus



commit a28c4a102a8cae1de75fd853971a2c1469c94c24
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Mon Mar 25 14:03:46 2013 -0400

    view: use g_app_info_get_name() for application names in Open With menus
    
    This is consistent with the Shell and what is used in the
    properties/Open With dialog.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=696374

 src/nautilus-mime-actions.c |    4 ++--
 src/nautilus-view.c         |    4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/nautilus-mime-actions.c b/src/nautilus-mime-actions.c
index 2b1c677..c628861 100644
--- a/src/nautilus-mime-actions.c
+++ b/src/nautilus-mime-actions.c
@@ -412,8 +412,8 @@ static int
 application_compare_by_name (const GAppInfo *app_a,
                             const GAppInfo *app_b)
 {
-       return g_utf8_collate (g_app_info_get_display_name ((GAppInfo *)app_a),
-                              g_app_info_get_display_name ((GAppInfo *)app_b));
+       return g_utf8_collate (g_app_info_get_name ((GAppInfo *)app_a),
+                              g_app_info_get_name ((GAppInfo *)app_b));
 }
 
 static int
diff --git a/src/nautilus-view.c b/src/nautilus-view.c
index 2243296..6b1bed2 100644
--- a/src/nautilus-view.c
+++ b/src/nautilus-view.c
@@ -4332,7 +4332,7 @@ add_application_to_open_with_menu (NautilusView *view,
 
        launch_parameters = application_launch_parameters_new 
                (application, files, view);
-       escaped_app = eel_str_double_underscores (g_app_info_get_display_name (application));
+       escaped_app = eel_str_double_underscores (g_app_info_get_name (application));
        if (submenu)
                label = g_strdup_printf ("%s", escaped_app);
        else
@@ -8501,7 +8501,7 @@ real_update_menus (NautilusView *view)
        if (app != NULL) {
                char *escaped_app;
 
-               escaped_app = eel_str_double_underscores (g_app_info_get_display_name (app));
+               escaped_app = eel_str_double_underscores (g_app_info_get_name (app));
                label_with_underscore = g_strdup_printf (_("_Open With %s"),
                                                         escaped_app);
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]