Permalink
Browse files

pvr: add menu hook to pvr settings

  • Loading branch information...
1 parent 7653cac commit 7002e666afae9bc81471f1a80a168eebd0bcfc73 @FernetMenta FernetMenta committed with opdenkamp Nov 1, 2012
Showing with 18 additions and 1 deletion.
  1. +11 −1 language/English/strings.po
  2. +3 −0 xbmc/settings/GUISettings.cpp
  3. +4 −0 xbmc/settings/GUIWindowSettingsCategory.cpp
@@ -7452,7 +7452,17 @@ msgctxt "#19278"
msgid "Recording error"
msgstr ""
-#empty strings from id 19279 to 19498
+#: xbmc/settings/GUISettings.cpp
+msgctxt "#19279"
+msgid "Client specific"
+msgstr ""
+
+#: xbmc/settings/GUISettings.cpp
+msgctxt "#19280"
+msgid "Client specific settings"
+msgstr ""
+
+#empty strings from id 19281 to 19498
msgctxt "#19499"
msgid "Other/Unknown"
@@ -1005,6 +1005,9 @@ void CGUISettings::Initialize()
AddSeparator(pvrpa, "pvrparental.sep1");
AddString(pvrpa, "pvrparental.pin", 19261, "", EDIT_CONTROL_HIDDEN_NUMBER_VERIFY_NEW, true);
AddInt(pvrpa, "pvrparental.duration", 19260, 300, 5, 5, 1200, SPIN_CONTROL_INT_PLUS, MASK_SECS);
+
+ CSettingsCategory* pvrc = AddCategory(SETTINGS_PVR, "pvrclient", 19279);
+ AddString(pvrc, "pvrclient.menuhook", 19280, "", BUTTON_CONTROL_STANDARD);
}
CGUISettings::~CGUISettings(void)
@@ -1949,6 +1949,10 @@ void CGUIWindowSettingsCategory::OnSettingChanged(CBaseSettingControl *pSettingC
dialog->DoModal();
}
}
+ else if (strSetting.Equals("pvrclient.menuhook") && g_PVRManager.IsStarted())
+ {
+ g_PVRManager.Get().Clients()->ProcessMenuHooks(-1, PVR_MENUHOOK_SETTING);
+ }
else if (strSetting.compare(0, 12, "audiooutput.") == 0)
{
if (strSetting.Equals("audiooutput.audiodevice"))

0 comments on commit 7002e66

Please sign in to comment.