aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ChangeLog17
-rw-r--r--shell/e-shell-view.c12
-rw-r--r--shell/e-shell-view.h7
-rw-r--r--shell/e-shell.c5
-rw-r--r--shell/main.c17
5 files changed, 43 insertions, 15 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index c479f46f5b..90400d3fe1 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,5 +1,22 @@
2000-05-09 Ettore Perazzoli <ettore@helixcode.com>
+ * e-shell.c (e_shell_new_view): Display the specified @uri in the
+ view.
+
+ * e-shell-view.c (e_shell_view_construct): Removed arg @uri.
+ (e_shell_view_new): Likewise.
+
+ * main.c: New string constant `STARTUP_URI', specifying the URI to
+ show in the startup view.
+ (new_view_idle_cb): New callback function to create a new view for
+ `STARTUP_URI' in the idle loop. We need to do this in the idle
+ loop because the CORBA stuff cannot work until the loop starts
+ running.
+ (main): Set `new_view_idle_cb' up as the idle callback instead of
+ creating the view right away.
+
+2000-05-09 Ettore Perazzoli <ettore@helixcode.com>
+
* e-shell.c (setup_storages): Woops. Don't free the path before
the warning message, as we need to print it.
diff --git a/shell/e-shell-view.c b/shell/e-shell-view.c
index 8d83a9fca4..922d5c301c 100644
--- a/shell/e-shell-view.c
+++ b/shell/e-shell-view.c
@@ -247,8 +247,7 @@ init (EShellView *shell_view)
void
e_shell_view_construct (EShellView *shell_view,
- EShell *shell,
- const char *uri)
+ EShell *shell)
{
EShellViewPrivate *priv;
@@ -256,7 +255,6 @@ e_shell_view_construct (EShellView *shell_view,
g_return_if_fail (E_IS_SHELL_VIEW (shell_view));
g_return_if_fail (shell != NULL);
g_return_if_fail (E_IS_SHELL (shell));
- g_return_if_fail (uri == NULL || ! g_path_is_absolute (uri));
gnome_app_construct (GNOME_APP (shell_view), "evolution", "Evolution");
@@ -265,24 +263,20 @@ e_shell_view_construct (EShellView *shell_view,
gtk_object_ref (GTK_OBJECT (shell));
priv->shell = shell;
- priv->uri = g_strdup (uri);
-
setup_widgets (shell_view);
setup_menus (shell_view);
}
GtkWidget *
-e_shell_view_new (EShell *shell,
- const char *uri)
+e_shell_view_new (EShell *shell)
{
GtkWidget *new;
g_return_val_if_fail (shell != NULL, NULL);
g_return_val_if_fail (E_IS_SHELL (shell), NULL);
- g_return_val_if_fail (uri == NULL || ! g_path_is_absolute (uri), NULL);
new = gtk_type_new (e_shell_view_get_type ());
- e_shell_view_construct (E_SHELL_VIEW (new), shell, uri);
+ e_shell_view_construct (E_SHELL_VIEW (new), shell);
return new;
}
diff --git a/shell/e-shell-view.h b/shell/e-shell-view.h
index 2cd39ebec9..5fbef18228 100644
--- a/shell/e-shell-view.h
+++ b/shell/e-shell-view.h
@@ -61,10 +61,9 @@ struct _EShellViewClass {
GtkType e_shell_view_get_type (void);
void e_shell_view_construct (EShellView *shell_view,
- EShell *shell,
- const char *uri);
-GtkWidget *e_shell_view_new (EShell *shell,
- const char *uri);
+ EShell *shell);
+GtkWidget *e_shell_view_new (EShell *shell);
+
gboolean e_shell_view_display_uri (EShellView *shell_view,
const char *uri);
diff --git a/shell/e-shell.c b/shell/e-shell.c
index 1223fc3e33..fd61108a5f 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -254,11 +254,14 @@ e_shell_new_view (EShell *shell,
g_return_val_if_fail (shell != NULL, NULL);
g_return_val_if_fail (E_IS_SHELL (shell), NULL);
- view = e_shell_view_new (shell, uri);
+ view = e_shell_view_new (shell);
gtk_widget_show (view);
gtk_signal_connect (GTK_OBJECT (view), "destroy", GTK_SIGNAL_FUNC (view_destroy_cb), shell);
+ if (uri != NULL)
+ e_shell_view_display_uri (E_SHELL_VIEW (view), uri);
+
shell->priv->views = g_list_prepend (shell->priv->views, view);
return view;
diff --git a/shell/main.c b/shell/main.c
index 5ab33823e9..1cb31909c5 100644
--- a/shell/main.c
+++ b/shell/main.c
@@ -30,6 +30,9 @@
#include "e-shell.h"
+#define STARTUP_URI "evolution:/local/Inbox"
+
+
static void
no_views_left_cb (EShell *shell, gpointer data)
{
@@ -79,6 +82,18 @@ init_corba (int *argc, char **argv)
#endif /* USING_OAF */
+static gint
+new_view_idle_cb (gpointer data)
+{
+ EShell *shell;
+
+ shell = E_SHELL (data);
+ e_shell_new_view (shell, STARTUP_URI);
+
+ return FALSE;
+}
+
+
int
main (int argc, char **argv)
{
@@ -113,7 +128,7 @@ main (int argc, char **argv)
gtk_signal_connect (GTK_OBJECT (shell), "destroy",
GTK_SIGNAL_FUNC (destroy_cb), NULL);
- e_shell_new_view (shell, NULL);
+ gtk_idle_add (new_view_idle_cb, shell);
bonobo_main ();
26455580fe3dde41863957b0e89cffe6236b'>Upgrade to 0.0.7des2005-07-234-6/+14 * Upgrade to 5.64 and unbreak.thierry2005-07-213-10/+8 * Chase TK upgrade and unbreak.thierry2005-07-182-5/+13 * BROKEN: Does not buildkris2005-07-181-0/+2 * BROKEN: Size mismatchkris2005-07-091-0/+2 * BROKEN: Size mismatchkris2005-07-091-0/+2 * Update to version 3.3.19.novel2005-07-092-4/+4 * Upgrade to 1.2.4.thierry2005-07-047-13/+49 * Upgrade to 7.2.6, and don't mark broken on amd64.thierry2005-07-033-20/+52 * - Update to 3.3.18ahze2005-06-274-88/+86 * The tochnog port installs some plugins into a directory which is owned bynetchild2005-06-262-3/+11 * Chase dependency location (linux-gid) after my linux mega-patch.netchild2005-06-251-1/+2 * Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-183-5/+4 * Update to 0.40.4.novel2005-06-173-8/+10 * Update to 20050609. Changes include:hrs2005-06-158-196/+264 * Graphical circuit design and simulation tool.des2005-06-126-0/+252 * change the libtool version to use from 1.3 to 1.5oliver2005-06-011-1/+1 * Mark these ports DEPRECATED due to being unmaintained and one or morelawrance2005-05-311-0/+3 * - Update to 1.8.6pav2005-05-205-354/+483 * Update to 9.2.b.novel2005-05-182-6/+6 * - Update to 20050313 [1]jylefort2005-05-1618-60/+71 * Update to 20050313jylefort2005-05-167-31/+219 * Upgrade to 7.2.4.thierry2005-05-133-9/+10 * Bump PORTREVISION after the libgsl update.jylefort2005-05-031-0/+1 * Chase the libgsl update.jylefort2005-05-021-1/+1 * Remove Tcl matherr() hack.das2005-05-011-3/+2 * - Upgrade ASTK to 1.2.3;thierry2005-04-282-5/+5 * s/^\.elseif/.else/harti2005-04-131-1/+1 * At Kris's request, back out the MACHINE_ARCH spelling correction untilobrien2005-04-124-4/+4 * Assist getting more ports working on AMD64 by obeying theobrien2005-04-114-4/+4 * - Update to 7.2.2pav2005-04-107-119/+65 * Upgrade to 1.2.2.thierry2005-04-033-5/+18 * - Fix typo in include filebarner2005-04-024-10/+34 * BROKEN on !i386 and !amd64: Does not compilekris2005-03-271-0/+4 * Fix pkg-plistmaho2005-03-242-3/+3 * Fix the build.mezz2005-03-221-0/+2 * Fix build for superlu_mt casemaho2005-03-191-4/+6 * Update to 1.3maho2005-03-1911-97/+230 * o Add GiD (an excellent mesher and postprocessor) supportmaho2005-03-192-211/+229 * Fully-qualify the path to update-desktop-database and update-mime-database inmezz2005-03-172-3/+3 * Add linux-gid 7.4.9b,barner2005-03-168-0/+1740 * Update to 0.2.1:vs2005-03-164-10/+16 * Upgrade to 1.60.1.thierry2005-03-163-3/+4 * Unbreak: Should be fixed by recent updates to cairovs2005-03-141-4/+0 * Bump PORTREVISION to chase the glib20 shared lib version change.marcus2005-03-126-2/+6 * Unbreak: No longer broken in my private he^Wjail, plus fix for qt-3.3.4vs2005-03-091-2/+2 * - Update to 1.0.1.flz2005-03-072-3/+3 * Note that math/ploticus now installs as bin/ploticus rather than bin/pl.linimon2005-03-071-1/+1 * add impact 0.5.3ijliao2005-03-046-0/+64 * Respect the user's USE_LINUX setting.trevor2005-03-022-2/+2 * BROKEN on 4.x: Linker errorkrion2005-03-011-0/+4 * BROKEN: Checksum mismatchkris2005-02-281-0/+2 * BROKEN: Size mismatch. Fix typo.kris2005-02-281-1/+3 * - Update to 2005.01.27pav2005-02-262-9/+6 * Fix a typo in COMMENT.thierry2005-02-211-1/+1 * Add brlcad 7.0.4, CSG modelling system from the US Balisticthierry2005-02-2110-0/+1867 * Documentation tarball was rerolled, new docs were added.krion2005-02-202-4/+28 * Update to version 5.63krion2005-02-203-63/+61 * Update to version 0.40.3krion2005-02-192-4/+4 * Fix build (adding missing dependency)maho2005-02-091-1/+2 * Upgrade to 1.59.0.thierry2005-02-073-6/+8 * Fix typomaho2005-02-061-3/+3 * Fix build with math/spoolesmaho2005-02-063-4/+10 * Update to version 0.40.2krion2005-02-013-9/+9 * Upgrade to 1.2.1.thierry2005-01-253-24/+5 * Add z88 11.0, a compact Finite Element Analysis System.thierry2005-01-2311-0/+545 * Update to version 0.43krion2005-01-229-84/+7 * forgot to add a patch...maho2005-01-201-0/+10 * forgot to add some files...maho2005-01-202-0/+22 * Update to 1.2maho2005-01-2017-301/+336 * Upgrade to 1.2.0.thierry2005-01-189-287/+364 * upgrade to version 21ijliao2005-01-173-273/+11 * Fix the pkg-plist.mezz2005-01-122-0/+2 * Upgrade to 1.58.0.thierry2005-01-083-6/+7 * Fix plist.krion2005-01-041-0/+6 * Broken pkg-plist on alphakris2005-01-021-0/+4 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-012-4/+4 * Update to version 0.40.1krion2004-12-313-9/+10 * Update to version 1.0.0krion2004-12-312-5/+10 * - Disable debug for packagepav2004-12-311-0/+6 * Allow the spice port to be built without X11 support by definingjdp2004-12-304-5/+31 * Upgrade to 1.57.thierry2004-12-233-4/+12 * Add imake build dependency, it is no longer implied by USE_XLIB.lesi2004-12-231-0/+1