+2003-06-07 [christoph] 0.9.0claws20
+
+ * src/Makefile.am
+ * src/crash.c
+ * src/export.c
+ * src/filesel.[ch] ** REMOVE **
+ * src/folder.c
+ * src/main.[ch]
+ * src/common/sylpheed.[ch]
+ * src/gtk/Makefile.am
+ * src/gtk/filesel.[ch] ** NEW **
+ * src/gtk/pluginwindow.c
+ * src/gtk/sslcertwindow.c
+ move filesel.[ch] to gtk directory
+
2003-06-07 [alfons] 0.9.0claws19
* src/filesel.c
MICRO_VERSION=0
INTERFACE_AGE=0
BINARY_AGE=0
-EXTRA_VERSION=claws19
+EXTRA_VERSION=claws20
VERSION=$MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION$EXTRA_VERSION
dnl set $target
about.[ch] gtk/about.[ch] ok
colorlabel.[ch] gtk/colorlabel.[ch] ok
+
+filesel.[ch] gtk/filesel.[ch] ok
addrgather.c addrgather.h \
exporthtml.c exporthtml.h \
exphtmldlg.c exphtmldlg.h \
- filesel.c filesel.h \
foldersel.c foldersel.h \
statusbar.c statusbar.h \
logwindow.c logwindow.h \
#include "plugin.h"
static gboolean sylpheed_initialized = FALSE;
+static gchar *startup_dir;
/**
* Parse program parameters and remove all parameters
if (sylpheed_initialized)
return TRUE;
+ startup_dir = g_get_current_dir();
+
parse_parameter(argc, argv);
setlocale(LC_ALL, "");
ssl_done();
#endif
}
+
+const gchar *sylpheed_get_startup_dir()
+{
+ return startup_dir;
+}
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-gboolean sylpheed_init (int *argc, char ***argv);
-void sylpheed_done ();
+gboolean sylpheed_init (int *argc, char ***argv);
+void sylpheed_done ();
+const gchar *sylpheed_get_startup_dir ();
static volatile unsigned long crashed_ = 0;
/*
- * let's hope startup_dir and argv0 aren't trashed.
+ * let's hope argv0 aren't trashed.
* both are defined in main.c.
*/
- extern gchar *startup_dir;
extern gchar *argv0;
args[3] = buf;
args[4] = NULL;
- chdir(startup_dir);
+ chdir(sylpheed_get_startup_dir());
setgid(getgid());
setuid(getuid());
execvp(argv0, args);
#include <gtk/gtksignal.h>
#include "intl.h"
+#include "sylpheed.h"
#include "main.h"
#include "inc.h"
#include "mbox.h"
else
gtk_widget_show(window);
- change_dir(startup_dir);
+ change_dir(sylpheed_get_startup_dir());
if (default_src && default_src->path)
src_id = folder_item_get_identifier(default_src);
return 0;
}
+static gboolean folder_scan_all_items_func(GNode *node, gpointer data)
+{
+ FolderItem *item = node->data;
+
+ folder_item_scan(item);
+
+ return FALSE;
+}
+
+void folder_scan_all_items(Folder * folder)
+{
+ g_node_traverse(folder->node, G_PRE_ORDER,
+ G_TRAVERSE_ALL, -1, folder_scan_all_items_func, NULL);
+}
+
static void folder_item_scan_foreach_func(gpointer key, gpointer val,
gpointer data)
{
about.c about.h \
colorlabel.c colorlabel.h \
description_window.c description_window.h \
+ filesel.c filesel.h \
gtkutils.c gtkutils.h \
gtkshruler.c gtkshruler.h \
gtksctree.c gtksctree.h \
#include <gtk/gtksignal.h>
#include <gtk/gtkeditable.h>
-#include "main.h"
+#include "sylpheed.h"
#include "filesel.h"
#include "manage_window.h"
#include "gtkutils.h"
}
if (!cwd)
- cwd = g_strconcat(startup_dir, G_DIR_SEPARATOR_S, NULL);
+ cwd = g_strconcat(sylpheed_get_startup_dir(), G_DIR_SEPARATOR_S, NULL);
gtk_file_selection_set_filename(GTK_FILE_SELECTION(filesel), cwd);
}
if (!cwd)
- cwd = g_strconcat(startup_dir, G_DIR_SEPARATOR_S, NULL);
+ cwd = g_strconcat(sylpheed_get_startup_dir(), G_DIR_SEPARATOR_S, NULL);
gtk_file_selection_set_filename(GTK_FILE_SELECTION(filesel), cwd);
#include "intl.h"
#include "plugin.h"
-#include "../filesel.h"
-#include "../alertpanel.h"
+#include "filesel.h"
+#include "alertpanel.h"
typedef struct _PluginWindow
{
#include "intl.h"
#include "ssl_certificate.h"
#include "utils.h"
-#include "../alertpanel.h"
+#include "alertpanel.h"
#include "hooks.h"
static void toggle_cert_cb(GtkWidget *widget,
#include "crash.h"
gchar *prog_version;
-gchar *startup_dir;
#ifdef CRASH_DIALOG
gchar *argv0;
#endif
}
prog_version = PROG_VERSION;
- startup_dir = g_get_current_dir();
#ifdef CRASH_DIALOG
argv0 = g_strdup(argv[0]);
#endif
if (!cmd.attach_files)
cmd.attach_files = g_ptr_array_new();
if (*p != G_DIR_SEPARATOR)
- file = g_strconcat(startup_dir,
+ file = g_strconcat(sylpheed_get_startup_dir(),
G_DIR_SEPARATOR_S,
p, NULL);
else
#include <gtk/gtkwidget.h>
extern gchar *prog_version;
-extern gchar *startup_dir;
extern gboolean debug_mode;
void app_will_exit (GtkWidget *widget, gpointer data);