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 144016 - applet loses Browse button and history button on a side panel
applet loses Browse button and history button on a side panel
Status: RESOLVED FIXED
Product: gnome-applets
Classification: Other
Component: mini-commander
unspecified
Other Linux
: High major
: ---
Assigned To: gnome-applets Maintainers
gnome-applets Maintainers
Depends on:
Blocks: 81249
 
 
Reported: 2004-06-09 10:11 UTC by Sagar Rastogi
Modified: 2004-12-22 21:47 UTC
See Also:
GNOME target: ---
GNOME version: 2.5/2.6


Attachments
Proposed patch (6.58 KB, patch)
2004-06-10 10:56 UTC, Sagar Rastogi
none Details | Review
Proposed patch (7.24 KB, patch)
2004-06-11 08:45 UTC, Sagar Rastogi
none Details | Review
patch (7.23 KB, patch)
2004-07-07 16:32 UTC, Vincent Noel
none Details | Review

Description Sagar Rastogi 2004-06-09 10:11:41 UTC
1) Create a vertical panel (If it does not already exist)
2) Right Click on menu 
Add To Panel -> Utility -> Command Line Applet

Actual Behavior:
The browser and history buttons are not visible

Expected Behavior:
The browser and history buttons are visible.
Comment 1 Dennis Smit 2004-06-09 10:59:04 UTC
The size requisition for the minicommander applet is completely broken,
confirming.
Comment 2 Sagar Rastogi 2004-06-10 10:56:35 UTC
Created attachment 28544 [details] [review]
Proposed patch

Solved the problem by changing layout of entry box and buttons depending on the
orientation of the applet.
Comment 3 Dennis Smit 2004-06-10 11:28:15 UTC
Heya, some comments:


1. Why are you including: +#include <stdlib.h>

2. The ChangeLog is missing.

3.
-        hbox = gtk_hbox_new (FALSE, 2);
+	if(mc->orient == PANEL_APPLET_ORIENT_UP || mc->orient == PANEL_APPLET_ORIENT_DOWN)
+	        hbox = gtk_hbox_new (FALSE, 2);

You change indenting here, you shouldn't do that.

4. I'm not sure but it might be an idea to look into using using size
requisition. You can look at the gweather and wireless applet how
this is done.


It's a good start, keep up the good work!
Comment 4 Sagar Rastogi 2004-06-11 08:45:53 UTC
Created attachment 28586 [details] [review]
Proposed patch

1) I had included stdlib.h to get rid of a compiler warning due to exit() in
function mini_commander_applet_fill (). But since this is not related to this
bug, I have removed it.
 
2) Added ChangeLog

3) Made the indenting consistent.

4) size requisition will involve doing the whole thing again :( What is wrong
with this solution? just wondering.
Comment 5 Dennis Smit 2004-06-11 11:43:38 UTC
CVS HEAD actually included stdlib already

your patch doesn't apply against CVS HEAD. Please update
your CVS directory and update your patch against it.

About requisition: Well the point is that applets should been seen
as widgets nowadays, and widgets implement a size requisition.

I know it's broken for most applets but we're slowly trying to fix it.

Another reason is that the size that is returned by the panel is
normalized and not exact. The reason why this is not fixed is because
we should use requisition anyway.

Also for future features, like applets in nautilus icons requisition
is important.



However, seen we need the widget replacement for this applet anyway i'll
commit the patch when you've updated it to current CVS.

I would be very happy if you could also have a look at size requisition
but that is totally up to you.
Comment 6 Vincent Noel 2004-07-07 14:45:35 UTC
Is this still being worked on ?
Otherwise I'll try to come up with a patch.
Comment 7 Dennis Smit 2004-07-07 15:40:16 UTC
Please go ahead
Comment 8 Vincent Noel 2004-07-07 16:32:52 UTC
Created attachment 29325 [details] [review]
patch

This patch makes the mini-commander applet follow the panel size consistently.
Based on the panel size and orientation, it tries to select a sensible layout
for the applet entry and buttons.
Comment 9 Kevin Vandersloot 2004-07-10 11:57:23 UTC
Applied Vincents patch. Bug now fixed. Thanks guys!