Re: [gtkmm] General C++ Design Question: relation of GUI toapplication
- From: Paul Davis <pbd op net>
- To: "Stephen G. Tashiro" <tashiro trac wsmr army mil>
- Cc: gtkmm-list gnome org
- Subject: Re: [gtkmm] General C++ Design Question: relation of GUI toapplication
- Date: Tue, 02 Jul 2002 12:18:15 -0400
>> >>What's my score? How many questions did I answer, versus NEW questions? --
>>
> One thing I don't understand is why static gint _callback( void *arg) {
>....
>is preferable to static gint _callback( Foo* arg) { ...
>Experiment shows the GCC compiler will accept things like static
>gint _callback( Bar* arg) { ... where Bar is a class.
>However, I don't know whether the code does what is expected.
the requirement for static gint _callback(void *arg) isn't part of
gtkmm. it comes from using GTK+ directly or some other C language
system that requires such things. gtkmm wraps all such things in
typesafe ways as i showed with Gtk::TimeoutSig.
--p
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]