aboutsummaryrefslogtreecommitdiffstats
path: root/mail/folder-browser.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2001-04-24 05:16:00 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2001-04-24 05:16:00 +0800
commit373b8669f5e8b377ba0d17d938641e8650551abb (patch)
treed63d1ce1faa9fc617c84058fa6ad704580eaf7fc /mail/folder-browser.c
parent23faa57aef230148a5ab1c746a325be4ba029b02 (diff)
downloadgsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.gz
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.bz2
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.lz
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.xz
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.tar.zst
gsoc2013-evolution-373b8669f5e8b377ba0d17d938641e8650551abb.zip
Use the message-browser widget rather than the mail-view window.
2001-04-23 Jeffrey Stedfast <fejj@ximian.com> * mail-callbacks.c (do_view_message): Use the message-browser widget rather than the mail-view window. * mail-view.c: Removed. * folder-browser.c: Added a folder_loaded signal. * message-browser.[c,h]: New window to solve all our message browsing needs. This replaces mail-view.c. * message-list.c (message_list_select_uid): New function needed by the new message-browser window. svn path=/trunk/; revision=9525
Diffstat (limited to 'mail/folder-browser.c')
-rw-r--r--mail/folder-browser.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/mail/folder-browser.c b/mail/folder-browser.c
index 7cf89d58f7..e7416e50b5 100644
--- a/mail/folder-browser.c
+++ b/mail/folder-browser.c
@@ -52,6 +52,13 @@ static void fb_resize_cb (GtkWidget *w, GtkAllocation *a);
static GtkObjectClass *folder_browser_parent_class;
+enum {
+ FOLDER_LOADED,
+ LAST_SIGNAL
+};
+
+static guint folder_browser_signals [LAST_SIGNAL] = {0, };
+
static void
folder_browser_destroy (GtkObject *object)
{
@@ -92,6 +99,16 @@ folder_browser_class_init (GtkObjectClass *object_class)
object_class->destroy = folder_browser_destroy;
folder_browser_parent_class = gtk_type_class (PARENT_TYPE);
+
+ folder_browser_signals[FOLDER_LOADED] =
+ gtk_signal_new ("folder_loaded",
+ GTK_RUN_LAST,
+ object_class->type,
+ GTK_SIGNAL_OFFSET (FolderBrowserClass, folder_loaded),
+ gtk_marshal_NONE__STRING,
+ GTK_TYPE_NONE, 1, GTK_TYPE_STRING);
+
+ gtk_object_class_add_signals (object_class, folder_browser_signals, LAST_SIGNAL);
}
/*
@@ -189,6 +206,8 @@ done:
/* Sigh, i dont like this (it can be set in reconfigure folder),
but its just easier right now to do it this way */
fb->reconfigure = FALSE;
+
+ gtk_signal_emit (GTK_OBJECT (fb), folder_browser_signals [FOLDER_LOADED], fb->uri);
}
gboolean