Compile error for About screen?
I just did a cvs up and rebuild, and got this error:
/home/bryce/src/Inkscape/inkscape/src/ui/dialog/aboutbox.cpp: In constructor ` Inkscape::UI::Dialog::AboutBox::AboutBox()': /home/bryce/src/Inkscape/inkscape/src/ui/dialog/aboutbox.cpp:88: error: no matching function for call to `Inkscape::UI::Dialog::AboutBox::size_request( )' /usr/include/gtkmm-2.4/gtkmm/widget.h:510: error: candidates are: void Gtk::Widget::size_request(const Gtk::Requisition&) make[2]: *** [ui/dialog/aboutbox.o] Error 1 make[2]: Leaving directory `/home/bryce/Build/Inkscape/inkscape/src' make[1]: *** [all-recursive] Error 1 make[1]: Leaving directory `/home/bryce/Build/Inkscape/inkscape' make: *** [all] Error 2
In case this was just due to out of date autoconf stuff, I'm doing a make distclean and a full rebuild.
Bryce
On 12/2/05, Bryce Harrington <bryce@...961...> wrote:
/home/bryce/src/Inkscape/inkscape/src/ui/dialog/aboutbox.cpp: In constructor ` Inkscape::UI::Dialog::AboutBox::AboutBox()': /home/bryce/src/Inkscape/inkscape/src/ui/dialog/aboutbox.cpp:88: error: no matching function for call to `Inkscape::UI::Dialog::AboutBox::size_request( )' /usr/include/gtkmm-2.4/gtkmm/widget.h:510: error: candidates are: void Gtk::Widget::size_request(const Gtk::Requisition&)
In case this was just due to out of date autoconf stuff, I'm doing a make distclean and a full rebuild.
I doubt that that helped: this is a True Bill. My guess is that the function overload for size_request( ) was added in a later release of GTKMM.
I have not been able to find this on the web, mind.
I have changed this code to
#if GTKMM_MINOR_VERSION > 4 Gtk::Requisition requisition = size_request(); #else Gtk::Requisition requisition; size_request( requisition ); #endif
which compiles, but I don't know whether it runs correctly, and I might be on the worng lines anyway.
BTW, I can't get automake to digest the Makefile_Insert for Inkboard, do you want me to post details?
Ben
On 12/2/05, Ben Fowler <ben.the.mole@...400...> wrote:
On 12/2/05, Bryce Harrington <bryce@...961...> wrote:
/home/bryce/src/Inkscape/inkscape/src/ui/dialog/aboutbox.cpp:88: error: no matching function for call to `Inkscape::UI::Dialog::AboutBox::size_request( )'
...this is a True Bill. My guess is that the function overload for size_request( ) was added in a later release of GTKMM.
Without going back on that (I do believe that the overloaded function requested is only in later versions of GTKMM), I still haven't found confirmation in any form of changleog.
Curiously, my Gentoo system has gtkmm of 2.4.11 (gtk+ 2.6.10) and this exhibits the problem, so I am puzzled, but one might want to work on the basis that the alternative size_request( ) function - if it works as required - might be best for the moment.
Ben
Later versions of gtkmm (like the one I've got), provide a Gtk::Requisition Gtk::Widget::size_request() and a void Gtk::Widget::size_request(Gtk::Requisition const &).
I'm not sure how the latter could be useful for querying a requisition, though...
In any case, rather than #ifdefing or something for different gtkmm versions, I'd rather stick with a solution which works in all versions.
For example, using Gtk::Widget::gobj() to get the GtkWidget * and then using gtk_widget_size_request(GtkRequisition *)...
-mental
participants (3)
-
unknown@example.com
-
Ben Fowler
-
Bryce Harrington