Re: GtkText and GtkEntry don't emit move cursor signal



50191914 ee cityu edu hk writes:

> Hello,
> 
> I find that "move cursor" signal is not emitted for
> gtk_entry_move_cursor
> and gtk_text_move_cursor  in both gtk 1.2 and 1.3.
> 
> It is useful for some programmer to add a signal hander to "move cursor"
> especially for application like Text Editor
> 
> (btw,in general,should GtkSomeWidget emited signal "foo bar" in function
> gtk_some_widget_foo_bar if it created signal "foo bar"? I think that
> it is useless if a signal is created by it is never emitted)

::move-cursor is an action signal. It means "someone pressed a keyboard
key bound to move-cursor, move the cursor".

For 1.2, there is no notificatin
for 1.3, connect to notify::cursor-position

Anyone want to write up action signals for the FAQ?


                                        Owen



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