Re: kit vs. app
- From: Jonathon Jongsma <jjongsma gnome org>
- To: Hubert Figuiere <hub figuiere net>
- Cc: gtkmm-list gnome org
- Subject: Re: kit vs. app
- Date: Wed, 14 Jan 2009 14:00:33 -0600
On 01/14/2009 01:58 PM, Hubert Figuiere wrote:
On Wed, 2009-01-14 at 13:37 -0600, inbox_pub earthlink net wrote:
In most of the examples, main contains:
Gtk::Main kit(argc, argv);
. . .
kit.run();
However, in Chapter 21. Timeouts, I/O and Idle Functions:
Gtk::Main app(argc, argv[]);
. . .
Gtk::Main::run(example);
Just the name of the variable.
Hub
Also, the kit.run() is a bit misleading because run() is actually a static
function, so the second example is probably more semantically 'correct'. But as
hub said, the name of the variable (kit vs. app) doesn't matter.
jonner
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]