pidgin: bad8c54a: Return FALSE when nothing changes after ...
sadrul at pidgin.im
sadrul at pidgin.im
Wed Apr 23 06:38:46 EDT 2008
-----------------------------------------------------------------
Revision: bad8c54a513285c617fb34bddca1d652c7d7975e
Ancestor: 52e841c96296ab164c2be839e9d404dc1f9a6a9e
Author: sadrul at pidgin.im
Date: 2008-04-23T10:11:58
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/bad8c54a513285c617fb34bddca1d652c7d7975e
Modified files:
finch/libgnt/gntentry.c
ChangeLog:
Return FALSE when nothing changes after an attempted tab-completion.
Fixes #5591.
-------------- next part --------------
============================================================
--- finch/libgnt/gntentry.c a901e8641ef817179da7ab85f0058e2f73930f0b
+++ finch/libgnt/gntentry.c a132f44e54998960a592db1024c0bcaf4fb4f04d
@@ -238,8 +238,15 @@ show_suggest_dropdown(GntEntry *entry)
destroy_suggest(entry);
return FALSE;
} else if (count == 1) {
+ char *store = g_strndup(entry->start, entry->end - entry->start);
+ gboolean ret;
+
destroy_suggest(entry);
- return complete_suggest(entry, sgst);
+ complete_suggest(entry, sgst);
+
+ ret = (strncmp(store, entry->start, entry->end - entry->start) != 0);
+ g_free(store);
+ return ret;
} else {
if (max > 0) {
GntWidget *ddown = entry->ddown;
More information about the Commits
mailing list