aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell.c
diff options
context:
space:
mode:
authorMiguel de Icaza <miguel@gnu.org>2000-01-16 04:08:30 +0800
committerArturo Espinosa <unammx@src.gnome.org>2000-01-16 04:08:30 +0800
commit3c49032de459fa26e8512005b859c8eb8768caf8 (patch)
tree31c06aa6698678a67d41532a60b270fb6b492793 /shell/e-shell.c
parent19a9abb138faf5f77afdca76670a23a476a7a922 (diff)
downloadgsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar.gz
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar.bz2
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar.lz
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar.xz
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.tar.zst
gsoc2013-evolution-3c49032de459fa26e8512005b859c8eb8768caf8.zip
Use e_bar_set_item_data.
2000-01-10 Miguel de Icaza <miguel@gnu.org> * widgets/shortcut-bar/e-shortcut-bar.c (e_shortcut_bar_add_item): Use e_bar_set_item_data. Drop item_url; Require image argument; Require user data argument. 2000-01-09 Miguel de Icaza <miguel@gnu.org> * widgets/shortcut-bar/e-icon-bar.c (e_icon_bar_init): Turn on anti-aliasing. svn path=/trunk/; revision=1573
Diffstat (limited to 'shell/e-shell.c')
-rw-r--r--shell/e-shell.c37
1 files changed, 37 insertions, 0 deletions
diff --git a/shell/e-shell.c b/shell/e-shell.c
index b066985b1c..53a2df771e 100644
--- a/shell/e-shell.c
+++ b/shell/e-shell.c
@@ -9,6 +9,7 @@
*/
#include <config.h>
#include <gtk/gtkmain.h>
+#include <libgnome/libgnome.h>
#include "Evolution.h"
#include "e-util/e-util.h"
#include "e-shell.h"
@@ -142,8 +143,21 @@ init_e_shell_corba_class (void)
}
static void
+es_destroy_default_folders (EShell *eshell)
+{
+ gtk_object_unref (GTK_OBJECT (eshell->default_folders.inbox));
+ gtk_object_unref (GTK_OBJECT (eshell->default_folders.outbox));
+ gtk_object_unref (GTK_OBJECT (eshell->default_folders.drafts));
+ gtk_object_unref (GTK_OBJECT (eshell->default_folders.calendar));
+ gtk_object_unref (GTK_OBJECT (eshell->default_folders.tasks));
+}
+
+static void
e_shell_destroy (GtkObject *object)
{
+ EShell *eshell = E_SHELL (object);
+
+ es_destroy_default_folders (eshell);
GTK_OBJECT_CLASS (e_shell_parent_class)->destroy (object);
}
@@ -213,6 +227,26 @@ e_shell_construct (EShell *eshell, GNOME_Evolution_Shell corba_eshell)
gnome_object_construct (GNOME_OBJECT (eshell), corba_eshell);
}
+static void
+e_shell_setup_default_folders (EShell *eshell)
+{
+ eshell->default_folders.inbox = e_folder_new (
+ E_FOLDER_MAIL, "internal:inbox", _("Inbox"), _("New mail messages"),
+ NULL, "internal:mail_view");
+ eshell->default_folders.outbox = e_folder_new (
+ E_FOLDER_MAIL, "internal:outbox", _("Sent messages"), _("Sent mail messages"),
+ NULL, "internal:mail_view");
+ eshell->default_folders.drafts = e_folder_new (
+ E_FOLDER_MAIL, "internal:drafts", _("Drafts"), _("Draft mail messages"),
+ NULL, "internal:mail_view");
+ eshell->default_folders.calendar = e_folder_new (
+ E_FOLDER_CALENDAR, "internal:personal_calendar", _("Calendar"), _("Your calendar"),
+ NULL, "internal:calendar_daily");
+ eshell->default_folders.tasks = e_folder_new (
+ E_FOLDER_TASKS, "internal:personal_calendar", _("Tasks"), _("Tasks list"),
+ NULL, "internal:tasks_view");
+}
+
EShell *
e_shell_new (void)
{
@@ -228,6 +262,9 @@ e_shell_new (void)
}
e_shell_construct (eshell, corba_eshell);
+
+ e_shell_setup_default_folders (eshell);
+
return eshell;
}