Preventing a modal dialog from initializing a response
- From: "John Steenson" <chocoboko gmail com>
- To: gtkmm-list gnome org
- Subject: Preventing a modal dialog from initializing a response
- Date: Thu, 19 Jun 2008 00:40:17 -0600
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]