[gtkmm] additions to the porting guide



Hi all,

I'm in the process of porting a gnome-- app to gnomemm.

While these changes are still not tested, the compilation succeeds.

The lines are before and after.

Hope this helps.

Mostly
#include <libgnomeuimm.h>

Gnome::App
Gnome::UI::App

Gnome::AppBar
Gnome::UI::AppBar

Gnome::Dialogs::error(parent, message);
Gtk::MessageDialog(parent, message, Gtk::MESSAGE_ERROR);

Gdk_Window about_win = about_->get_window();
Glib::RefPtr<Gdk::Window> about_win = about_->get_window();
(and use "about_win->" instead of "about_win.")

Gnome::Main application("GnomeCDMaster", VERSION, argc, argv);
Gnome::Main application("GnomeCDMaster", VERSION, Gnome::UI::module_info_get(), argc, argv);

application.timeout.connect(SigC::slot(&guiUpdatePeriodic), 2000);
Glib::signal_timeout().connect(SigC::slot(&guiUpdatePeriodic), 2000);

If someone sees any error in this replacements, I'll be happy to know.

--
Manuel Clos
llanero eresmas net

TCPA y Palladium: http://bulmalug.net/body.phtml?nIdNoticia=1398
TCPA and Palladium: http://www.cl.cam.ac.uk/~rja14/tcpa-faq.html




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]