# HG changeset patch # User Christian Hammond # Date 1058672679 0 # Node ID 9ce44a7f9ae7f8f72b5fa1842a3c45dbb954d34a # Parent ac191233b81634da09b75902a5f2796195b0358a [gaim-migrate @ 6735] We now initialize FT's preferences. committer: Tailor Script diff -r ac191233b816 -r 9ce44a7f9ae7 src/core.c --- a/src/core.c Sun Jul 20 03:30:43 2003 +0000 +++ b/src/core.c Sun Jul 20 03:44:39 2003 +0000 @@ -25,6 +25,7 @@ #include "conversation.h" #include "core.h" #include "debug.h" +#include "ft.h" #include "plugin.h" #include "pounce.h" #include "prefs.h" @@ -75,6 +76,7 @@ gaim_proxy_init(); gaim_sound_init(); gaim_pounces_init(); + gaim_xfer_init(); if (ops != NULL && ops->ui_init != NULL) ops->ui_init(); diff -r ac191233b816 -r 9ce44a7f9ae7 src/ft.c --- a/src/ft.c Sun Jul 20 03:30:43 2003 +0000 +++ b/src/ft.c Sun Jul 20 03:44:39 2003 +0000 @@ -23,6 +23,7 @@ #include "internal.h" #include "ft.h" #include "notify.h" +#include "prefs.h" #include "proxy.h" static GaimXferUiOps *xfer_ui_ops = NULL; @@ -697,6 +698,13 @@ } void +gaim_xfer_init(void) +{ + gaim_prefs_add_none("/core/ft"); + gaim_prefs_add_string("/core/ft/public_ip", ""); +} + +void gaim_set_xfer_ui_ops(GaimXferUiOps *ops) { g_return_if_fail(ops != NULL); diff -r ac191233b816 -r 9ce44a7f9ae7 src/ft.h --- a/src/ft.h Sun Jul 20 03:30:43 2003 +0000 +++ b/src/ft.h Sun Jul 20 03:44:39 2003 +0000 @@ -462,6 +462,11 @@ */ void gaim_xfer_error(GaimXferType type, const char *who, const char *msg); +/** + * Initializes the file transfer subsystem. + */ +void gaim_xfer_init(void); + /*@}*/ /**************************************************************************/