After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 129073 - Right click on "panel menu button" should have "Browse Applications" option.
Right click on "panel menu button" should have "Browse Applications" option.
Status: RESOLVED FIXED
Product: gnome-panel
Classification: Other
Component: panel
2.5.x
Other Linux
: High enhancement
: ---
Assigned To: Panel Maintainers
Panel Maintainers
: 102898 130665 154905 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2003-12-11 10:00 UTC by Vijaykumar Patwari
Modified: 2015-03-24 13:00 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
Patch adds the feature mentioned. (1.79 KB, patch)
2003-12-11 10:33 UTC, Vijaykumar Patwari
none Details | Review
Patch fixes the bug. (4.67 KB, patch)
2003-12-17 13:33 UTC, Vijaykumar Patwari
none Details | Review
Patch with above mentioned feature. (4.85 KB, patch)
2004-03-19 11:12 UTC, Vijaykumar Patwari
none Details | Review
Attaching screenshot for Edit Menus :) (52.78 KB, image/png)
2004-03-19 12:11 UTC, Vijaykumar Patwari
  Details

Description Vijaykumar Patwari 2003-12-11 10:00:11 UTC
Right click on panel menu button has "Help",  "Remove From Panel",
"Lock/Unlock" and "Move". It would look better to have an option like
"Browse Application", on click which lauches a nautilus window.

'Browse Application' should launch nautilus window with applications:///
Comment 1 Vijaykumar Patwari 2003-12-11 10:33:18 UTC
Created attachment 22328 [details] [review]
Patch adds the feature mentioned.
Comment 2 Vincent Untz 2003-12-11 12:41:04 UTC
I'm adding the usability people to CC so they can give their advice
about this feature. I think this is ok, but maybe they have a better
plan about this.

I looked a bit at this patch.

egg_screen_execute_command_line_async (screen, "nautilus
applications:///", &error);

One problem is that there can be menu buttons for all the directories
in applications:///. E.g.: open the application menu, go to internet
and right-click. There you can choose to add this subdirectory as a
menu button to the panel. And so, when you browse this menu button,
you should browse applications://internet/ (see the menu_path field of
the menu button structure).

You may want to launch 'nautilus --no-desktop' too.
Comment 3 Mark McLoughlin 2003-12-11 12:44:35 UTC
Actually, you probably really want to do:

  gnome_url_show_on_screen (screen, button->menu_path, &error);


Also curious to see what the usability people think, but it
does seem like a good entry point for editing the menu.
Comment 4 Vijaykumar Patwari 2003-12-17 13:33:59 UTC
Created attachment 22510 [details] [review]
Patch fixes the bug.
Comment 5 Vincent Untz 2004-01-06 14:26:23 UTC
*** Bug 130665 has been marked as a duplicate of this bug. ***
Comment 6 Glynn Foster 2004-01-06 21:55:25 UTC
bizarre that we have a different patch in JDS. god bless communication ;)
Comment 7 Vincent Untz 2004-01-06 22:08:25 UTC
One small comment on this patch: in panel-menu-button.c:

+	panel_applet_add_callback (info, "browse", NULL, _("_Browse
Applications"));
+

This should be "Browse %s" where %s is the name of the folder. Problem
is that we don't have access to the name of the folder in the struct
_PanelMenuButtonPrivate.
Comment 8 Mark McLoughlin 2004-02-13 18:27:21 UTC
Patch looks pretty reasonable to me. Still need input from usability
people.

  + Punting to 2.8. We're past the UI freeze.

 panel_menu_bar_invoke_menu (PanelMenuBar *menubar,
 			    const char   *callback_name)
 {
 	GdkScreen *screen;
+	GError *error = NULL;

   + "error" is not use at this scope, move it into the browse
     handling scope

+	} else
+		return;
+}

   + Delete this - its completely unneccessary.

+ panel_applet_add_callback (info, "browse", NULL, _("_Browse ....

   + As Vincent said, in panel-menu-button.c you should use the
     actual name of the menu

   + Make the same changes in panel_menu_button_invoke_menu() that
     I suggest above


     




Comment 9 Calum Benson 2004-02-16 14:21:17 UTC
I think it's a harmless feature that gives us some consistency with
Windows, although Windows has separate entries for "Open" and "Open
All Users"... should we do the same, opening applications:/// and
applications-all-users:/// respectively?

Also need to be careful with terminology now that we have spatial
Nautilus-- "Browse" implies opening a navigational rather than spatial
window, is that what this patch does?  If not, we should probably use
"_Open" IMHO (as "Open Applications" would be a bit ambiguous), or
even "_Edit" if we were feeling keen :)
Comment 10 Vincent Untz 2004-02-25 10:02:57 UTC
*** Bug 102898 has been marked as a duplicate of this bug. ***
Comment 11 Vijaykumar Patwari 2004-03-19 11:12:12 UTC
Created attachment 25800 [details] [review]
Patch with above mentioned feature.
Comment 12 Vijaykumar Patwari 2004-03-19 12:11:37 UTC
Created attachment 25802 [details]
Attaching screenshot for Edit Menus :)
Comment 13 Calum Benson 2004-03-25 15:24:49 UTC
Hmm, I'm not sure that "Edit" should be a submenu, I was just suggesting it as
an alernative term for "Open" or "Browse".  I suppose it might be useful, but it
feels a bit like overkill for a feature most people will never see.
Comment 14 Calum Benson 2004-03-29 13:03:28 UTC
The initial patch looked fine to me (GUI-wise), however I believe Bala already
wrote one for JDS that does the same thing, so we should probably post that one
here instead :)
Comment 15 Vijaykumar Patwari 2004-03-31 12:17:35 UTC
Calum: Basically my *initial* patch in bugzilla and bala's patch in JDS are
same. The patch was first put into bugzilla and later it was applied into JDS
:-).
Mark, Vincent: Shall i commit my initial patch into CVS HEAD? 
Comment 16 Vincent Untz 2004-10-15 18:31:19 UTC
*** Bug 154905 has been marked as a duplicate of this bug. ***
Comment 17 Mark McLoughlin 2004-11-11 08:15:42 UTC
I'm sorry this patch never got accepted. Problem now is that applications:/// is
no longer used for the panel. We'll need to figure out a menu editing solution,
and as part of that we'll probably have a menu item like this, but I think for
now its better to just close this.

Thanks
Comment 18 Mark McLoughlin 2005-05-18 13:11:39 UTC
Now we should link the thing to gmenu-simple-editor
Comment 19 Mark McLoughlin 2005-05-18 14:49:18 UTC
2005-05-18  Mark McLoughlin  <mark@skynet.ie>

        Add an "Edit Menus" menu item to the menu bar
        and menu button context menu. Based on a patch
        from Vijaykumar Patwari <vijaykumar.patwari@wipro.com>
        in bug #129073.

        * panel-menu-bar.c:
        (panel_menu_bar_load): add an "Edit Menus" context
        menu if gmenu-simple-editor is installed.
        (panel_menu_bar_invoke_menu): Run gmenu-simple-editor
        if Edit Menus is clicked.

        * panel-menu-button.c:
        (panel_menu_button_load),
        (panel_menu_button_invoke_menu): ditto here.