diff options
author | Iain Holmes <iain@src.gnome.org> | 2001-09-28 04:26:47 +0800 |
---|---|---|
committer | Iain Holmes <iain@src.gnome.org> | 2001-09-28 04:26:47 +0800 |
commit | 7bb53c8528b1125546b3ef59118429a54c4f739f (patch) | |
tree | cde7a86d722c2d75fbc5a4a9dfca81d50170be94 /my-evolution/e-summary-preferences.c | |
parent | 9fda060c7ee0efbf34a7d74d44d477ae9a1bf1d0 (diff) | |
download | gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.gz gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.bz2 gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.lz gsoc2013-evolution-7bb53c8528b1125546b3ef59118429a54c4f739f.tar.xz 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/e-summary-preferences.c')
-rw-r--r-- | my-evolution/e-summary-preferences.c | 39 |
1 files changed, 35 insertions, 4 deletions
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; } |