Mercurial > pidgin.yaz
diff console/libgnt/gntentry.c @ 14836:bfcdd361357e
[gaim-migrate @ 17605]
Do things right and fix the compile warnings.
committer: Tailor Script <tailor@pidgin.im>
author | Sadrul Habib Chowdhury <imadil@gmail.com> |
---|---|
date | Sat, 28 Oct 2006 19:52:30 +0000 |
parents | 91a89d5ef714 |
children | 3378450077e7 |
line wrap: on
line diff
--- a/console/libgnt/gntentry.c Sat Oct 28 19:37:48 2006 +0000 +++ b/console/libgnt/gntentry.c Sat Oct 28 19:52:30 2006 +0000 @@ -3,6 +3,7 @@ #include "gntbox.h" #include "gntentry.h" +#include "gntstyle.h" #include "gnttree.h" #include "gntutils.h" @@ -339,7 +340,7 @@ { char ch; ch = *text; -#define SAME(a,b) ((isalpha(a) && isalpha(b)) || (isdigit(a) && isdigit(b)) || (isblank(a) && isblank(b))) +#define SAME(a,b) ((isalpha(a) && isalpha(b)) || (isdigit(a) && isdigit(b)) || (isspace(a) && isspace(b))) while (--text >= begin) { if (!SAME(ch, *text)) break; @@ -354,7 +355,6 @@ { GntEntry *entry = GNT_ENTRY(widget); const char *iter = entry->cursor - 1; - int count; if (iter < entry->start) return TRUE; @@ -586,7 +586,7 @@ gnt_widget_class_register_action(parent_class, "history-next", history_next, "\033" GNT_KEY_CTRL_UP, NULL); - gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), klass); + gnt_style_read_actions(G_OBJECT_CLASS_TYPE(klass), parent_class); GNTDEBUG; }