Dolda2000 GitWeb
/
doldaconnect.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
First potentially working version of the transsocket.
[doldaconnect.git]
/
clients
/
gtk2
/
dolcon.c
diff --git
a/clients/gtk2/dolcon.c
b/clients/gtk2/dolcon.c
index
60374f3
..
b2392e1
100644
(file)
--- a/
clients/gtk2/dolcon.c
+++ b/
clients/gtk2/dolcon.c
@@
-41,6
+41,7
@@
#include <pwd.h>
#include <locale.h>
#include <assert.h>
#include <pwd.h>
#include <locale.h>
#include <assert.h>
+#include <stdint.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
#ifdef HAVE_CONFIG_H
#include <config.h>
@@
-829,7
+830,7
@@
void logincallback(int err, wchar_t *reason, void *data)
switch(err)
{
case DC_LOGIN_ERR_SUCCESS:
switch(err)
{
case DC_LOGIN_ERR_SUCCESS:
- dc_queuecmd(NULL, NULL, L"notify", L"all", L"on", NULL);
+ dc_queuecmd(NULL, NULL, L"notify", L"all", L"on",
L"fn:peer", L"off",
NULL);
dc_getfnlistasync(getfnlistcallback, NULL);
dc_gettrlistasync(gettrlistcallback, NULL);
updatesbar("Authenticated");
dc_getfnlistasync(getfnlistcallback, NULL);
dc_gettrlistasync(gettrlistcallback, NULL);
updatesbar("Authenticated");
@@
-1165,9
+1166,8
@@
void handleresps(void)
if((buf = icwcstombs(ires->argv[1].val.str, "UTF-8")) != NULL)
{
p = buf;
if((buf = icwcstombs(ires->argv[1].val.str, "UTF-8")) != NULL)
{
p = buf;
- /* XXX: Too NMDC-specific! */
- if(strrchr(p, '\\') != NULL)
- p = strrchr(p, '\\') + 1;
+ if(strrchr(p, '/') != NULL)
+ p = strrchr(p, '/') + 1;
gtk_tree_store_set(srchmodel, &piter, 3, p, -1);
free(buf);
}
gtk_tree_store_set(srchmodel, &piter, 3, p, -1);
free(buf);
}