ports/security/otpcalc/patches/patch-callbacks_c

29 lines
603 B
Text
Raw Normal View History

2023-08-16 22:26:55 +00:00
Port to GTK+2. From Gentoo.
--- callbacks.c.orig Fri Jan 29 15:42:32 2010
+++ callbacks.c Fri Jan 29 15:43:03 2010
@@ -236,7 +236,7 @@ void sethash(unsigned short new)
}
-void focus(GtkWidget *widget, gpointer data)
+gboolean focus(GtkWidget *widget, GdkEvent *event, gpointer data)
{
static GdkAtom targets;
@@ -244,12 +244,12 @@ void focus(GtkWidget *widget, gpointer data)
if (!autopaste)
- return;
+ return FALSE;
targets = gdk_atom_intern("STRING", FALSE);
gtk_selection_convert(widget, GDK_SELECTION_PRIMARY, targets,
GDK_CURRENT_TIME);
-
+ return FALSE;
}