]> spindle.queued.net Git - midori/commitdiff
Show the Feed Panel after adding a new news feed
authorChristian Dywan <christian@twotoasts.de>
Sun, 22 Aug 2010 19:23:54 +0000 (21:23 +0200)
committerChristian Dywan <christian@twotoasts.de>
Mon, 23 Aug 2010 17:38:11 +0000 (19:38 +0200)
extensions/feed-panel/main.c

index 4695225ecded50fba9648a5df728019ebecc2d34..2e46c784f99fb2b734659a0167a9282060ff56fc 100644 (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;