Re: panel and applet writing issues



On Mon, Sep 14, 1998 at 02:56:52PM -0400, John Ellis wrote:
> I have it sort of working, the only problem is with pixmaps, they
> do not look good because the offset and scale are often incorrect.
> Is there a way to get the offset and proper size that the pixmap
> should scale to? Or even better, a way to get a pointer to a pixmap
> created for you by the panel? Actually, it would be nice if the
> applet->window attributes were set/changed automatically by the
> panel. Then I wouldn't need this callback at all :)

well that was the plan ... after I did the change_back signal, I realized
that making the pixmaps look good will just not be good ... right now
since the whole panel is drawn on a pixmap, one could just provide x,y
and an id of the pixmap ....

I might do that .. if you want to do it first go ahead ... I might
not get to it so quick ... should be fairly trivial ...

> I even tried to call gdk_window_shape_combine_mask() on the 
> applet->window, but that would not work. Is this part still work in
> progress? I ask this because the "change_back" signal is not emitted
> at startup, so I must cause this event to happen by configuring the
> panel in some way.

hmm ... it should be emitted on applet startup ... if not, something is
wrong ... oh well ... this will all change if we implement the above
scheme

the advantage of that scheme would be, you could take the image and draw
on it with alpha channel ...

> I also notice the APPLET_WRITING Makefile example has not been updated
> to use gnome-config and ORBit, that is included too.
> (This example is for clockmail, not the current one which was for fish)

yeah .. I need to update that too ...

George

-- 
------------------------------------------------------------------------------
George Lebl <jirka@5z.com> http://www.5z.com/jirka/
------------------------------------------------------------------------------
  The following implements RSA in perl and is illegal to export from the US:

          #!/bin/perl -sp0777i<X+d*lMLa^*lN%0]dsXx++lMlN/dsM0<j]dsj
          $/=unpack('H*',$_);$_=`echo 16dio\U$k"SK$/SM$n\EsN0p[lN*1
          lK[d2%Sa2/d0$^Ixp"|dc`;s/\W//g;$_=pack('H*',/((..)*)$/)



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]