Show the Feed Panel after adding a new news feed

This commit is contained in:
Christian Dywan 2010-08-22 21:23:54 +02:00
parent 233ff2602d
commit 99a9cfc34c

View file

@ -336,7 +336,11 @@ secondary_icon_released_cb (GtkAction* action,
if ((feed = feed_add_item (priv->feeds, uri)))
{
/* FIXME: Let the user know that a feed was added */
MidoriPanel* panel = katze_object_get_object (priv->browser, "panel");
gint i = midori_panel_page_num (panel, priv->panel);
midori_panel_set_current_page (panel, i);
gtk_widget_show (panel);
g_object_unref (panel);
feed_save_items (priv->extension, priv->feeds);
update_feed (priv, KATZE_ITEM (feed));
return TRUE;