Converting stuff from Gtk to Gtkmm
- From: razors <abra185 yahoo com>
- To: gtkmm-list gnome org
- Subject: Converting stuff from Gtk to Gtkmm
- Date: Tue, 15 Aug 2006 15:38:40 -0700 (PDT)
Hi, im trying to port a widget from Gtk+ to Gtkmm ( or am i wrong and there is a way to use a GtkWidget on Gtkmm? Like attach a Gtk Widget to a Gtkmm Panel?) and my problem is, i have the following code:
GdkWindow* parent = gtk_widget_get_parent_window(widget);
GdkDisplay* display = gdk_drawable_get_display(GDK_DRAWABLE(parent));
GdkScreen* screen = gdk_drawable_get_screen(GDK_DRAWABLE(parent));
Display* xdisplay = GDK_DISPLAY_XDISPLAY(display);
Screen* xscreen = GDK_SCREEN_XSCREEN(screen);
int screen_number = XScreenNumberOfScreen(xscreen);
XID xid_parent = GDK_WINDOW_XWINDOW(parent);
I cant port some of those functions(or find how) to gtkmm.... GDK_WINDOW_XWINDOW, GDK_DISPLAY_XDISPLAY( cant find xdisplay or something on Gtk::Display) and XID isnt defined. What should i do? Thanks in advance
Regards,
Romulo.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the
best spam protection around
http://mail.yahoo.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]