[Glade-users] glade and/or gtkmm, insert a FileChooserDialog inside a Notebook tab



Hi,
thanx, but actualy, what you send to me, looks pretty close to what I
have. My problem is, I want to use only one window for the whole
application.

Then, when I work on tab and I want to save what I'm doing, after
clicking on save I don't want to open a window or a file chooser dialog.

But what I want to do instead, it's having the file chooser opened in
one tabs in my main window.

As I said, my problem by doing that is I don't have a run() function
who can returns the response.

regards,
/nicoo



Hi!

If you copy this code into *.glade file then it shows how you could
place the notebook and file chooser widget in a dialog box:

https://gist.github.com/88f14694cc11273727a5

That should lead to the same functionality with responses. And it is
not difficult to open a window and wait for button to be pressed.
There is probably examples of that at http://www.gtkforums.com/ or
stackoverflow.

atb, Tobias


2015-01-29 11:48 GMT+01:00 Nicolas J?ger <jagernicolas at legtux.org>:

Hi,

Maybe you are mixing up "file chooser dialog" with "file chooser
widget".

 actualy I didn't know so far that there is a file choose widget
(I'm using gtkmm/glade for less than two weeks for now, so I'm still
learning). I was trying to add the file chooser dialog.

I can insert the file chooser widget, but it leads me to another
problem. using the function run(fileChooserDIALOG) was cool because
It returns the response of the button I click on. There is a way to
do the same things with a widget ?

The solution I eventually plan, is to use a trhead with a loop
waiting that a button has been clicked. But this solution doesn't
seems to be in the spirit of gtk. So if you have any suggestion,
please share it.

regards,
/nicoo
_______________________________________________
Glade-users maillist  -  Glade-users at lists.ximian.com
http://lists.ximian.com/mailman/listinfo/glade-users






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