Ticket #4877: gallery-eject.patch

File gallery-eject.patch, 1.4 KB (added by Nigel, 12 years ago)

Patch to enable eject in MythGallery 0.21-fixes

  • mythplugins/mythgallery/mythgallery/iconview.cpp

     
    12151215    item = new UIListBtnTypeItem(m_submenuType, tr("Show Devices"));
    12161216    item->setData(new MenuAction(&IconView::HandleShowDevices));
    12171217
     1218    item = new UIListBtnTypeItem(m_submenuType, tr("Eject..."));
     1219    item->setData(new MenuAction(&IconView::HandleEject));
     1220
    12181221    item = new UIListBtnTypeItem(m_submenuType, tr("Import"));
    12191222    item->setData(new MenuAction(&IconView::HandleImport));
    12201223
     
    14001403    }
    14011404}
    14021405
     1406void IconView::HandleEject(void)
     1407{
     1408    myth_eject();
     1409}
     1410
    14031411void IconView::HandleShowDevices(void)
    14041412{
    14051413#ifndef _WIN32
     
    15781586}
    15791587
    15801588
    1581 
    15821589void IconView::ImportFromDir(const QString &fromDir, const QString &toDir)
    15831590{
    15841591    QDir d(fromDir);
  • mythplugins/mythgallery/mythgallery/iconview.h

     
    9090    void HandleDeleteCurrent(void);
    9191    void HandleSlideShow(void);
    9292    void HandleRandomShow(void);
     93    void HandleEject(void);
    9394    void HandleSettings(void);
    9495    void HandleImport(void);
    9596    void HandleShowDevices(void);