openbsd-ports/x11/gmrun/patches/patch-src_gtkcompletionline_cc
2012-03-23 20:47:06 +00:00

37 lines
1.1 KiB
Plaintext

$OpenBSD: patch-src_gtkcompletionline_cc,v 1.3 2012/03/23 20:47:06 naddy Exp $
--- src/gtkcompletionline.cc.orig Sun Nov 16 03:55:07 2003
+++ src/gtkcompletionline.cc Fri Mar 23 14:45:10 2012
@@ -76,9 +76,9 @@ static gboolean
on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data);
/* get_type */
-guint gtk_completion_line_get_type(void)
+GtkType gtk_completion_line_get_type(void)
{
- static guint type = 0;
+ static GtkType type = 0;
if (type == 0)
{
GtkTypeInfo type_info =
@@ -350,7 +350,7 @@ generate_path()
}
static int
-select_executables_only(const struct dirent* dent)
+select_executables_only(struct dirent* dent)
{
int len = strlen(dent->d_name);
int lenp = prefix.length();
@@ -376,10 +376,7 @@ select_executables_only(const struct dirent* dent)
return 0;
}
-int my_alphasort(const void* va, const void* vb) {
- const struct dirent** a = (const struct dirent**)va;
- const struct dirent** b = (const struct dirent**)vb;
-
+int my_alphasort(const struct dirent** a, const dirent** b) {
const char* s1 = (*a)->d_name;
const char* s2 = (*b)->d_name;