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 59446 - stock ticker in vertical panel spreads panel to ridiculous widths
stock ticker in vertical panel spreads panel to ridiculous widths
Status: RESOLVED OBSOLETE
Product: gnome-applets
Classification: Other
Component: invest-applet
1.4.x
Other Linux
: Normal minor
: 1.4.x
Assigned To: John Ericson
John Ericson
: 57185 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2001-08-23 19:40 UTC by Telsa Gwynne
Modified: 2003-03-11 18:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Add options to preferences to set size or set auto-scale to panel (7.21 KB, patch)
2002-03-19 02:33 UTC, John Ericson
none Details | Review

Description Telsa Gwynne 2001-08-23 19:40:25 UTC
stock-ticker applet wrecks vertical panel appearance by increasing
its size dramatically.

create vertical panel.
panel->applets->add->network->stock ticker

panel expands widely. No options on preferences about honouring
panel size.

expected results: hmm. _ideally_ it should either scroll down,
changing itself completely. Or it should scroll horizontally
but not expand, even if this means you are going to see one or
two letters at a time. Perhaps it should pick a very tiny font
on a vertical panel if it did the latter?
Comment 1 Kjartan Maraas 2001-09-14 13:14:01 UTC
I'll try and see if we can nail this one too.
Comment 2 John Ericson 2002-01-08 20:20:05 UTC
*** Bug 57185 has been marked as a duplicate of this bug. ***
Comment 3 John Ericson 2002-01-08 20:35:05 UTC
I'm a bit interested in taking this little problem on actually if you
dont mind Kjartan? Im quite new to gtk but I have done some
programming using it.
Comment 4 Kjartan Maraas 2002-01-09 00:01:42 UTC
Please do..
Comment 5 John Ericson 2002-01-09 09:05:17 UTC
Im taking it on so I change the status to assigned.
Comment 6 Luis Villa 2002-02-13 03:26:42 UTC
John, FWIW, typically one assigns to oneself and not a list. Not a
huge deal, just typical protocol. I assume this is still a problem in
CVS, so I'm marking GNOME2.
Comment 7 Kevin Vandersloot 2002-03-06 04:37:15 UTC
I'm a little confused. Is the stock ticker actually getting wider when
on vertical panels. In the code the size of the applet is hard coded
so it shouldn't get any bigger.

As to making it fit to panel sizes, it won't happen for GNOME2. Making
it scroll vertically would be difficult, I assume, using the GNOME1
framework. Maybe Pango makes it easier to do vertical text, but there
will be a bit of work necessary to get it to work with Pango (it will
continue to use GdkFont for GNOME2).

So basically you shouldn't add the stock ticker to a vertical panel ;)
Comment 8 John Ericson 2002-03-19 02:32:48 UTC
As I understand it the problem is that you cant resize the applet. On
a horizontal panel. This doesnt matter that much but on a vertical one
it makes a bigger difference.

I've been hacking a bit on the code (v1.4.0.5) to fix this. I have
added some functionality to the preference menu that lets you set gtik
to scale after the panel or let the user set prefered width. It works
quite well but the preference dialog could use some more code. I didnt
spend to much attention on it since I figurered that it would probably
change a bit in gnome2.

I send a patch with the code:
Comment 9 John Ericson 2002-03-19 02:33:13 UTC
Created attachment 7235 [details] [review]
Add options to preferences to set size or set auto-scale to panel
Comment 10 Luis Villa 2002-03-19 02:36:31 UTC
Adding patcch and cc'ing kevin. FWIW, John, it would be really cool if
you could patch the gnome2 panel for this too ;)
Comment 11 Kjartan Maraas 2002-04-27 00:15:45 UTC
Going to test this for 1.4.1
Comment 12 Kevin Vandersloot 2002-08-23 03:01:46 UTC
You can now change the width of the stock-ticker in HEAD for GNOME2
(which will become the 2.2 release). Removing the GNOME2 keyword
Comment 13 Kjartan Maraas 2002-10-21 20:07:23 UTC
John, the patch doesn't really work that great for 1.4.x. I ended up
with a > < this small applet when I started it the first time. And it
didn't really appear any smaller when I moved the bottom panel to the
right...
Comment 14 John Ericson 2002-10-22 17:45:56 UTC
My patch is a bit basic in that it doesnt do any real magic. It gives 
the user two new options: to set the width to the panels width or to 
let the user specify the width by pixels. I haven't checked how it 
performs using a configuration from an unpatched applet. To use the 
fit to panel width is probably a good thing as default.

So the patch basicly let the user change the width of the applet, but 
this isnt anything thats going to happen automaticly.
Comment 15 Kevin Vandersloot 2003-03-11 18:51:55 UTC
Fixed in gnome2. Marking as a GNOME1 bug.