[mythtv-commits] Ticket #5653: Need MythPopupBox::showOkPopup() replacement

MythTV mythtv at cvs.mythtv.org
Wed Aug 27 23:49:16 UTC 2008


#5653: Need MythPopupBox::showOkPopup() replacement
--------------------+-------------------------------------------------------
 Reporter:  nigel   |       Owner:  ijr    
     Type:  patch   |      Status:  new    
 Priority:  minor   |   Milestone:  unknown
Component:  mythtv  |     Version:  unknown
 Severity:  medium  |     Mlocked:  0      
--------------------+-------------------------------------------------------
 There are over 80 popup invocations, mostly informing the user of errors.
 They should be replaced by something that uses libmythui. This is the
 obvious replacement:
 {{{
     MythConfirmationDialog *pop;
     MythScreenStack *stk = GetMythMainWindow()->GetStack("popup stack");
     pop = new MythConfirmationDialog(stk, message, false)
     if (pop->Create())
         stk->AddScreen(pop);
     else
         delete pop;
 }}}
 but 80 copies of that is wasteful. Patch contains a simple global function
 proposal (with some extra error checking)

-- 
Ticket URL: <http://svn.mythtv.org/trac/ticket/5653>
MythTV <http://www.mythtv.org/>
MythTV


More information about the mythtv-commits mailing list