Callback to parent dialog

2005-06-23 Thread John Taber
I've tried the following but it's not right. Can someone help out - thks. Gtk::GtkWidget* toplevel = gtk_widget_get_toplevel(this); if (GTK_WIDGET_TOPLEVEL (toplevel)) { toplevel-editDialog(data); } ___ gtkmm-list mailing list gtkmm-list@gnome.org

Re: Callback to parent dialog

2005-06-23 Thread Jeff Franks
John Taber wrote: I've tried the following but it's not right. Can someone help out - thks. Gtk::GtkWidget* toplevel = gtk_widget_get_toplevel(this); if (GTK_WIDGET_TOPLEVEL (toplevel)) { toplevel-editDialog(data); } You are mixing C and C++ code Jeff

Re: Callback to parent dialog

2005-06-23 Thread John Taber
Still having some trouble (btw GtkWidget needs to be Gtk::Widget) - it doesn't like this, etc. Wondering if it would be easier to just pass in a void pointer and then typecast it? Nalin Singal wrote: Maybe you need to do something like this: GtkWidget* toplevel =

Re: Callback to parent dialog

2005-06-23 Thread John Taber
Thanks for info but I think I found an easier way by simply writing a small interface class to call back to the owner class. Seems to work okay. Nalin Singal wrote: If you are writing this code in a Gtk::something class or a class derived from one then you need to replace this with

Callback to parent dialog

2005-06-22 Thread John Taber
I've tried the following but it's not right. Can someone help out - thks. Gtk::GtkWidget* toplevel = gtk_widget_get_toplevel(this); if (GTK_WIDGET_TOPLEVEL (toplevel)) { toplevel-editDialog(data); } ___ gtkmm-list mailing list gtkmm-list@gnome.org