Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在具有多个GtkEntry小部件和GtkButton小部件的窗口中,当它们的对应GtkEntry被激活时应该触发,我应该GtkButton使用信号中的焦点切换哪个是默认小部件,还是应该直接处理小部件的激活信号GtkEntry?
GtkEntry
GtkButton
activated在我看来,如果您直接处理每个条目的信号,它将产生更清晰的代码。
activated