Branch: refs/heads/master Author: Colomban Wendling ban@herbesfolles.org Committer: Colomban Wendling ban@herbesfolles.org Date: Sat, 04 Aug 2012 15:08:40 Commit: fa8c558ed7f404f027e4c89f9ca4ce12a8ce031e https://github.com/geany/geany-plugins/commit/fa8c558ed7f404f027e4c89f9ca4ce...
Log Message: ----------- commander: Restore the type hint
Modified Paths: -------------- commander/src/commander-plugin.c
Modified: commander/src/commander-plugin.c 16 files changed, 13 insertions(+), 3 deletions(-) =================================================================== @@ -371,14 +371,24 @@ enum { gint distb; gchar *patha; gchar *pathb; - const gchar *key = get_key (NULL); + gint typea; + gint typeb; + gint type; + const gchar *key = get_key (&type);
- gtk_tree_model_get (model, a, COL_PATH, &patha, -1); - gtk_tree_model_get (model, b, COL_PATH, &pathb, -1); + gtk_tree_model_get (model, a, COL_PATH, &patha, COL_TYPE, &typea, -1); + gtk_tree_model_get (model, b, COL_PATH, &pathb, COL_TYPE, &typeb, -1);
dista = key_dist (key, patha); distb = key_dist (key, pathb);
+ if (! (typea & type)) { + dista += 0xf000; + } + if (! (typeb & type)) { + distb += 0xf000; + } + g_free (patha); g_free (pathb);
@@ Diff output truncated at 100000 characters. @@
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: TBD).