Re: Keeping keyboard focus (ie GtkCLists)



On Wed, 8 Aug 2001 11:27:31 +0300, Mihai Bazon said:

    ...
   case GDK_Up:
     ... /* handle the event */
     /* .. and then stop the signal */
     gtk_signal_emit_stop_by_name(GTK_OBJECT(eb), "key_press_event")
     return TRUE; /* return TRUE if you handled the signal */
    ...
   }
 }
 
 By doing this you are telling Gtk+ that you don't want that key to be
 reinterpreted anymore after your handler is run.  This way, the signal
 stops here.
 
 eb is your event box.
 
 Have fun!
 //mishoo

Ah I see now!

I would have never guessed to stop a signal from being emitted.
I really appreciate your help, thank you! :)


-- 
--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
.__                          ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/






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