On Wed, 20 Jun 2001, Tzafrir Cohen wrote:
If you go for the gnome-applet one, then gtk/gnome is probably the right
tool.
that i know. i was asking about supporting non-gnome environments. i
already got a crude gnome-applet which works according to the specs (just
looks ugly - i will look at some other applets in order to find a decent
design for it).
If you're going for omething with a smaller memory footprint, this may not
be a good idea. although I haven't performed extensive testing to confirm
this (e.g: how much of their bloated memory is not attributed to memory
shared with other programs who use the same toolkit)
this is something that can be easily checked using 'gtop' (gnome's top).
you run it, select the process whose memory map u want to see, right-click
on it (context sensitive menu), choose 'Memory maps', thengo to the
graphical representation, and u get a complete memory usage breakup.
Text segments of libraries are shared, but Data segments are normally not
shared. my r2l applet (with a frame, a button and a label) appears to
consume about 800KB of non-shared memory, which is way too much indeed.
i'll try implementing some other type of dockable application and then
compare memory footprints.
Before posting the previous post I searched for a guide afor a couple of
hours, and found none, so I gave a link to a site with a whole bunch of
such dock applets. Many of them are quite small, so hopefully they will
serve as samples.
oh... i forgot to look at it (i did look at it for the specification, but
i just forgot to scroll all the way down).
Hmmm... It seems that it is mostly me interested in this, so I better do
something about this.
yes, bring us your version of r2l, as a Mincha le'elohei ha bidi(text)
:)
Anyway, I heard that enlightenment epplets are easier to write (as
enlightentment supplies most of the required code). Maybe you should check
the enlightenemnt docs.
the same goes for gnome applets - you use the gnome_applet library, and
you copy and paste around 8 lines of code from the gnome applets tutorial, and
then you only need to write the UI itself (i.e. create your buttons and
labels and the rest). all CORBA communications done between the applet and
gnome's panel are hidden from you (and from me, ofcourse).
as for epplets - i'm now downloading epplet-base-xx.xx.tar.gz from
ftp.enlightenment.org/enlightenment/epplets/ - which contains soruces of
varius epplets, as well as the library tzafrir mentioned. ohwever, my
enlightenment is 0.15.X (as cme with redhat 6.2), while epplet-base
requires 0.16 - so i'm not sure i'll manage to actually write an epplet as
well. i'll check window maker next - i have it, but don't currently use
it due to disliking of its defualt icon policy (and icon for every
application, no matter if its minimized or not, and they're spread all
over the desktop!).
--
guy
For world domination - press 1,
or dial 0, and please hold, for the creator. -- nob o. dy