RE: [gtkmm] Dialog boxes
- From: Dale Hirt <dale sbcltd com>
- To: gtkmm-list gnome org
- Subject: RE: [gtkmm] Dialog boxes
- Date: Sat, 30 Nov 2002 13:40:53 -0800
Barnaby,
Frankly, I prefer the signal_clicked() method myself. Makes for easier
reading of sourcecode when I go through. I personally have never used the
on_response method, although if you have to do something with data from your
main class, the signal_clicked() method will allow you to hook up to a
function in your main class and do whatever you need there. My $.02.
Dale
-----Original Message-----
From: Barnaby Gray [mailto:bee pickle me uk]
Sent: Saturday, November 30, 2002 1:24 PM
To: gtkmm-list gnome org
Subject: [gtkmm] Dialog boxes
Hi,
I'm the author of the ICQ client ickle, and in the process of porting
it to gtkmm2, after getting too hacked off with 'limitations' of CTree
in gtkmm1.2. No doubt I'll probably have quite a few questions as I
progress, but I start with a simple one:
Gtk::Dialog has the virtual method on_response for the buttons added
with add_button to callback. I'm not entirely sure if I'm going about
this the right way, but if I add my own button with add_button, and
override on_response (calling the base one as a last resort) what
value can I use for the response_id? Or is this the wrong way to go
about it, and I should just create the button myself, and connect up
to signal_clicked() ?
Thanks,
Barnaby
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]