Re: [gtk-list] RE: Problem with scroll bar



On Sun, 31 May 1998, Damon Chaplin wrote:

> 
> > Hi,
> > 	For some reason I need to have a vertical scroll bar that ignores
> > key presses. Is it possible at all(other than creating one from
> > scratch!)?!?
> 
> You could try connecting your own "key_press_event" signal handler to
> the scrollbar and stopping the signal from getting to the widget itself
> with gtk_signal_emit_stop_by_name(GTK_OBJECT(scrollbar), "key_press_event").

hm, i think

GTK_WIDGET_UNSET_FLAGS (scrollbar, CAN_FOCUS);

should already do the trick.

> 
> Damon
> 

---
ciaoTJ



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