Call Function Within Class Using Gtk::timeout_add();

Calling a function on a repetitive basis is simple enough using something like:
Gtk::timeout_add(200, 'subtract'); //call subtract() 5 times per second

However, how would I call subtract() if it is within a class? Example:


screenshot for GTKSMSSend SMS from your PC using PHP-GTK : GTKSMS allows users to send messages to cellphones (SMS) without needing a phone.

PHP-GTK Builder

screenshot for PHP-GTK BuilderPHP GTK Builder is a RAD tool which can help build lightweight php-gtk applications.

Tulip IDE

screenshot for Tulip code editorTulip is an editor tailored to PHP code writing in a cooperative environment. It is written in PHP-GTK itself, and includes the usual features: code completion, CVS controls, project explorer, file locking, syntax hints and highlighting, etc.


CyCle splash screenCyCle IDE is a collaborative php development tool.


This topic is created to gather all recommendations gathered over time from the most frequently asked questions on the mailing lists and on IRC. So go ahead, add your own Q&A, and I'll update the main post as required !

Syndicate content