Ticket #2448: epgresize.patch
File epgresize.patch, 3.1 KB (added by , 18 years ago) |
---|
-
libs/libmythtv/tv_play.cpp
old new void TV::doEditSchedule(int editType) 4690 4690 return; 4691 4691 } 4692 4692 4693 // Resize window to the MythTV GUI size4694 MythMainWindow *mwnd = gContext->GetMainWindow();4695 bool using_gui_size_for_tv = gContext->GetNumSetting("GuiSizeForTV", 0);4696 if (!using_gui_size_for_tv)4697 {4698 mwnd->setGeometry(saved_gui_bounds.left(), saved_gui_bounds.top(),4699 saved_gui_bounds.width(), saved_gui_bounds.height());4700 mwnd->setFixedSize(saved_gui_bounds.size());4701 }4702 4703 4693 // Collect channel info 4704 4694 pbinfoLock.lock(); 4705 4695 uint chanid = playbackinfo->chanid.toUInt(); … … void TV::doEditSchedule(int editType) 4748 4738 DoPause(); 4749 4739 } 4750 4740 4751 // Resize the window back to the MythTV Player size4752 if (!using_gui_size_for_tv)4753 {4754 mwnd->setGeometry(player_bounds.left(), player_bounds.top(),4755 player_bounds.width(), player_bounds.height());4756 mwnd->setFixedSize(player_bounds.size());4757 }4758 4759 4741 // If user selected a new channel in the EPG, change to that channel 4760 4742 if (changeChannel) 4761 4743 EPGChannelUpdate(chanid, channum); -
libs/libmythtv/guidegrid.cpp
old new bool RunProgramGuide(uint &chanid, QStri 48 48 chanid, channum, 49 49 player, allowsecondaryepg, "guidegrid"); 50 50 51 if (!gContext->GetNumSetting("GuiSizeForTV", 0)) { 52 MythMainWindow *mainWindow = gContext->GetMainWindow(); 53 QRect mwRect = mainWindow->geometry(); 54 int x = gContext->GetNumSetting("GuiOffsetX"); 55 int y = gContext->GetNumSetting("GuiOffsetY"); 56 if (mwRect.x() != x || mwRect.y() != y) 57 gg->move(x,y); 58 } 59 51 60 gg->Show(); 52 61 53 62 if (thread) -
libs/libmythtv/progfind.cpp
old new void RunProgramFind(bool thread, bool gg 52 52 "program finder", ggActive); 53 53 54 54 programFind->Initialize(); 55 56 if (!gContext->GetNumSetting("GuiSizeForTV", 0)) { 57 MythMainWindow *mainWindow = gContext->GetMainWindow(); 58 QRect mwRect = mainWindow->geometry(); 59 int x = gContext->GetNumSetting("GuiOffsetX"); 60 int y = gContext->GetNumSetting("GuiOffsetY"); 61 if (mwRect.x() != x || mwRect.y() != y) 62 programFind->move(x,y); 63 } 64 55 65 programFind->Show(); 56 66 57 67 if (thread)