fixed bug where it would inadvertently clear the new flag on items after

* components/news/nautilus-news.c: (mark_new_items),
	(empty_message_size_allocate):
	fixed bug where it would inadvertently clear the new flag on items
	after refetching.

	fixed bug 8211, criticals when opening the news panel with no
	selected sites by making sure not to set the wrap width to a
	negative number.

	* components/news/news_channels.xml:
	added some new channels suggested by Joshua K.
This commit is contained in:
Andy Hertzfeld 2001-05-01 21:11:07 +00:00
parent 8661476dd6
commit 8528c212e6
3 changed files with 24 additions and 3 deletions

View file

@ -1,3 +1,17 @@
2001-05-01 Andy Hertzfeld <andy@eazel.com>
* components/news/nautilus-news.c: (mark_new_items),
(empty_message_size_allocate):
fixed bug where it would inadvertently clear the new flag on items
after refetching.
fixed bug 8211, criticals when opening the news panel with no
selected sites by making sure not to set the wrap width to a
negative number.
* components/news/news_channels.xml:
added some new channels suggested by Joshua K.
2001-05-01 Zbigniew Chyla <cyba@gnome.pl>
* components/news/nautilus-news.c: Marked two strings for translation.

View file

@ -1237,8 +1237,6 @@ mark_new_items (RSSChannelData *channel_data, GList *old_items)
channel_data->channel_changed = TRUE;
nautilus_news_set_news_changed (channel_data->owner, TRUE);
changed_count += 1;
} else {
item_data->new_item = FALSE;
}
current_item = current_item->next;
}
@ -2109,7 +2107,12 @@ add_channels_to_lists (News* news_data)
static void
empty_message_size_allocate (GtkWidget *widget, GtkAllocation *allocation, News *news_data)
{
eel_label_set_smooth_line_wrap_width (EEL_LABEL (widget), allocation->width - 2*EMPTY_MESSAGE_MARGIN);
int wrap_width;
wrap_width = allocation->width - 2*EMPTY_MESSAGE_MARGIN;
if (wrap_width > 0) {
eel_label_set_smooth_line_wrap_width (EEL_LABEL (widget), allocation->width - 2*EMPTY_MESSAGE_MARGIN);
}
}
/* handle resizing the news display by recalculating our size if necessary */

View file

@ -1,6 +1,7 @@
<?xml version="1.0"?>
<rss_news_channels>
<rss_channel name="Advogato" uri="http://advogato.org/rss/articles.xml" show="false" open="false"/>
<rss_channel name="BSD Today" uri="http://www.bsdtoday.com/backend/bt.rdf" show="false" open="false"/>
<rss_channel name="Beyond 2000" uri="http://beyond2000.com/b2k.rdf" show="false" open="false"/>
<rss_channel name="CNet" uri="http://www.newsisfree.com/export.php3?_f=rss91&amp;_w=f&amp;_i=1443" show="false" open="false"/>
<rss_channel name="CNN" uri="http://www.cnn.com/cnn.rss" show="false" open="false"/>
@ -10,6 +11,8 @@
<rss_channel name="GNOME News" uri="http://news.gnome.org/gnome-news/rdf" show="false" open="false"/>
<rss_channel name="KDE News" uri="http://www.kde.org/news/kdenews.rdf" show="false" open="false"/>
<rss_channel name="Kuro5hin" uri="http://www.kuro5hin.org/backend.rdf" show="false" open="false"/>
<rss_channel name="Linux Games" uri="http://linuxgames.com/bin/mynetscape.pl" show="false" open="false"/>
<rss_channel name="Linux Jobs" uri="http://linux.com/mrn/jobs/latest_jobs.rss" show="false" open="false"/>
<rss_channel name="Linux Planet" uri="http://www.linuxplanet.com/rss" show="false" open="false"/>
<rss_channel name="Linux Today" uri="http://linuxtoday.com/backend/my-netscape.rdf" show="false" open="false"/>
<rss_channel name="Linux Weekly News" uri="http://lwn.net/headlines/rss" show="false" open="false"/>
@ -25,6 +28,7 @@
<rss_channel name="Python.org" uri="http://www.python.org/channews.rdf" show="false" open="false"/>
<rss_channel name="Quotes of the Day" uri="http://www.quotationspage.com/data/mqotd.rss" show="false" open="false"/>
<rss_channel name="The Register" uri="http://www.theregister.co.uk/tonys/slashdot.rdf" show="false" open="false"/>
<rss_channel name="Think Geek" uri="http://www.thinkgeek.com/thinkgeek.rdf" show="false" open="false"/>
<rss_channel name="Salon" uri="http://www.salon.com/feed/RDF/salon_use.rdf" show="false" open="false"/>
<rss_channel name="Scripting News" uri="http://scriptingnews.userland.com/xml/scriptingnews2.xml" show="false" open="false"/>
<rss_channel name="Slashdot" uri="http://www.slashdot.org/slashdot.rdf" show="false" open="false"/>