# Problem with Gtk::FileChooserButton

**URL:** <https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297>\
**Category:** Ruby-Gnome 2\
**Created:** [March 19, 2007, 11:37am UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297 "2007-03-19T11:37:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![pinkeyde21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Post date:** [March 19, 2007, 11:37am UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297/1 "2007-03-19T11:37:33Z")

</div>

I have got a major Problem with the Filechooserbutton widget, I have  
added it in a MessageDialog and it is running with no problems, but  
the new filechoose widget witch is generated after i clicked the  
Filechoserbutton is beneath the MessageDialog (in witch the button  
is), is there any possibility to set that this new filechooser widget  
will be shown on top of the MessageDialog?

greetings jens

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![pinkeyde21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Post date:** [March 19, 2007, 11:43am UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297/2 "2007-03-19T11:43:34Z")

</div>

Hi.

Have you tried the following methods:

dialog.has\_focus=true  
dialog.set\_transient\_for(@window)

where @window would be your message dialog?

Alexis

On 3/19/07, pinkeyde21 [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> 

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![pinkeyde21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Post date:** [March 19, 2007, 4:23pm UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297/3 "2007-03-19T16:23:07Z")

</div>

I have got a major Problem with the Filechooserbutton widget, I have  
added it in a MessageDialog and it is running with no problems, but  
the new filechoose widget witch is generated after i clicked the  
Filechoserbutton is beneath the MessageDialog (in witch the button  
is), is there any possibility to set that this new filechooser widget  
will be shown on top of the MessageDialog?

greetings jens

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)

---

<div class="post-metadata">

**Author:** ![pinkeyde21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Post date:** [March 19, 2007, 7:38pm UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297/4 "2007-03-19T19:38:26Z")

</div>

or just tell your second dialog window who’s it’s parent in the 2nd  
parameter of it’s initialize, like:  
filechooser\_dialog=Gtk::Dialog.new(“any\_title”,my\_first\_dialog\_window)

---

<div class="post-metadata">

**Author:** ![pinkeyde21](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/p/e5b9ba/32.png) [@pinkeyde21](https://www.ruby-forum.com/u/pinkeyde21)\
**Post date:** [September 25, 2007, 11:07pm UTC](https://www.ruby-forum.com/t/problem-with-gtk-filechooserbutton/89297/5 "2007-09-25T23:07:38Z")

</div>

I have got a major Problem with the Filechooserbutton widget, I have  
added it in a MessageDialog and it is running with no problems, but the  
new filechoose widget witch is generated after i clicked the  
Filechoserbutton is beneath the MessageDialog (in witch the button is),  
is there any possibility to set that this new filechooser widget will be  
shown on top of the MessageDialog?

greetings jens

* * *

Take Surveys. Earn Cash. Influence the Future of IT  
Join [SourceForge.net](http://SourceForge.net)’s Techsay panel and you’ll get the chance to share  
your  
opinions on IT & business topics through brief surveys-and earn cash  
[http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV](http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV)
