Re: gtkicq woes



On Tue, Dec 22, 1998 at 07:43:27PM -0500, Jeremy Wise wrote:
> On Tue, 22 Dec 1998, George wrote:
> 
> > On Tue, Dec 22, 1998 at 10:52:52AM -0500, Jeremy Wise wrote:
> > > This is because I can't seem to attach a button_press_event to a
> > > gtk_frame.  I'll work on this - I completely forgot it wasn't working :)
> > 
> > you'll have to add an event box if you want to attach a button_press_event,
> > the frame doesn't have a window of it's own tocatch x events
> 
> OK.  I did this, and got the button_press_event, but then the applet never
> refreshes itself, it just draws labels over existing labels, as if you
> typed something on a typewriter, backed up and typed over it.  This is
> bad.  Is there an easy way to make it erase the label before redrawing the
> new one??  I'm using gtk_label_set() to change the status and number of
> messages.  Any hints?

that's weird .. you can try

gtk_widget_queue_draw(event_box);

(I think that's what it's named)

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]