diff options
author | Benjamin Otte <otte@redhat.com> | 2011-01-28 15:16:27 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2011-01-28 17:06:07 +0100 |
commit | 1b18916a7472766d46f799d63ff52ff3c4e94165 (patch) | |
tree | b9c6a32bee15b29da9008cf802204bbf459b3202 /gtk/gtkwin32embedwidget.c | |
parent | 63aa56bcc42cc8876d8f5442aef12ba5d43c0224 (diff) | |
download | gtk+-1b18916a7472766d46f799d63ff52ff3c4e94165.tar.gz |
win32: Make GtkWin32EmbedWidget use HWND instead of GdkNativeWindow
Diffstat (limited to 'gtk/gtkwin32embedwidget.c')
-rw-r--r-- | gtk/gtkwin32embedwidget.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/gtk/gtkwin32embedwidget.c b/gtk/gtkwin32embedwidget.c index 623e8d9b38..154b156ee1 100644 --- a/gtk/gtkwin32embedwidget.c +++ b/gtk/gtkwin32embedwidget.c @@ -89,7 +89,7 @@ gtk_win32_embed_widget_init (GtkWin32EmbedWidget *embed_widget) } GtkWidget* -_gtk_win32_embed_widget_new (GdkNativeWindow parent_id) +_gtk_win32_embed_widget_new (HWND parent) { GtkWin32EmbedWidget *embed_widget; @@ -97,12 +97,12 @@ _gtk_win32_embed_widget_new (GdkNativeWindow parent_id) embed_widget->parent_window = gdk_win32_window_lookup_for_display (gdk_display_get_default (), - parent_id); + parent); if (!embed_widget->parent_window) embed_widget->parent_window = gdk_win32_window_foreign_new_for_display (gdk_display_get_default (), - parent_id); + parent); return GTK_WIDGET (embed_widget); } @@ -150,8 +150,7 @@ gtk_win32_embed_widget_window_process (HWND hwnd, UINT msg, WPARAM wparam, LPARA GtkWin32EmbedWidget *embed_widget; gpointer user_data; - window = gdk_win32_window_lookup_for_display (gdk_display_get_default (), - (GdkNativeWindow)hwnd); + window = gdk_win32_window_lookup_for_display (gdk_display_get_default (), hwnd); if (window == NULL) { g_warning ("No such window!"); return 0; |