Mercurial > pidgin.yaz
comparison finch/libgnt/gntfilesel.c @ 25543:5e76304ebcc8
propagate from branch 'im.pidgin.pidgin' (head 40c25a37a614d9667d4cf190640316f92edbe3d6)
to branch 'im.pidgin.pidgin.yaz' (head 1bfde92fb6a41d9c59719cd3d6a56bdb86c45234)
author | Yoshiki Yazawa <yaz@honeyplanet.jp> |
---|---|
date | Sat, 25 Aug 2007 08:42:33 +0000 |
parents | 70a3aa1f2dd5 |
children | 44b4e8bd759b |
comparison
equal
deleted
inserted
replaced
25542:92d8c9b08dab | 25543:5e76304ebcc8 |
---|---|
198 { | 198 { |
199 char *old; | 199 char *old; |
200 const char *tmp; | 200 const char *tmp; |
201 tmp = sel->suggest ? sel->suggest : | 201 tmp = sel->suggest ? sel->suggest : |
202 (const char*)gnt_tree_get_selection_data(sel->dirsonly ? GNT_TREE(sel->dirs) : GNT_TREE(sel->files)); | 202 (const char*)gnt_tree_get_selection_data(sel->dirsonly ? GNT_TREE(sel->dirs) : GNT_TREE(sel->files)); |
203 old = g_strdup_printf("%s%s%s", sel->current, sel->current[1] ? G_DIR_SEPARATOR_S : "", tmp ? tmp : ""); | 203 old = g_strdup_printf("%s%s%s", SAFE(sel->current), SAFE(sel->current)[1] ? G_DIR_SEPARATOR_S : "", tmp ? tmp : ""); |
204 gnt_entry_set_text(GNT_ENTRY(sel->location), old); | 204 gnt_entry_set_text(GNT_ENTRY(sel->location), old); |
205 g_free(old); | 205 g_free(old); |
206 } | 206 } |
207 | 207 |
208 static gboolean | 208 static gboolean |