Re: Callback to parent dialog
- From: John Taber <jtaber johntaber net>
- To: Nalin Singal <nalinsingal yahoo co in>
- Cc: gtkmm-list gnome org
- Subject: Re: Callback to parent dialog
- Date: Thu, 23 Jun 2005 17:45:39 -0600
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 = gtk_widget_get_toplevel(this);
if(GTK_WIDGET_TOPLEVEL(toplevel)) {
Gtk::GtkWidget* wrappedTL = wrap(topLevel, t/f);
wrappedTL->editDialogWHATEVER);
}
There is a slight difference between gtk and gtkmm.
gtk objects can't be directly converted to gtkmm or
vice-versa. You need to call the wrap function to go
one way and gobj() function if you want to go the
other way.
-Nalin
--- John Taber <jtaber johntaber net> 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);
}
_______________________________________________
gtkmm-list mailing list
gtkmm-list gnome org
http://mail.gnome.org/mailman/listinfo/gtkmm-list
__________________________________________________________
How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]