Re: Deprecating Gtk::Main
- From: Andy Gilman <amgilman myfairpoint net>
- To: gtkmm-list gnome org
- Subject: Re: Deprecating Gtk::Main
- Date: Tue, 06 Mar 2012 12:00:59 -0500
I am not sure how to get the header file. When I #include
<gtkmm/application.h>, I receive a fatal error, so it is clearly not
part of my existing library. Is there a library update? Can I download
the file separately?
Thanks.
Andy Gilman
On 12-03-02 04:12 PM, Murray Cumming wrote:
Now that we have Gtk::Application
http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Application.html
I think we should deprecate Gtk::Main:
http://developer.gnome.org/gtkmm/unstable/classGtk_1_1Main.html
It's an easy change in application code. For instance:
http://git.gnome.org/browse/gtkmm-documentation/commit/examples/book/base/base.cc?id=6cff5753413949cd79d5bf27d91b306fe5f9bfc1
though it can do much more.
Note that there was never a GtkMain or any GTK+ equivalent of
Gtk::Main::run(window). However, GtkApplication is like that and more,
which makes Gtk::Application a good replacement for Gtk::Main.
We just need to add some non-Main API to replace Main::pending() and
Main::iteration().
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]