Linux Today: Linux News On Internet Time.

LinuxProgramming.com: Utilizing Callbacks in Gtk+

Nov 02, 2000, 15:21 (0 Talkback[s])
(Other stories by Donna S. Martin)

"Having an attractive layout to your application is only one part of your design process; you need to make your program do something! The something depends on your application. In the case of our calculator from the last article, it looks, well, like a calculator (except that the display is centered, which will be fixed today). But it doesn't act like a calculator. Right now clicking on the buttons causes no difference in appearance except for whatever visual cues GTK+ is giving that the buttons are being pressed, and no calculations occur. Not a very useful calculator, no matter how aesthetically pleasing it might be. Thus, the topic of today's article: adding functionality to your application. In the case of GTK+, functionality comes in the form of functions that are invoked in response to signals emitted by a widget."

Complete Story

Related Stories: