Commit 723c25c2 authored by Stefan Walter's avatar Stefan Walter

Don't grab keyboard when in debug mode. This gets in the way.

    * libseahorse/seahorse-passphrase.c: Don't grab keyboard when in
    debug mode. This gets in the way.
parent 5fb7fa9b
......@@ -4,6 +4,8 @@
seahorse_util_write_data_to_text
* libseahorse/seahorse-pgp-operation.c: Fix problem with invalid
progress data coming from GPGME
* libseahorse/seahorse-passphrase.c: Don't grab keyboard when in
debug mode. This gets in the way.
2006-04-11 Nate Nielsen <nielsen@memberwebs.com>
......
......@@ -20,6 +20,7 @@
* Boston, MA 02111-1307, USA.
*/
#include "config.h"
#include <gnome.h>
#include <glade/glade-xml.h>
......@@ -58,15 +59,19 @@ utf8_validate (const gchar *text)
static void
grab_keyboard (GtkWidget *win, GdkEvent * event, gpointer data)
{
#ifndef _DEBUG
if (gdk_keyboard_grab (win->window, FALSE, gdk_event_get_time (event)))
g_critical ("could not grab keyboard");
#endif
}
/* ungrab_keyboard - remove grab */
static void
ungrab_keyboard (GtkWidget *win, GdkEvent *event, gpointer data)
{
#ifndef _DEBUG
gdk_keyboard_ungrab (gdk_event_get_time (event));
#endif
}
/* When enter is pressed in the entry, we simulate an ok */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment