On Sat, 30 Jun 2001, Scott Russell wrote:

>
> Hi, all.
>
>   I'm doing drag-drop operations using the tabs of a GtkNotebook.
>  Unfortunately, the label doesn't seem to be a 'real' widget, and does
> not support being a drag source.  What can I use in it's place that will

A label is a real widget -- just a NOWINDOW widget, which means that it
can't receive events.

> still automatically resize and act like a label?  Buttons resize (and
> kind of look nice), but do not pass the click  (or whatever) event down
> to the Notebook in order to switch pages - not surprising, since they
> use that click themselves..  I assume it's a pass-through in labels,
> simply because they have this 'not a widget' status.

Try packing the label inside a GtkEventBox (a widget that has a window,
and takes a single child) and using that as the notebook tab.  You should
be able to receive events with the event box.

James.

-- 
Email: [EMAIL PROTECTED]
WWW:   http://www.daa.com.au/~james/


_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk

Reply via email to