Skip to content
  • Mark McLoughlin's avatar
    Re-work so that it returns the newly created EggRecentViewGtk and allows · d8c92d08
    Mark McLoughlin authored
    2005-05-02  Mark McLoughlin  <mark@skynet.ie>
    
            * panel-recent.[ch]: (panel_recent_append_documents_menu):
            Re-work so that it returns the newly created EggRecentViewGtk
            and allows it to be re-used by passing it back in as a parameter.
    
            * panel-menu-items.c:
            (panel_place_menu_item_create_menu): hold a ref on the
            EggRecentViewGtk and re-user when re-creating the menu.
            (panel_place_menu_item_finalize): unref the view.
    
            * egg-recent-view-gtk.c:
            (egg_recent_view_gtk_clear),
            (egg_recent_view_gtk_set_list): don't barf if view->menu is NULL.
            (egg_recent_view_gtk_finalize): don't unref the menu.
            (egg_recent_view_gtk_set_menu): don't take a ref on the menu.
            There's no point in us updating a menu which has been destroyed.
    d8c92d08