comparison src/win32/win32dep.c @ 6929:906567be99b2

[gaim-migrate @ 7476] Popup notification when moving data dir committer: Tailor Script <tailor@pidgin.im>
author Herman Bloggs <hermanator12002@yahoo.com>
date Wed, 24 Sep 2003 02:21:44 +0000
parents 4eee806af511
children bf630f7dfdcd
comparison
equal deleted inserted replaced
6928:6ed0a1c045b4 6929:906567be99b2
32 #include <glib.h> 32 #include <glib.h>
33 #include <gdk/gdkwin32.h> 33 #include <gdk/gdkwin32.h>
34 34
35 #include "gaim.h" 35 #include "gaim.h"
36 #include "debug.h" 36 #include "debug.h"
37 #include "notify.h"
37 38
38 #include "stdafx.h" 39 #include "stdafx.h"
39 #include "resource.h" 40 #include "resource.h"
40 #include "MinimizeToTray.h" 41 #include "MinimizeToTray.h"
41 #include "winuser_extra.h" 42 #include "winuser_extra.h"
42 #include "idletrack.h" 43 #include "idletrack.h"
43 #include "zlib.h" 44 #include "zlib.h"
44 #include "untar.h" 45 #include "untar.h"
45 46
47 # include <libintl.h>
48 # define _(x) gettext(x)
46 49
47 /* 50 /*
48 * DEFINES & MACROS 51 * DEFINES & MACROS
49 */ 52 */
50 53
464 GDir *dir_old, *dir_new; 467 GDir *dir_old, *dir_new;
465 468
466 dir_old = g_dir_open(old_home, 0, NULL); 469 dir_old = g_dir_open(old_home, 0, NULL);
467 dir_new = g_dir_open(new_home, 0, NULL); 470 dir_new = g_dir_open(new_home, 0, NULL);
468 if(dir_old && !dir_new) { 471 if(dir_old && !dir_new) {
472 gaim_notify_message(NULL,
473 GAIM_NOTIFY_MSG_INFO,
474 _("Notification"),
475 _("Moving Gaim user settings directory to:"),
476 new_home,
477 NULL,
478 NULL);
469 if(MoveFile(old_home, new_home) != 0) 479 if(MoveFile(old_home, new_home) != 0)
470 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Success moving '.gaim' directory\n"); 480 gaim_debug(GAIM_DEBUG_INFO, "wgaim", "Success moving '.gaim' directory\n");
471 } 481 }
472 g_free(new_home); 482 g_free(new_home);
473 g_free(old_home); 483 g_free(old_home);