Re: Problem with signals and libglademm



In may main.cc  -  the following statements :-

            // Load the interface

            Glib::ustring glade_file;
            glade_file = glade_file + working_directory.c_str() +
"glade/kas_master.glade";
            main_gui = Gnome::Glade::Xml::create(glade_file);

            welcome_screen welcome(main_gui, screen_texts);
            welcome =
dynamic_cast<welcome_screen&>(*main_gui->get_widget("welcome_screen"));

            Gtk::Main::run(welcome);


the class "welcome_screen is of the form:-

class welcome_screen : public Gtk::Window {

   ..........
   ..........

}


I get the following error when trying to compile main.cc:-

john kas-dev:~/kas_master/trunk$ make
c++ -c -ggdb -O0 -Wall `pkg-config gtkmm-2.4 --cflags` `pkg-config
libglademm-2.4 --cflags` `pkg-config libxml++-2.6 --cflags` -I
~john/jpeg_sys/jpeg-6b -o /home/john/kas_master/trunk/obj/main.o
/home/john/kas_master/trunk/src/main.cc
/usr/include/gtkmm-2.4/gtkmm/window.h: In member function ‘welcome_screen&
welcome_screen::operator=(const welcome_screen&)’:
/usr/include/gtkmm-2.4/gtkmm/window.h:88: error: ‘Gtk::Window&
Gtk::Window::operator=(const Gtk::Window&)’ is private
/home/john/kas_master/trunk/src/gui_screens_welcome.h:38: error: within this
context
/home/john/kas_master/trunk/src/main.cc: In function ‘int main(int,
char**)’:
/home/john/kas_master/trunk/src/main.cc:324: note: synthesized method
‘welcome_screen& welcome_screen::operator=(const welcome_screen&)’ first
required here
make: *** [main.o] Error 1

-- 
View this message in context: http://www.nabble.com/Problem-with-signals-and-libglademm-tp17822512p17825696.html
Sent from the Gtkmm mailing list archive at Nabble.com.



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