diff options
Diffstat (limited to 'ui/gtk')
-rw-r--r-- | ui/gtk/main_menubar.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c index 12ddb54049..70ed8d6a1d 100644 --- a/ui/gtk/main_menubar.c +++ b/ui/gtk/main_menubar.c @@ -3787,8 +3787,10 @@ add_recent_items (guint merge_id, GtkUIManager *ui_manager) GtkActionGroup *action_group; GtkAction *action; GtkWidget *submenu_recent_files; + GtkWidget *submenu_recent_file; GList *items, *l; gchar *action_name; + gchar *recent_path; guint i; /* Reset the recent files list in the welcome screen */ @@ -3855,9 +3857,15 @@ add_recent_items (guint merge_id, GtkUIManager *ui_manager) GTK_UI_MANAGER_MENUITEM, FALSE); + /* Disable mnemonic accelerator key for recent file name */ + recent_path = g_strdup_printf ("/Menubar/FileMenu/OpenRecent/RecentFiles/recent-info-%u", i); + submenu_recent_file = gtk_ui_manager_get_widget(ui_manager, recent_path); + g_object_set(G_OBJECT (submenu_recent_file), "use-underline", 0); + /* Add the file name to the recent files list on the Welcome screen */ main_welcome_add_recent_capture_file(item_name, G_OBJECT(action)); + g_free (recent_path); g_free (action_name); } /* Add a Separator */ |