Re: glade and/or gtkmm, insert a FileChooserDialog inside a Notebook tab

Tobias Schneider-Schönberg <[email protected]> Thu, 29 Jan 2015 12:15:52 +0100
Newsgroups gmane.comp.gnome.glade.user
Message-ID <CADwMZvWWfGjWp8CN5whHjYXxW_8YMMz=CH57H4wkxBWB2PHdXg@mail.gmail.com>
--===============0239341681==
Content-Type: multipart/alternative; boundary=e89a8f83a8fd722c31050dc89c48

--e89a8f83a8fd722c31050dc89c48
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

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=C3=A4ger <[email protected]>:

> 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  -  [email protected]
> http://lists.ximian.com/mailman/listinfo/glade-users
>

--e89a8f83a8fd722c31050dc89c48
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr"><div>Hi!<br><br></div>If you copy this code into *.glade f=
ile then it shows how you could place the notebook and file chooser widget =
in a dialog box:<br><br><a href=3D"https://gist.github.com/88f14694cc112737=
27a5">https://gist.github.com/88f14694cc11273727a5</a><br><br><div>That sho=
uld 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 examp=
les of that at <a href=3D"http://www.gtkforums.com/">http://www.gtkforums.c=
om/</a> or stackoverflow.<br><br></div><div>atb, Tobias<br></div><div><br><=
/div></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote">2015-0=
1-29 11:48 GMT+01:00 Nicolas J=C3=A4ger <span dir=3D"ltr">&lt;<a href=3D"ma=
ilto:[email protected]" target=3D"_blank">[email protected]</a>=
&gt;</span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e=
x;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<span class=3D""><br>
&gt; Maybe you are mixing up &quot;file chooser dialog&quot; with &quot;fil=
e chooser<br>
&gt; widget&quot;.<br>
<br>
</span>=C2=A0actualy I didn&#39;t know so far that there is a file choose w=
idget (I&#39;m<br>
using gtkmm/glade for less than two weeks for now, so I&#39;m still<br>
learning). I was trying to add the file chooser dialog.<br>
<br>
I can insert the file chooser widget, but it leads me to another<br>
problem. using the function run(fileChooserDIALOG) was cool because It<br>
returns the response of the button I click on. There is a way to do the<br>
same things with a widget ?<br>
<br>
The solution I eventually plan, is to use a trhead with a loop waiting<br>
that a button has been clicked. But this solution doesn&#39;t seems to be<b=
r>
in the spirit of gtk. So if you have any suggestion, please share it.<br>
<div class=3D"HOEnZb"><div class=3D"h5"><br>
regards,<br>
/nicoo<br>
_______________________________________________<br>
Glade-users maillist=C2=A0 -=C2=A0 <a href=3D"mailto:[email protected]=
an.com">[email protected]</a><br>
<a href=3D"http://lists.ximian.com/mailman/listinfo/glade-users" target=3D"=
_blank">http://lists.ximian.com/mailman/listinfo/glade-users</a><br>
</div></div></blockquote></div><br></div>

--e89a8f83a8fd722c31050dc89c48--

--===============0239341681==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Glade-users maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/glade-users

--===============0239341681==--