aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2001-09-28 04:26:47 +0800
committerIain Holmes <iain@src.gnome.org>2001-09-28 04:26:47 +0800
commit7bb53c8528b1125546b3ef59118429a54c4f739f (patch)
treecde7a86d722c2d75fbc5a4a9dfca81d50170be94 /my-evolution
parent9fda060c7ee0efbf34a7d74d44d477ae9a1bf1d0 (diff)
downloadgsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.gz
gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.zst
gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.zip
Don't turn on the -> if the selected row is already added.
svn path=/trunk/; revision=13196
Diffstat (limited to 'my-evolution')
-rw-r--r--my-evolution/ChangeLog8
-rw-r--r--my-evolution/e-summary-preferences.c39
2 files changed, 43 insertions, 4 deletions
diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog
index bcbae10943..0599fdb8f9 100644
--- a/my-evolution/ChangeLog
+++ b/my-evolution/ChangeLog
@@ -1,3 +1,11 @@
+2001-09-27 Iain Holmes <iain@ximian.com>
+
+ * e-summary-preferences.c: (rdfs[]): Removed the broken RDFs
+ (mail_all_select_row_cb): Don't turn on the -> button if the folder is
+ already added.
+ (rdf_all_select_row_cb): Ditto
+ (weather_all_select_row_cb): Ditto
+
2001-09-26 Iain Holmes <iain@ximian.com>
* *.[ch]: Add correct approved copyright notices.
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index 8f90f1923f..5dc489e7d0 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -433,7 +433,6 @@ struct _RDFInfo {
static struct _RDFInfo rdfs[] = {
{"http://advogato.org/rss/articles.xml", "Advogato"},
- {"http://www.appwatch.com/appwatch.rdf", "Appwatch"},
{"http://barrapunto.com/barrapunto.rdf", "Barrapunto"},
{"http://barrapunto.com/gnome.rdf", "Barrapunto GNOME"},
{"http://www.bsdtoday.com/backend/bt.rdf", "BSD Today"},
@@ -463,14 +462,11 @@ static struct _RDFInfo rdfs[] = {
{"http://www.python.org/channews.rdf", "Python.org"},
{"http://www.quotationspage.com/data/mqotd.rss", N_("Quotes of the Day")},
{"http://www.salon.com/feed/RDF/salon_use.rdf", "Salon"},
- {"http://www.securityfocus.com/topnews-rss.html", "Security Focus"},
- {"http://www.segfault.org/stories.xml", "Segfault"},
{"http://slashdot.org/slashdot.rdf", "Slashdot"},
{"http://www.theregister.co.uk/tonys/slashdot.rdf", "The Register"},
{"http://www.thinkgeek.com/thinkgeek.rdf", "Think Geek"},
{"http://www.webreference.com/webreference.rdf", "Web Reference"},
{"http://redcarpet.ximian.com/red-carpet.rdf", "Ximian Red Carpet New"},
- {"http://www.zope.org/SiteIndex/news.rss", "Zope"},
{NULL, NULL}
};
@@ -660,6 +656,21 @@ mail_all_select_row_cb (GtkCList *clist,
GdkEvent *event,
PropertyData *pd)
{
+ ESummaryMailRowData *rd;
+ GList *p;
+
+ rd = gtk_clist_get_row_data (GTK_CLIST (pd->mail->all), row);
+ if (rd == NULL) {
+ return;
+ }
+
+ for (p = pd->summary->preferences->display_folders; p; p = p->next) {
+ if (strcmp (rd->uri + 7, p->data) == 0) {
+ /* Already in list */
+ return;
+ }
+ }
+
gtk_widget_set_sensitive (pd->mail->add, TRUE);
}
@@ -761,6 +772,19 @@ rdf_all_select_row_cb (GtkCList *clist,
GdkEvent *event,
PropertyData *pd)
{
+ struct _RDFInfo *info;
+ GList *p;
+
+ info = gtk_clist_get_row_data (GTK_CLIST (pd->rdf->all), row);
+ g_return_if_fail (info != NULL);
+
+ for (p = pd->summary->preferences->rdf_urls; p; p = p->next) {
+ if (strcmp (p->data, info->url) == 0) {
+ /* Found it already */
+ return;
+ }
+ }
+
gtk_widget_set_sensitive (pd->rdf->add, TRUE);
}
@@ -954,6 +978,7 @@ weather_all_select_row_cb (GtkCTree *ctree,
PropertyData *pd)
{
ESummaryWeatherLocation *location;
+ GList *p;
location = gtk_ctree_node_get_row_data (GTK_CTREE (pd->weather->all), row);
if (location == NULL) {
@@ -961,6 +986,12 @@ weather_all_select_row_cb (GtkCTree *ctree,
return;
}
+ for (p = pd->summary->preferences->stations; p; p = p->next) {
+ if (strcmp (location->code, p->data) == 0) {
+ return; /* Already have it */
+ }
+ }
+
gtk_widget_set_sensitive (pd->weather->add, TRUE);
pd->weather->selected_node = row;
}
title='2007-01-18 10:38:29 +0800'>2007-01-181-0/+7 * Add the changes brought in by the GNOME 2.16 import.marcus2006-10-141-0/+8 * Document bsd.port.mk 1.544 and associated changes.linimon2006-10-011-0/+16 * * Add PKGVERSION to bsd.port.mk [1]linimon2006-09-151-0/+14 * The following functional changes were made to bsd.sites.mk:sat2006-09-031-0/+13 * Document bsd.sites.mk macro magicsat2006-08-051-0/+27 * Fix a typo and refrase a sentense to be less ambiguous in theerwin2006-08-041-2/+3 * Add a note for the latest patchset which adds DESTDIR support.erwin2006-08-041-2/+35 * Document the latest bsd.port.mk checkin.linimon2006-07-181-0/+12 * Add latest changes in bsd.*.mk.linimon2006-07-051-0/+22 * Belatedly add the description of the most recent bsd.*.mk changes.linimon2006-06-191-1/+39 * Document the subset of changes committed to bsd.port.mk that are ofkris2006-05-241-0/+33 * Drop description of PERL_(BUILD|RUN)_DEPENDS since they were removedkris2006-02-231-3/+0 * Another round of markup and spelling nits.danfe2006-01-271-15/+15 * - Announce 20060121 infrastructure changespav2006-01-221-0/+27 * Remove trailing spaces.krion2005-11-131-2/+2 * * Add bsd.database.mk [1]clement2005-11-081-0/+46 * Add new GNOME 2.12. porting changes.marcus2005-11-051-0/+21 * Mega-patch to cleanup the ports infrastructure regarding our linux bits:netchild2005-06-181-0/+16 * Add notes about changes introduced in bsd.port.mk rev. 1.512krion2005-06-101-1/+39 * Add an entry for the CVSup "refuse" file bug fix.jdp2005-03-271-0/+11 * Add an entry for the recent gstreamer-plugin-gconf split.kwm2005-03-211-0/+6 * Add an entry for the recent bsd.gnome.mk changes.marcus2005-03-201-0/+11 * Add information about IGNORE_MASTER_SITE_xxxedwin2005-03-141-0/+18 * - Add note about changes to gstreamer-plugins and gnomehier ports.ahze2005-03-131-0/+24 * - Don't pretend these changes were made a month agopav2005-02-091-1/+1 * Document changes committed in bsd.port.mk revision 1.508krion2005-02-071-0/+45 * Say hello to the linux mega patch, it consolidates our linux bits anetchild2005-01-011-0/+4 * Add the changes just committed.krion2004-12-101-0/+40 * Add the changes just committed.krion2004-11-191-0/+40 * 20041116:mezz2004-11-161-0/+6 * Since INDEX version in CVS is always too old, portmgr decided tokrion2004-11-131-0/+6 * Add information about GConf schema handled has been changed by use the newmezz2004-11-101-0/+6 * Move devel/autoconf->devel/autoconf253 and devel/automake->devel/automake15ade2004-08-041-0/+8 * Err, today's the 23rd, not the 21st.anholt2004-07-241-1/+1 * Add instructions for the X.Org update to UPDATING, and make the ones in CHANGESanholt2004-07-241-17/+5 * - Add the X_WINDOW_SYSTEM={xorg,xfree86-4,xfree86-3} variable to bsd.port.mk,anholt2004-07-241-0/+20 * Grammar fixes.ale2004-07-201-5/+5 * Inform users and developers about the new PHP infrastructure.ale2004-07-191-0/+28 * Note that OpenLDAP version 2.2 is now the default.`eik2004-07-171-0/+10 * Document the new libtool changes.marcus2004-07-101-0/+24 * Add a blurb about the new GConf schema handling style. More details aremarcus2004-07-081-0/+8 * USE_SIZE author was trevor, not erwin as I mentioned.krion2004-07-061-1/+1 * Introduce new AUTHOR: line.krion2004-07-061-1/+15 * Document the user-relevant changes just committed.kris2004-06-101-1/+100 * Information regarding the great autotools update of July 4 2004ade2004-06-051-0/+51 * . Add some information regarding the latest changes to bsd.java.mkglewis2004-04-201-0/+24 * Augment Trevor's GNOME instructions by linking to the GNOME porting guide.marcus2004-04-151-0/+4 * Mention USE_GNOME=gtk20 (gleaned from marcus' commits to the nogger, gringotts,trevor2004-04-151-0/+5 * Correct the name of one of the _DEPRECATED macros.marcus2004-04-091-1/+1 * Let other porters know about the recent changes in glib20/gtk20 with regard tomarcus2004-04-091-0/+16 * . Document the bsd.java.mk update.glewis2004-04-041-2/+63 * Add instructions for fixing portability issues with the new freetype2.marcus2004-03-171-0/+15 * Add detail about recent autotools changes.ade2004-03-151-0/+12 * semi-document MASTER_SITE_SOURCEFORGE_EXTENDEDeik2004-03-091-0/+9 * Reorganize the information about the ruby upgrade to 1.8 on i386.knu2004-03-031-34/+2 * Add notes about ruby's major upgrade to 1.8 on the i386 platform.knu2004-03-031-0/+44 * Mozilla will now default to using GTK2, and will only compileadamw2004-02-181-0/+34 * Add the latest round of bsd.*.mk changes.marcus2004-02-041-0/+152 * Replace spaces by taberwin2004-02-011-1/+1 * Add entry about USE_SIZEerwin2004-01-291-0/+9