RE: Deriving from Gtk::Dialog, setting parent, and Glade
- From: "Huston, Bob" <rhuston mitre org>
- To: "rob page" <page rob gmail com>
- Cc: gtkmm-list gnome org
- Subject: RE: Deriving from Gtk::Dialog, setting parent, and Glade
- Date: Wed, 1 Mar 2006 07:29:10 -0500
The dialog class has a "reparent" method that I use to move dialogs
from one
parent to another.
-----Original Message-----
From: gtkmm-list-bounces gnome org
[mailto:gtkmm-list-bounces gnome org] On Behalf Of rob page
Sent: Tuesday, February 28, 2006 3:29 PM
To: Michael Ekstrand
Cc: gtkmm-list gnome org
Subject: Re: Deriving from Gtk::Dialog, setting parent, and Glade
I think you might want to try:
dialog.set_transient_for(Window& parent)
http://www.gtkmm.org/docs/gtkmm-2.4/docs/reference/html/classGtk_1_1Win
dow.html#a117
Rob.
On 28/02/06, Michael Ekstrand <lists elehack net> wrote:
> Hello all:
>
> My program currently has a class derived from Gtk::Dialog to
implement
> a preferences dialog. This class provies a static create() method to
> initialize the dialog from a Glade file (using get_widget_derived).
>
> Anyway, I need the preferences dialog to see my main window as its
> parent. I can't seem to find a way to initialize a dialog in this
> manner and provide it with a parent. So far the only idea that's come
> to mind is extracting the vbox that contains the dialog's contents
and
> putting that into a dialog I create. This would work just fine, I
> think (idea came as I was drafting this e-mail), but I'm wondering,
is
> it the "correct" way to accomplish my goal?
>
> Thanks,
> Michael
>
> --
> mouse, n: a device for pointing at the xterm in which you want to
type.
> -- Fortune
> _______________________________________________
> gtkmm-list mailing list
> gtkmm-list gnome org
> http://mail.gnome.org/mailman/listinfo/gtkmm-list
>
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]