Re: Preventing a modal dialog from initializing a response
- From: "John Steenson" <chocoboko gmail com>
- To: gtkmm-list gnome org
- Subject: Re: Preventing a modal dialog from initializing a response
- Date: Fri, 20 Jun 2008 11:51:43 -0600
I found a workaround. I used Glade instead of Gtk::Builder. After doing some research on Gtk::Builder, I found it wasn't complete and lacked features of libglade. Using libglade, the dialogs work okay.
Would this be considered a bug? If so, should I file a bug report under Gtk+ or Gtkmm?
Thanks.
On Thu, Jun 19, 2008 at 12:40 AM, John Steenson <
chocoboko gmail com> wrote:
Hi,
I have been learning GTKmm. I am running Gentoo Linux on AMD64, using their provided GTKmm 2.12.1 package.
I am using Gtk::Builder to generate a modal dialog from a UI file. A particular problem I have been having is the dialog sends a response signal on the press of every button in the dialog, not just the ones in the action area. Is this normal behavior?
Here is a snippet:
glade = Gtk::Builder::create_from_file("ui/bifrost-tileset.ui");
glade->get_widget_derived("tilesetDlg", ptrInstance);
ptrInstance->set_modal(true);
result=ptrInstance->run();
The dialog is created, and is shown. But the dialog has other buttons besides OK and Cancel. It has a File Chooser button. When I click on that File Chooser button, a response signal is emitted (alongside the signal I have connected to it to handle the chosen file) and the control flow of the regular program resumes. Is this normal behavior? Is there something I need to do in order stop certain widgets from emitting a response?
Thank you.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]