From 1d556fa92a0c277206a203d11d51388b9269c7f7 Mon Sep 17 00:00:00 2001 From: Jeffrey Stedfast Date: Wed, 25 Oct 2000 22:34:46 +0000 Subject: Implemented. (subscribe_invert_selection): (was unselect_all) Implemented. 2000-10-25 Jeffrey Stedfast * subscribe-dialog.c (subscribe_select_all): Implemented. (subscribe_invert_selection): (was unselect_all) Implemented. svn path=/trunk/; revision=6181 --- mail/ChangeLog | 5 +++++ mail/subscribe-dialog.c | 36 +++++++++++++++++++++++++++++------- mail/subscribe-dialog.h | 20 ++++++++++++++++++++ 3 files changed, 54 insertions(+), 7 deletions(-) (limited to 'mail') 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 + + * subscribe-dialog.c (subscribe_select_all): Implemented. + (subscribe_invert_selection): (was unselect_all) Implemented. + 2000-10-25 Dan Winship * 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 * - * 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 #include #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 + * + * 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_ -- cgit