Memyandi42 / gnome-menu-file-browser-applet

Automatically exported from code.google.com/p/gnome-menu-file-browser-applet
0 stars 0 forks source link

Appearance does not match the rest of the menus #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Unlike GNOME's Applications-Places-System menu, the plain foot menu as well
as Novell's Computer menu this applet has a border and a handle bar, which
make it look out of place.

The border exists at least with the default Clearlooks theme and several
other themes. See the attached screenshot.

The handle bar should not be necessary as users don't often move their
panel applets around. Removing the handle bar would require the filebrowser
menu to be shown only on left-click and the configuration menu on
right-click, as is done with all the GNOME menus.

Original issue reported on code.google.com by osmo...@gmail.com on 25 Mar 2007 at 5:34

Attachments:

GoogleCodeExporter commented 9 years ago
Yes, I was aware of this. One possible option to fix this is (if the GNOME folks
approved) to include this menu in the the main "Applications-Places-System" 
menu. The
code is such that is very easy to do (in fact I have done this during 
development).

Original comment by bertol...@gmail.com on 25 Mar 2007 at 5:53

GoogleCodeExporter commented 9 years ago
If I understand your code correctly, you put a menu bar in the panel and the 
menu bar
in many themes is rendered with a border. Right?

In that case couldn't you just use a different widget in the panel, e.g. an 
event box
containing a hbox containing an image and a label? Then connect to the
"button-press-event" of the event box and differentiate between right and left
buttons to decide which menu to show.

Original comment by osmo...@gmail.com on 25 Mar 2007 at 7:17

GoogleCodeExporter commented 9 years ago
Yep, that's right. I wasn't aware that menubars are is rendered differently on 
different themes. I went with a menu bar originally because that what the gnome 
main 
menu uses, but by golly they do a lot of tricky stuff to make it behave and 
look as 
it does.

The event box is definitely one possible option.

Original comment by bertol...@gmail.com on 26 Mar 2007 at 8:51

GoogleCodeExporter commented 9 years ago
OK, so I figured out how to get rid of the borders (thanks to Vincent Untz). 
Now I
just have to catch the mouse right click (so i can ignore it) and have the 
applet
menu pop up that way. Then I can get rid of the applet handle bar.

Original comment by bertol...@gmail.com on 15 May 2007 at 9:37

GoogleCodeExporter commented 9 years ago
Update. After not looking at this issue for a long time i came back to it 
yesterday 
and made good progress. The size allocation, background and orientation are all 
working correctly now (like the main menu bar). Now I have to deal with 
catching the 
right click to pop-up the menu.

Original comment by bertol...@gmail.com on 31 Aug 2007 at 2:25

GoogleCodeExporter commented 9 years ago
Fixes for handling panel changes are in the 0.5.3 release.

Original comment by bertol...@gmail.com on 24 Oct 2007 at 11:00

GoogleCodeExporter commented 9 years ago
OK!!! Finally got the applet context menu to popup on right clicks. The menu 
pops up
in no quite the right place though, so I wont close this yet.. 

Original comment by bertol...@gmail.com on 4 Apr 2008 at 2:24

GoogleCodeExporter commented 9 years ago
Made the menu popup in the right place by "appropriating" a function from the
gnome-panel.

Closed!

Original comment by bertol...@gmail.com on 4 Apr 2008 at 4:59