diff options
author | Guido Günther <agx@sigxcpu.org> | 2010-06-19 15:27:57 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2010-06-19 15:27:57 +0200 |
commit | daedd98264fd9aa755f3122d46ce27f93e08cfca (patch) | |
tree | 482a9e1683593e017f49a1fecb230c87c038f22b /src/ka-pwdialog.c | |
parent | Imported Upstream version 0.16~rc1 (diff) | |
download | krb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.tar.gz krb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.tar.bz2 krb5-auth-dialog-daedd98264fd9aa755f3122d46ce27f93e08cfca.zip |
Imported Upstream version 0.16~rc2
Diffstat (limited to 'src/ka-pwdialog.c')
-rw-r--r-- | src/ka-pwdialog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/ka-pwdialog.c b/src/ka-pwdialog.c index 2f8463c..da34471 100644 --- a/src/ka-pwdialog.c +++ b/src/ka-pwdialog.c @@ -96,7 +96,8 @@ grab_keyboard (GtkWidget *win, GdkEvent *event, gpointer data) GdkGrabStatus status; if (!pwdialog->priv->grabbed) { - status = gdk_keyboard_grab (win->window, FALSE, gdk_event_get_time (event)); + status = gdk_keyboard_grab (gtk_widget_get_window (win), + FALSE, gdk_event_get_time (event)); if (status == GDK_GRAB_SUCCESS) pwdialog->priv->grabbed = TRUE; else @@ -123,7 +124,7 @@ ungrab_keyboard (GtkWidget *win G_GNUC_UNUSED, static gboolean window_state_changed (GtkWidget *win, GdkEventWindowState *event, gpointer data) { - GdkWindowState state = gdk_window_get_state (win->window); + GdkWindowState state = gdk_window_get_state (gtk_widget_get_window (win)); if (state & GDK_WINDOW_STATE_WITHDRAWN || state & GDK_WINDOW_STATE_ICONIFIED || |