diff options
author | Tomasz Sterna <tomek@xiaoka.com> | 2012-01-16 01:48:40 +0100 |
---|---|---|
committer | Tomasz Sterna <tomek@xiaoka.com> | 2012-05-30 23:10:21 +0300 |
commit | 2603dde466c82ed60c41f9540a68f803d3510bf5 (patch) | |
tree | 3b018bcddbf6495b391a6fa324ff38c5eb8a8ea5 /hildon/hildon-window-stack.c | |
parent | 66b5569ee4af3c6044c8e94b749fe8f22659a24a (diff) |
Widget porting to GTK+ 3
with some added fixes for strict compiler checks
Diffstat (limited to 'hildon/hildon-window-stack.c')
-rw-r--r-- | hildon/hildon-window-stack.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/hildon/hildon-window-stack.c b/hildon/hildon-window-stack.c index cbc2907..96a34d7 100644 --- a/hildon/hildon-window-stack.c +++ b/hildon/hildon-window-stack.c @@ -188,7 +188,7 @@ hildon_window_stack_window_realized (GtkWidget *win, HildonWindowStack *stack) { GdkWindow *leader = hildon_window_stack_get_leader_window (stack, win); - gdk_window_set_group (win->window, leader); + gdk_window_set_group (gtk_widget_get_window (win), leader); } /* Remove a window from its stack, no matter its position */ @@ -203,8 +203,8 @@ hildon_window_stack_remove (HildonStackableWindow *win) hildon_stackable_window_set_stack (win, NULL, -1); gtk_window_set_transient_for (GTK_WINDOW (win), NULL); - if (GTK_WIDGET (win)->window) { - gdk_window_set_group (GTK_WIDGET (win)->window, NULL); + if (gtk_widget_get_window (GTK_WIDGET (win))) { + gdk_window_set_group (gtk_widget_get_window (GTK_WIDGET (win)), NULL); } /* If the window removed is in the middle of the stack, update @@ -303,7 +303,7 @@ _hildon_window_stack_do_push (HildonWindowStack *stack, } /* Set window group */ - if (GTK_WIDGET_REALIZED (win)) { + if (gtk_widget_get_realized (GTK_WIDGET (win))) { hildon_window_stack_window_realized (GTK_WIDGET (win), stack); } else { g_signal_connect (win, "realize", |