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
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
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 =
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
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