> Isn't that dangerous if exceptions are thrown? Why not let
> the compiler
> do the dirty work? Remember that just the gtkmm instances like a
> Gtk::Dialog are created on the stack, but they create their
> underlaying
> GTK+ objects on the heap. This method seems to be the C++ way for me.
>
> B
John Taber wrote:
> Well, it is heap vs stack - I am not sure which is really better for
> "normal" gui applications. But I have always created my dialogs as
> pointers - it just seems more traditional c++.
Isn't that dangerous if exceptions are thrown? Why not let the compiler
do the dirty work?
Armin Burgmeier wrote:
John Taber wrote:
Well, it is heap vs stack - I am not sure which is really better for
"normal" gui applications. But I have always created my dialogs as
pointers - it just seems more traditional c++.
Isn't that dangerous if exceptions are thrown? Why not let the compi
Well, it is heap vs stack - I am not sure which is really better for
"normal" gui applications. But I have always created my dialogs as
pointers - it just seems more traditional c++.
MyPopupDialog *dlg = new MyPopupDialog(...) {
//set dialog to modal (but it can sometimes get hidden by other
/
Hi,
my approach to this is to derive such windows from Gtk::Dialog and to
add two buttons with Gtk::RESPONSE_OK and Gtk::RESPONSE_CANCEL. To show
the dialog, simply do
MyDialog dialog(*this, foo, bar);
if(dialog.run() == Gtk::RESPONSE_OK)
{
// Take settings into main app
}
Gtk::Dialog::run blo
On Sun, 2005-07-17 at 18:31 +0200, Antonio Coralles wrote:
> However, i would not be surprised if that leads to a SIGSEGV, as the
> window, and m_sig_hide will be deleted before the function exits
libsigc++ copes with that.
--
Murray Cumming
[EMAIL PROTECTED]
www.murrayc.com
www.openismus.c
Thiago Guzella wrote:
> Greetings everyone,
>
>
> I am writing a simple GTKmm (btw, GTKmm 2.4) application, which has a
> main window, a menu, etc, using glade (just to place the widgets).
> Some options in the menu (such as "preferences") are required to open
> a modal window, with apply and reve
Greetings everyone,
I am writing a simple GTKmm (btw, GTKmm 2.4) application, which has a
main window, a menu, etc, using glade (just to place the widgets).
Some options in the menu (such as "preferences") are required to open
a modal window, with apply and revert buttons, allowing the user to
tw