Loading glade in a weird way
- From: Borja Mon Serrano <borjamonserrano gmail com>
- To: gtk-app <gtk-app-devel-list gnome org>
- Subject: Loading glade in a weird way
- Date: Mon, 16 Sep 2013 14:11:10 +0200
Hi all!
I'm developing an application using gtkmm with glade. The problem that I
have is that when the main window is loaded, another window appears and it
is the practical main window, that is to say, if you close that window you
close the program. I attach an image of what is happening at [1].
I followed the steps at [2] to create my application and, then, I created a
class that implements a Window loads all the widgets as in [3]. I don't
want to have a main program that loads all the widgets because I don't want
to have shared memory with the widgets (buttons, dialogs, etc.), so I
thought that was the best way to implement a window loaded with glade.
The code of my application is at [4]. The "main.cpp" file is like the
HelloWorld example and "visualhfsm.cpp" is the class that implements a
Gtk::Window and loads the glade file. I don't know what I'm doing wrong,
could you please give me a pointer in order to solve my problem? :)
Thank you very much,
Borja.
[1] - https://dl.dropboxusercontent.com/u/11143437/visualhfsm_weird.png
[2] - https://developer.gnome.org/gtkmm-tutorial/3.4/sec-helloworld.html.en
[3] -
https://developer.gnome.org/gtkmm-tutorial/3.2/sec-builder-accessing-widgets.html.en
[4] - https://svn.jderobot.org/users/bmenendez/tfm/trunk/src/visualHFSM-4/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]