Skip to content

Commit

Permalink
recent files: Don't show a number in front of the filename
Browse files Browse the repository at this point in the history
- The indentation/alignment doesn't work past 9 items
- It's inconsistent with the favorites list, which doesn't show any
  • Loading branch information
clefebvre committed Jun 4, 2024
1 parent d59a067 commit f2f68fc
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions xed/xed-window.c
Original file line number Diff line number Diff line change
Expand Up @@ -898,7 +898,6 @@ update_recent_files_menu (XedWindow *window)
{
gchar *action_name;
const gchar *display_name;
gchar *escaped;
gchar *label;
gchar *uri;
gchar *ruri;
Expand All @@ -918,14 +917,7 @@ update_recent_files_menu (XedWindow *window)
action_name = g_strdup_printf ("recent-info-%d", i);

display_name = gtk_recent_info_get_display_name (info);
escaped = xed_utils_escape_underscores (display_name, -1);
if (i >= 10)
{
label = g_strdup_printf ("%d. %s", i, escaped);
}
else
label = g_strdup_printf ("_%d. %s", i, escaped);
g_free (escaped);
label = xed_utils_escape_underscores (display_name, -1);

/* gtk_recent_info_get_uri_display (info) is buggy and
* works only for local files */
Expand Down

0 comments on commit f2f68fc

Please sign in to comment.