aboutsummaryrefslogtreecommitdiffstats
path: root/mail
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@helixcode.com>2000-10-26 06:34:46 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2000-10-26 06:34:46 +0800
commit1d556fa92a0c277206a203d11d51388b9269c7f7 (patch)
treee59b535f2bddd263edb5e313402ed3bd887629e6 /mail
parent88e568eae3a3fdd4a8b1d5521bee56b27aacdc86 (diff)
downloadgsoc2013-evolution-1d556fa92a0c277206a203d11d51388b9269c7f7.tar.gz
gsoc2013-evolution-1d556fa92a0c277206a203d11d51388b9269c7f7.tar.zst
gsoc2013-evolution-1d556fa92a0c277206a203d11d51388b9269c7f7.zip
Implemented. (subscribe_invert_selection): (was unselect_all) Implemented.
2000-10-25 Jeffrey Stedfast <fejj@helixcode.com> * subscribe-dialog.c (subscribe_select_all): Implemented. (subscribe_invert_selection): (was unselect_all) Implemented. svn path=/trunk/; revision=6181
Diffstat (limited to 'mail')
-rw-r--r--mail/ChangeLog5
-rw-r--r--mail/subscribe-dialog.c36
-rw-r--r--mail/subscribe-dialog.h20
3 files changed, 54 insertions, 7 deletions
diff --git a/mail/ChangeLog b/mail/ChangeLog
index 33fbc08574..bc71c79295 100644
--- a/mail/ChangeLog
+++ b/mail/ChangeLog
@@ -1,3 +1,8 @@
+2000-10-25 Jeffrey Stedfast <fejj@helixcode.com>
+
+ * subscribe-dialog.c (subscribe_select_all): Implemented.
+ (subscribe_invert_selection): (was unselect_all) Implemented.
+
2000-10-25 Dan Winship <danw@helixcode.com>
* message-list.c: Add a "flagged" column, based on the Camel
diff --git a/mail/subscribe-dialog.c b/mail/subscribe-dialog.c
index e6bfed93c2..cf397be3aa 100644
--- a/mail/subscribe-dialog.c
+++ b/mail/subscribe-dialog.c
@@ -1,12 +1,26 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/* subscribe-dialog.c: Subscribe dialog */
/*
- * subscribe-dialog.c: Subscribe dialog
+ * Authors: Chris Toshok <toshok@helixcode.com>
*
- * Author:
- * Chris Toshok (toshok@helixcode.com)
+ * Copyright 2000 Helix Code, Inc. (www.helixcode.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
*
- * (C) 2000 Helix Code, Inc.
*/
+
#include <config.h>
#include <gnome.h>
#include "subscribe-dialog.h"
@@ -217,12 +231,20 @@ static void
subscribe_select_all (BonoboUIComponent *uic,
void *user_data, const char *path)
{
+ SubscribeDialog *sc = (SubscribeDialog*)user_data;
+ ETableScrolled *scrolled = E_TABLE_SCROLLED (sc->folder_etable);
+
+ e_table_select_all (scrolled->table);
}
static void
-subscribe_unselect_all (BonoboUIComponent *uic,
- void *user_data, const char *path)
+subscribe_invert_selection (BonoboUIComponent *uic,
+ void *user_data, const char *path)
{
+ SubscribeDialog *sc = (SubscribeDialog*)user_data;
+ ETableScrolled *scrolled = E_TABLE_SCROLLED (sc->folder_etable);
+
+ e_table_invert_selection (scrolled->table);
}
static void
@@ -582,7 +604,7 @@ static BonoboUIVerb verbs [] = {
/* Edit Menu */
BONOBO_UI_UNSAFE_VERB ("EditSelectAll", subscribe_select_all),
- BONOBO_UI_UNSAFE_VERB ("EditUnSelectAll", subscribe_unselect_all),
+ BONOBO_UI_UNSAFE_VERB ("EditInvertSelection", subscribe_invert_selection),
/* Folder Menu / Toolbar */
BONOBO_UI_UNSAFE_VERB ("SubscribeFolder", subscribe_folders),
diff --git a/mail/subscribe-dialog.h b/mail/subscribe-dialog.h
index 23e220c25d..4950428d8b 100644
--- a/mail/subscribe-dialog.h
+++ b/mail/subscribe-dialog.h
@@ -1,4 +1,24 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
+/*
+ * Authors: Chris Toshok <toshok@helixcode.com>
+ *
+ * Copyright 2000 Helix Code, Inc. (www.helixcode.com)
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Street #330, Boston, MA 02111-1307, USA.
+ *
+ */
#ifndef _SUBSCRIBE_DIALOG_H_