Re: GTK::ColourselectionDialog
- From: Bob Caryl <bob fis-cal com>
- To: weijie <weijie90 gmail com>
- Cc: gtkmm-list gnome org
- Subject: Re: GTK::ColourselectionDialog
- Date: Mon, 19 Jun 2006 06:52:02 -0500
Well, myself, I'd just run the dialog and look for Gtk::RESPONSE_CANCEL
as the return value from Gtk::Dialog::run() to test for the user having
pressed the cancel button; however, after a quick perusal of the docs,
this is my best guess on how to connect a callback slot that responds to
the cancel button:
First, get a pointer to your Gtk::ColorSelectionDialog. Then call
Gtk::GetColorSelection::get_cancel_button() to get a pointer to the
cancel button widget. Then call Gtk::Dialog::get_response_for_widget
passing it a reference to the cancel button widget you obtained
earlier. The return value of this call will be the response id for the
cancel button. Then connect your callback slot to
Gtk::Dialog::signal_response() using the previously obtained response ID.
I hope this helps.
Bob Caryl
weijie wrote:
Hi,
will anyone please help me with the problem i sent to the mailing list
earlier? Thanks!
wj
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
begin:vcard
fn:Robert Caryl
n:Caryl;Robert
org:Fiscal Systems, Inc.
adr:;;102 Commerce Circle;Madison;AL;35758;USA
email;internet:bob fis-cal com
title:Senior Software Design Engineer
tel;work:356-772-8920 X108
x-mozilla-html:TRUE
url:http://www.fis-cal.com
version:2.1
end:vcard
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]