diff options
| author | James Meyer <james.meyer@operamail.com> | 2009-08-17 17:16:31 (GMT) | 
|---|---|---|
| committer | James Meyer <james.meyer@operamail.com> | 2009-08-17 17:16:31 (GMT) | 
| commit | 997dbedae9ea47fbb46ec15f8827cf1a8065c11e (patch) | |
| tree | e20e579880f339682d8ede709369769269a365e0 /abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch | |
| parent | da98b0f401f135cb5a04270dbfc46c5dafc43d9d (diff) | |
| download | linhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.zip linhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.tar.gz linhes_pkgbuild-997dbedae9ea47fbb46ec15f8827cf1a8065c11e.tar.bz2 | |
mv-core: bring it up to date so that it works again
Diffstat (limited to 'abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch')
| -rw-r--r-- | abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch | 52 | 
1 files changed, 52 insertions, 0 deletions
| diff --git a/abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch b/abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch new file mode 100644 index 0000000..9cc2044 --- /dev/null +++ b/abs/mv-core/myth/stable/mythtv-release-fixes/reload.patch @@ -0,0 +1,52 @@ +--- programs/mythfrontend/main.cpp	2007-11-13 15:34:40.000000000 +0000 ++++ programs/mythfrontend/main.cpp.new	2007-11-13 15:36:15.000000000 +0000 +@@ -72,6 +72,9 @@ +     RunProgramGuide(chanid, channum); + } +  ++ ++ ++ + void startFinder(void) + { +     RunProgramFind(); +@@ -761,6 +764,7 @@ +     } + } +  ++ + void InitJumpPoints(void) + { +     REG_JUMP("Reload Theme", "", "", reloadTheme); +@@ -784,6 +788,17 @@ +     TV::SetEmbedPbbFunc(PlaybackBox::RunPlaybackBox); + } +  ++ ++void signal_USR1_handler(int){ ++      VERBOSE(VB_GENERAL, "SIG USR1 received, reloading theme");	 ++      RemoteSendMessage("CLEAR_SETTINGS_CACHE"); ++      gContext->ActivateSettingsCache(false); ++      qApp->processEvents(); ++      GetMythMainWindow()->JumpTo("Reload Theme"); ++      gContext->removeCurrentLocation(); ++      gContext->ActivateSettingsCache(true); ++} ++ + int internal_media_init()  + { +     REG_MEDIAPLAYER("Internal", "MythTV's native media player.",  +@@ -1411,7 +1426,12 @@ +  +         if (!RunMenu(themedir)) +             break; +- ++         struct sigaction new_action, old_action; ++        /* Set up the structure to specify the new action. */ ++        new_action.sa_handler = signal_USR1_handler; ++        ::sigemptyset(&new_action.sa_mask); ++        new_action.sa_flags = 0; ++        ::sigaction (SIGUSR1, &new_action, &old_action); +         qApp->setMainWidget(mainWindow); +         qApp->exec(); +     } while (!(exitstatus = handleExit())); | 
