Re: Convert GtkWindow to GdkDrawable
- From: Russell Shaw <rjshaw iprimus com au>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Convert GtkWindow to GdkDrawable
- Date: Sun, 28 Sep 2003 21:33:30 +1000
Laurent Houdusse wrote:
My window object is a GtkWidget so how to convert GtkWidget to GdkWindow?
What is the link between GTK library and GDK library?
See my code:
GtkWidget *window;
gtk_init (&argc, &argv);
window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
gtk_window_set_position(GTK_WINDOW(window),GTK_WIN_POS_CENTER);
gtk_window_set_default_size(GTK_WINDOW(window),500,300);
HWND hwnd = GDK_WINDOW_HWND(GDK_DRAWABLE(window));
gtk_widget_show_all(window);
I have a message: invalid cast from 'GtkWindow' to 'GdkDrawable'
GdkWindow* gtk_widget_get_root_window(GtkWidget *widget);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]