Add the unicode libraries as well.
2000-02-14 Miguel de Icaza <miguel@gnu.org> * camel/providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Add the unicode libraries as well. * camel/camel-provider.c (camel_provider_register_as_module): Add error reporting here. Desire to use Solaris increases. Hair loss in the last two hours: 5,400. * camel/providers/mbox/camel-mbox-provider.c (camel_mbox_get_provider): Renamed function. * camel/camel.h: All include files use camel/ now here. * camel/providers/mbox/Makefile.am: Drop all the dynamism from Camel, and make this a standard library. * configure.in: set the UNICODE_LIBS variable here. 2000-02-14 Miguel de Icaza <miguel@gnu.org> * folder-browser.c (folder_browser_load_folder): New routine, loads a camel folder. (folder_browser_set_uri): redo. * session.c: new file. Implements SessionStores to keep track of a Session/Store tuple. svn path=/trunk/; revision=1783
This commit is contained in:
committed by
Arturo Espinosa
parent
f9cdc1e009
commit
d53eea370b
@@ -1,3 +1,20 @@
|
||||
2000-02-14 Miguel de Icaza <miguel@gnu.org>
|
||||
|
||||
* camel/providers/mbox/Makefile.am (libcamelmbox_la_LIBADD): Add
|
||||
the unicode libraries as well.
|
||||
|
||||
* camel/camel-provider.c (camel_provider_register_as_module): Add
|
||||
error reporting here. Desire to use Solaris increases. Hair loss
|
||||
in the last two hours: 5,400.
|
||||
|
||||
* camel/providers/mbox/camel-mbox-provider.c
|
||||
(camel_mbox_get_provider): Renamed function.
|
||||
|
||||
* camel/camel.h: All include files use camel/ now here.
|
||||
|
||||
* camel/providers/mbox/Makefile.am: Drop all the dynamism from
|
||||
Camel, and make this a standard library.
|
||||
|
||||
2000-02-15 bertrand <Bertrand.Guiheneuf@aful.org>
|
||||
|
||||
* camel/camel-mime-part.c: include gmime-base64.h
|
||||
@@ -58,8 +75,6 @@
|
||||
New function. Allows to get the current position
|
||||
of a seekable stream.
|
||||
|
||||
|
||||
|
||||
2000-02-14 NotZed <notzed@zedzone.helixcode.com>
|
||||
|
||||
* configure.in (EXTRA_GNOME_CFLAGS): Add libunicode to CFLAGS/LIBS.
|
||||
|
||||
@@ -105,6 +105,7 @@ camel_provider_register_as_module (const gchar *module_path)
|
||||
|
||||
new_module = g_module_open (module_path, 0);
|
||||
if (!new_module) {
|
||||
printf ("g_module_open reports: %s\n", g_module_error ());
|
||||
CAMEL_LOG_WARNING ("CamelProvider::register_as_module Unable to load module %s\n", module_path);
|
||||
CAMEL_LOG_FULL_DEBUG ("Leaving CamelProvider::register_as_module\n");
|
||||
return NULL;
|
||||
|
||||
+23
-23
@@ -38,29 +38,29 @@ extern "C" {
|
||||
#include <camel/data-wrapper-repository.h>
|
||||
#include <camel/camel-log.h>
|
||||
#include <camel/camel-data-wrapper.h>
|
||||
#include <camel-simple-data-wrapper.h>
|
||||
#include <camel-folder.h>
|
||||
#include <camel-folder-pt-proxy.h>
|
||||
#include <camel-marshal-utils.h>
|
||||
#include <camel-mime-body-part.h>
|
||||
#include <camel-mime-message.h>
|
||||
#include <camel-mime-part.h>
|
||||
#include <camel-multipart.h>
|
||||
#include <camel-op-queue.h>
|
||||
#include <camel-provider.h>
|
||||
#include <camel-service.h>
|
||||
#include <camel-session.h>
|
||||
#include <camel-store.h>
|
||||
#include <camel-stream.h>
|
||||
#include <camel-stream-fs.h>
|
||||
#include <camel-stream-mem.h>
|
||||
#include <camel-thread-proxy.h>
|
||||
#include <data-wrapper-repository.h>
|
||||
#include <gmime-content-field.h>
|
||||
#include <gmime-utils.h>
|
||||
#include <gstring-util.h>
|
||||
#include <string-utils.h>
|
||||
#include <url-util.h>
|
||||
#include <camel/camel-simple-data-wrapper.h>
|
||||
#include <camel/camel-folder.h>
|
||||
#include <camel/camel-folder-pt-proxy.h>
|
||||
#include <camel/camel-marshal-utils.h>
|
||||
#include <camel/camel-mime-body-part.h>
|
||||
#include <camel/camel-mime-message.h>
|
||||
#include <camel/camel-mime-part.h>
|
||||
#include <camel/camel-multipart.h>
|
||||
#include <camel/camel-op-queue.h>
|
||||
#include <camel/camel-provider.h>
|
||||
#include <camel/camel-service.h>
|
||||
#include <camel/camel-session.h>
|
||||
#include <camel/camel-store.h>
|
||||
#include <camel/camel-stream.h>
|
||||
#include <camel/camel-stream-fs.h>
|
||||
#include <camel/camel-stream-mem.h>
|
||||
#include <camel/camel-thread-proxy.h>
|
||||
#include <camel/data-wrapper-repository.h>
|
||||
#include <camel/gmime-content-field.h>
|
||||
#include <camel/gmime-utils.h>
|
||||
#include <camel/gstring-util.h>
|
||||
#include <camel/string-utils.h>
|
||||
#include <camel/url-util.h>
|
||||
|
||||
gint camel_init ();
|
||||
|
||||
|
||||
+1
-1
@@ -36,7 +36,7 @@ extern "C" {
|
||||
|
||||
#include <glib.h>
|
||||
#include <stdio.h>
|
||||
#include <camel-stream.h>
|
||||
#include <camel/camel-stream.h>
|
||||
|
||||
typedef struct
|
||||
{
|
||||
|
||||
@@ -4,8 +4,9 @@ SUBDIRS =
|
||||
|
||||
libcamelmboxincludedir = $(includedir)/camel
|
||||
|
||||
providerdir = $(libdir)/evolution/camel-providers/$(VERSION)
|
||||
|
||||
lib_LTLIBRARIES = libcamelmbox.la
|
||||
provider_LTLIBRARIES = libcamelmbox.la
|
||||
|
||||
INCLUDES = -I.. -I$(srcdir)/.. -I$(includedir) \
|
||||
-I$(top_srcdir)/intl \
|
||||
@@ -30,9 +31,9 @@ libcamelmboxinclude_HEADERS = \
|
||||
camel-mbox-utils.h
|
||||
|
||||
|
||||
libcamelmbox_la_LDFLAGS = -version-info 0:0:0 -rpath $(libdir)
|
||||
libcamelmbox_la_LDFLAGS = -version-info 0:0:0 -rpath $(libdir)
|
||||
|
||||
#libcamelmbox_la_LIBADD = -L$(top_srcdir)/libibex -libex
|
||||
libcamelmbox_la_LIBADD = $(top_srcdir)/libibex/libibex.la
|
||||
libcamelmbox_la_LIBADD = $(top_srcdir)/libibex/libibex.la $(UNICODE_LIBS)
|
||||
|
||||
EXTRA_DIST =
|
||||
|
||||
@@ -38,11 +38,12 @@ static CamelProvider _mbox_provider = {
|
||||
(GModule *) NULL
|
||||
};
|
||||
|
||||
|
||||
|
||||
CamelProvider *
|
||||
camel_provider_module_init ()
|
||||
{
|
||||
_mbox_provider.object_type = camel_mbox_store_get_type();
|
||||
return &_mbox_provider;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -111,6 +111,8 @@ dnl libunicode checking
|
||||
dnl ******************************
|
||||
AC_MSG_CHECKING(For libunicode)
|
||||
if unicode-config --libs > /dev/null 2>&1; then
|
||||
UNICODE_LIBS=`unicode-config --libs`
|
||||
AC_SUBST(UNICODE_LIBS)
|
||||
AC_MSG_RESULT(found)
|
||||
else
|
||||
AC_MSG_ERROR(libunicode not found)
|
||||
|
||||
+3
-1
@@ -12,4 +12,6 @@ libeutil_a_SOURCES = \
|
||||
e-cursors.h \
|
||||
e-gui-utils.c \
|
||||
e-gui-utils.h \
|
||||
e-util.h
|
||||
e-util.h \
|
||||
e-setup.c \
|
||||
e-setup.h
|
||||
|
||||
@@ -14,12 +14,18 @@
|
||||
#include "e-gui-utils.h"
|
||||
|
||||
void
|
||||
e_notice (GtkWindow *window, const char *type, const char *str)
|
||||
e_notice (GtkWindow *window, const char *type, const char *format, ...)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
va_list args;
|
||||
char *str;
|
||||
|
||||
va_start (args, format);
|
||||
str = g_strdup_vprintf (format, args);
|
||||
dialog = gnome_message_box_new (str, type, GNOME_STOCK_BUTTON_OK, NULL);
|
||||
|
||||
va_end (args);
|
||||
g_free (str);
|
||||
|
||||
if (window)
|
||||
gnome_dialog_set_parent (GNOME_DIALOG (dialog), window);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
void e_popup_menu (GtkMenu *menu, GdkEventButton *event);
|
||||
void e_auto_kill_popup_menu_on_hide (GtkMenu *menu);
|
||||
void e_notice (GtkWindow *window, const char *type, const char *str);
|
||||
void e_notice (GtkWindow *window, const char *type, const char *format, ...);
|
||||
|
||||
|
||||
#endif /* E_GUI_UTILS_H */
|
||||
|
||||
@@ -1,3 +1,12 @@
|
||||
2000-02-14 Miguel de Icaza <miguel@gnu.org>
|
||||
|
||||
* folder-browser.c (folder_browser_load_folder): New routine,
|
||||
loads a camel folder.
|
||||
(folder_browser_set_uri): redo.
|
||||
|
||||
* session.c: new file. Implements SessionStores to keep track of
|
||||
a Session/Store tuple.
|
||||
|
||||
2000-02-13 Matt Loper <matt@helixcode.com>
|
||||
|
||||
* html-stream.c (html_stream_new): Second param of gtk_html_begin
|
||||
|
||||
+6
-1
@@ -1,10 +1,13 @@
|
||||
bin_PROGRAMS = evolution-mail test-mail
|
||||
|
||||
providerdir = $(libdir)/evolution/camel-providers/$(VERSION)
|
||||
|
||||
INCLUDES = \
|
||||
-DEVOLUTION_VERSION=\""$(VERSION)"\" \
|
||||
-DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \
|
||||
-DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \
|
||||
-DEVOLUTION_LOCALEDIR=\""$(datadir)/locale"\" \
|
||||
-DCAMEL_PROVIDERDIR=\""$(providerdir)"\" \
|
||||
-I$(top_srcdir)/widgets \
|
||||
-I$(top_srcdir)/widgets/e-text \
|
||||
$(BONOBO_HTML_GNOME_CFLAGS)
|
||||
@@ -27,7 +30,9 @@ evolution_mail_SOURCES = \
|
||||
mail-display.c \
|
||||
main.c \
|
||||
message-list.c \
|
||||
message-list.h
|
||||
message-list.h \
|
||||
session.c \
|
||||
session.h
|
||||
|
||||
evolution_mail_LDADD = \
|
||||
../widgets/e-table/libetable.a \
|
||||
|
||||
@@ -32,6 +32,8 @@ folder_browser_factory (BonoboGenericFactory *factory, void *closure)
|
||||
if (folder_browser == NULL)
|
||||
return NULL;
|
||||
|
||||
folder_browser_set_uri (FOLDER_BROWSER (folder_browser), "inbox");
|
||||
|
||||
control = bonobo_control_new (folder_browser);
|
||||
if (control == NULL){
|
||||
gtk_object_destroy (GTK_OBJECT (folder_browser));
|
||||
|
||||
+34
-1
@@ -11,6 +11,7 @@
|
||||
#include <gnome.h>
|
||||
#include "e-util/e-util.h"
|
||||
#include "folder-browser.h"
|
||||
#include "session.h"
|
||||
|
||||
#define PARENT_TYPE (gtk_table_get_type ())
|
||||
|
||||
@@ -27,6 +28,9 @@ folder_browser_destroy (GtkObject *object)
|
||||
if (folder_browser->uri)
|
||||
g_free (folder_browser->uri);
|
||||
|
||||
if (folder_browser->folder)
|
||||
gtk_object_unref (GTK_OBJECT (folder_browser->folder));
|
||||
|
||||
if (folder_browser->message_list)
|
||||
bonobo_object_unref (BONOBO_OBJECT (folder_browser->message_list));
|
||||
|
||||
@@ -41,14 +45,43 @@ folder_browser_class_init (GtkObjectClass *object_class)
|
||||
folder_browser_parent_class = gtk_type_class (PARENT_TYPE);
|
||||
}
|
||||
|
||||
static gboolean
|
||||
folder_browser_load_folder (FolderBrowser *fb, const char *name)
|
||||
{
|
||||
CamelFolder *new_folder;
|
||||
CamelException *ex;
|
||||
|
||||
ex = camel_exception_new ();
|
||||
new_folder = camel_store_get_folder (default_session->store, name, ex);
|
||||
|
||||
if (camel_exception_get_id (ex)){
|
||||
camel_exception_free (ex);
|
||||
return FALSE;
|
||||
}
|
||||
camel_exception_free (ex);
|
||||
|
||||
if (fb->folder)
|
||||
gtk_object_unref (GTK_OBJECT (fb->folder));
|
||||
|
||||
fb->folder = new_folder;
|
||||
|
||||
message_list_set_folder (fb->message_list, new_folder);
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
#define EQUAL(a,b) (strcmp (a,b) == 0)
|
||||
|
||||
void
|
||||
folder_browser_set_uri (FolderBrowser *folder_browser, const char *uri)
|
||||
{
|
||||
/* FIXME: hardcoded uri */
|
||||
if (!folder_browser_load_folder (folder_browser, "inbox"))
|
||||
return;
|
||||
|
||||
if (folder_browser->uri)
|
||||
g_free (folder_browser->uri);
|
||||
|
||||
|
||||
folder_browser->uri = g_strdup (uri);
|
||||
}
|
||||
|
||||
|
||||
@@ -22,6 +22,8 @@ typedef struct {
|
||||
* The current URI being displayed by the FolderBrowser
|
||||
*/
|
||||
char *uri;
|
||||
CamelFolder *folder;
|
||||
|
||||
MessageList *message_list;
|
||||
GtkWidget *message_list_w;
|
||||
MailDisplay *mail_display;
|
||||
|
||||
+12
-3
@@ -13,12 +13,15 @@
|
||||
#include "e-util/e-gui-utils.h"
|
||||
#include "main.h"
|
||||
|
||||
CORBA_Environment ev;
|
||||
CORBA_ORB orb;
|
||||
|
||||
static void
|
||||
init_bonobo (int argc, char **argv)
|
||||
{
|
||||
CORBA_Environment ev;
|
||||
|
||||
CORBA_exception_init (&ev);
|
||||
|
||||
gnome_CORBA_init_with_popt_table (
|
||||
"evolution-mail-component", "1.0",
|
||||
&argc, argv, NULL, 0, NULL, GNORBA_INIT_SERVER_FUNC, &ev);
|
||||
@@ -30,6 +33,8 @@ init_bonobo (int argc, char **argv)
|
||||
_("Mail Component: I could not initialize Bonobo"));
|
||||
exit (1);
|
||||
}
|
||||
|
||||
CORBA_exception_free (&ev);
|
||||
}
|
||||
|
||||
int
|
||||
@@ -38,13 +43,17 @@ main (int argc, char *argv [])
|
||||
bindtextdomain (PACKAGE, EVOLUTION_LOCALEDIR);
|
||||
textdomain (PACKAGE);
|
||||
|
||||
CORBA_exception_init (&ev);
|
||||
|
||||
init_bonobo (argc, argv);
|
||||
|
||||
session_init ();
|
||||
|
||||
folder_browser_factory_init ();
|
||||
|
||||
bonobo_main ();
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
+12
-5
@@ -55,18 +55,24 @@ static int
|
||||
ml_row_count (ETableModel *etm, void *data)
|
||||
{
|
||||
MessageList *message_list = data;
|
||||
CamelException ex;
|
||||
|
||||
if (!message_list->folder)
|
||||
return 1;
|
||||
CamelException *ex;
|
||||
int v;
|
||||
|
||||
return camel_folder_get_message_count (message_list->folder, &ex);
|
||||
if (!message_list->folder)
|
||||
return 0;
|
||||
|
||||
ex = camel_exception_new ();
|
||||
v = camel_folder_get_message_count (message_list->folder, ex);
|
||||
camel_exception_free (ex);
|
||||
|
||||
return v;
|
||||
}
|
||||
|
||||
static void *
|
||||
ml_value_at (ETableModel *etm, int col, int row, void *data)
|
||||
{
|
||||
static char buffer [10];
|
||||
|
||||
|
||||
switch (col){
|
||||
case COL_ONLINE_STATUS:
|
||||
@@ -465,6 +471,7 @@ message_list_set_folder (MessageList *message_list, CamelFolder *camel_folder)
|
||||
|
||||
gtk_object_ref (GTK_OBJECT (camel_folder));
|
||||
|
||||
printf ("Modelo cambio!\n");
|
||||
e_table_model_changed (message_list->table_model);
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -38,7 +38,7 @@ main (int argc, char**argv)
|
||||
gtk_init (&argc, &argv);
|
||||
camel_init ();
|
||||
ex = camel_exception_new ();
|
||||
camel_provider_register_as_module ("/opt/gnome/lib/libcamelmbox.so.0");
|
||||
camel_provider_register_as_module ("./libcamelmbox.so.0");
|
||||
|
||||
session = camel_session_new ();
|
||||
store = camel_session_get_store (session, store_url);
|
||||
|
||||
@@ -14,12 +14,18 @@
|
||||
#include "e-gui-utils.h"
|
||||
|
||||
void
|
||||
e_notice (GtkWindow *window, const char *type, const char *str)
|
||||
e_notice (GtkWindow *window, const char *type, const char *format, ...)
|
||||
{
|
||||
GtkWidget *dialog;
|
||||
va_list args;
|
||||
char *str;
|
||||
|
||||
va_start (args, format);
|
||||
str = g_strdup_vprintf (format, args);
|
||||
dialog = gnome_message_box_new (str, type, GNOME_STOCK_BUTTON_OK, NULL);
|
||||
|
||||
va_end (args);
|
||||
g_free (str);
|
||||
|
||||
if (window)
|
||||
gnome_dialog_set_parent (GNOME_DIALOG (dialog), window);
|
||||
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
|
||||
void e_popup_menu (GtkMenu *menu, GdkEventButton *event);
|
||||
void e_auto_kill_popup_menu_on_hide (GtkMenu *menu);
|
||||
void e_notice (GtkWindow *window, const char *type, const char *str);
|
||||
void e_notice (GtkWindow *window, const char *type, const char *format, ...);
|
||||
|
||||
|
||||
#endif /* E_GUI_UTILS_H */
|
||||
|
||||
Reference in New Issue
Block a user