! Please note that this is a snapshot of our old Bugzilla server, which is read only since May 29, 2020. Please go to gitlab.xfce.org for our new server !
Cleaning up menus
Status:
RESOLVED: FIXED
Product:
Ristretto
Component:
Application

Comments

Description Masato Hashimoto 2012-04-18 09:20:06 CEST
Created attachment 4338 
fix ellipisises

1) Missing/unnecessary ellipses
   (patch attached)
* Missing ellipses
 - File > "Open"
        > "Save copy"
        > "Properties"
 - Edit > "Clear private data"
        > "Preferences"
        > Open with > "Open With Other Application"
 - View > "Set as Wallpaper"

* Unnecessary ellipsis
 - Edit > "Open with..."

2) Mnemonics conflicts
* View menu
  - "_Show Toolbar"
  - "Show _Status Bar"
  - "Thumbnail _Size"
  - "_Set as Wallpaper"

* Go menu
  - "_Forward"
  - "_First"

Version: git-ebc1bed
Comment 1 Stephan Arts editbugs 2012-04-18 22:11:38 CEST
Simon, can you review this patch?
Comment 2 Simon Steinbeiss editbugs 2012-04-18 22:46:58 CEST
ad 1) I agree with the changes proposed in Masato's patch. E.g. Thunar follows the distinction of adding "..." to menuitems that open another window, not just execute some action directly.

ad 2) With respect to the mnemonic problems, I suggest the following:
* View menu
  - "_Show Toolbar"
  - "Show Status _Bar"
  - "Thumb_nail Size"
  - "Set as _Wallpaper"

* Go menu
  - "_Forward"
  - "F_irst"
(Because "i" is also the latin correspondent of the arabic "1".)
Comment 3 Stephan Arts editbugs 2012-04-19 18:40:11 CEST
I committed some of your suggestions in the code-cleanup I performed.

Can you please check it out?
Comment 4 Stephan Arts editbugs 2012-04-21 13:23:17 CEST
Thank you, fixed the accelerators in master now.
Comment 5 Masato Hashimoto 2012-04-21 15:13:59 CEST
Hi,
One string is forgotten ;)

diff --git a/src/main_window.c b/src/main_window.c
index e415376..cc54f7b 100644
--- a/src/main_window.c
+++ b/src/main_window.c
@@ -1319,7 +1319,7 @@ rstto_main_window_image_list_iter_changed (RsttoMainWindow *window)
             gtk_menu_shell_append (GTK_MENU_SHELL (open_with_menu), menu_item);
             g_signal_connect(G_OBJECT(menu_item), "activate", G_CALLBACK(cb_rstto_main_window_open_with_other_app), window);
 
-            menu_item = gtk_menu_item_new_with_mnemonic (_("Open With Other _Application"));
+            menu_item = gtk_menu_item_new_with_mnemonic (_("Open With Other _Application..."));
             gtk_menu_shell_append (GTK_MENU_SHELL (open_with_window_menu), menu_item);
             g_signal_connect(G_OBJECT(menu_item), "activate", G_CALLBACK(cb_rstto_main_window_open_with_other_app), window);
 
Regards
Comment 6 Stephan Arts editbugs 2012-04-22 09:38:19 CEST
Thank you, I've committed the patch in commit c3fba28116a87ab86210aee4b61e42286d7c717c

Bug #8723

Reported by:
Masato Hashimoto
Reported on: 2012-04-18
Last modified on: 2012-04-22

People

Assignee:
Stephan Arts
CC List:
1 user

Version

Version:
master

Attachments

fix ellipisises (4.14 KB, patch)
2012-04-18 09:20 CEST , Masato Hashimoto
no flags

Additional information