aboutsummaryrefslogtreecommitdiff
path: root/src/ka-pwdialog.c
diff options
context:
space:
mode:
authorGuido Günther <agx@sigxcpu.org>2010-06-19 15:28:04 +0200
committerGuido Günther <agx@sigxcpu.org>2010-06-19 15:28:04 +0200
commit3dabd41cdb58f4575dd81e6668a7cba6337ca09c (patch)
treeb70234f94d6c99481f3dac90635337ca32053017 /src/ka-pwdialog.c
parentDon't only match even release numbers (diff)
parentImported Upstream version 0.16~rc2 (diff)
downloadkrb5-auth-dialog-3dabd41cdb58f4575dd81e6668a7cba6337ca09c.tar.gz
krb5-auth-dialog-3dabd41cdb58f4575dd81e6668a7cba6337ca09c.tar.bz2
krb5-auth-dialog-3dabd41cdb58f4575dd81e6668a7cba6337ca09c.zip
Merge commit 'upstream/0.16.rc2' into experimental
Diffstat (limited to 'src/ka-pwdialog.c')
-rw-r--r--src/ka-pwdialog.c5
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 ||
bgstack15