diff options
author | Jeffrey Stedfast <fejj@helixcode.com> | 2000-10-26 06:34:46 +0800 |
---|---|---|
committer | Jeffrey Stedfast <fejj@src.gnome.org> | 2000-10-26 06:34:46 +0800 |
commit | 1d556fa92a0c277206a203d11d51388b9269c7f7 (patch) | |
tree | e59b535f2bddd263edb5e313402ed3bd887629e6 /mail/subscribe-dialog.c | |
parent | 88e568eae3a3fdd4a8b1d5521bee56b27aacdc86 (diff) | |
download | gsoc2013-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/subscribe-dialog.c')
-rw-r--r-- | mail/subscribe-dialog.c | 36 |
1 files changed, 29 insertions, 7 deletions
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), |