Added
Link Here
|
1 |
--- ./src/gtkcompletionline.cc.orig 2003-11-16 13:55:07.000000000 +0300 |
2 |
+++ ./src/gtkcompletionline.cc 2010-01-20 21:25:08.847480188 +0300 |
3 |
@@ -39,6 +39,8 @@ |
4 |
|
5 |
/* GLOBALS */ |
6 |
|
7 |
+GtkType type = 0; |
8 |
+ |
9 |
/* signals */ |
10 |
enum { |
11 |
UNIQUE, |
12 |
@@ -76,14 +78,13 @@ |
13 |
on_key_press(GtkCompletionLine *cl, GdkEventKey *event, gpointer data); |
14 |
|
15 |
/* get_type */ |
16 |
-guint gtk_completion_line_get_type(void) |
17 |
+GtkType gtk_completion_line_get_type(void) |
18 |
{ |
19 |
- static guint type = 0; |
20 |
if (type == 0) |
21 |
{ |
22 |
GtkTypeInfo type_info = |
23 |
{ |
24 |
- "GtkCompletionLine", |
25 |
+ (gchar *)"GtkCompletionLine", |
26 |
sizeof(GtkCompletionLine), |
27 |
sizeof(GtkCompletionLineClass), |
28 |
(GtkClassInitFunc)gtk_completion_line_class_init, |
29 |
@@ -376,7 +377,7 @@ |
30 |
return 0; |
31 |
} |
32 |
|
33 |
-int my_alphasort(const void* va, const void* vb) { |
34 |
+int my_alphasort(const struct dirent** va, const struct dirent** vb) { |
35 |
const struct dirent** a = (const struct dirent**)va; |
36 |
const struct dirent** b = (const struct dirent**)vb; |
37 |
|
38 |
@@ -551,10 +552,10 @@ |
39 |
{ |
40 |
string text = gtk_entry_get_text(GTK_ENTRY(object)); |
41 |
gint where = (gint)text.find("~"); |
42 |
- if (where != string::npos) { |
43 |
+ if (where != (gint)string::npos) { |
44 |
if ((where > 0) && (text[where - 1] != ' ')) |
45 |
return 0; |
46 |
- if (where < text.size() - 1 && text[where + 1] != '/') { |
47 |
+ if (where < (gint)text.size() - 1 && text[where + 1] != '/') { |
48 |
// FIXME: Parse another user's home |
49 |
} else { |
50 |
string home = g_get_home_dir(); |