Re: Why does this MessageDialog not work
- From: Bartosz Kostrzewa <bartek fastmail net>
- To: gtkmm-list gnome org
- Subject: Re: Why does this MessageDialog not work
- Date: Fri, 14 Aug 2009 11:14:07 +0200
Kai Boernert wrote:
> Well, while this is surely a mistake I made, it doesn#t seem to be the
> reason, cause even when fixed the Dialog does not show. :(
Sorry, I pushed the send button too early after being distracted by
something else. I initially wanted to touch on both the switch statement
and the fact that run does not appear to execute :)
Do you have a Gtk::Main in your test application? I don't think the
runtime (plain gtk) part of widget instantiation works unless Gtk::Main
is running.
Since you lose execution control due to Main you will need to call
Gtk::Dialog::run() through an event handler in your main window, or if
you don't have a main window, in an idle handler.
AFAIK the run() method blocks the gtk main loop until a response is
obtained.
-Bartek
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]