RE: [gtkmm] Dialog Problem



Hello Murray,

You were right, it was a C++ problem.  Specifically, I forgot to specify public 
inheritance from Gtk::Dialog.

Here's what I did:

class OptionDialog : Gtk::Dialog


Here's what I should have done:

class OptionDialog : public Gtk::Dialog


Sorry if I confused anyone with this.

Gene Ruebsamen

Quoting Murray Cumming Comneon com:

> > From: Gene Ruebsamen [mailto:gene erachampion com] 
> > I am having a problem with a class I've derived from 
> > Gtk::Dialog. The problem is that I cannot call the run() 
> > method on any objects derived from 
> > Gtk::Dialog.  I get the following compiler error trying to do so:
> > 
> > ---- output from mingw ---- [gcc 3.2]
> > d:/dev-cpp/include/gtkmm-2.0/gtkmm/dialog.h: In member 
> > function `virtual void 
> >    DropMenu::on_help_about(MainWindow*)':
> > d:/dev-cpp/include/gtkmm-2.0/gtkmm/dialog.h:196: `int 
> > Gtk::Dialog::run()' is 
> >    inaccessible
> > mainwindow.cpp:52: within this context
> > ---------------------------
> 
> It's difficult to say what the problem is without seeing your DropMenu
> class
> or mainwindow.cpp:52. It looks like a pure C++ problem.
> 
> Murray Cumming
> murrayc usa net
> www.murrayc.com 
> 


-- 
Gene Ruebsamen
Sales Associate
ERA Yes! Real Estate & Financial
(714) 534-4425

-------------------------------------------------
This mail sent through IMP: http://horde.org/imp/



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