Skip to content

Commit

Permalink
[gui] bump skin version to 5.3.0, remove backward compatibility code …
Browse files Browse the repository at this point in the history
…in the keyboard dialog as changes are no longer BW compat. Version 5.0.0 skins will still load, but should be updated to 5.3.0 in preparation for Helix
  • Loading branch information
Jonathan Marshall committed Aug 11, 2014
1 parent 01308f5 commit 97dedaa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 20 deletions.
2 changes: 1 addition & 1 deletion addons/xbmc.gui/addon.xml
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<addon id="xbmc.gui" version="5.2.0" provider-name="Team XBMC">
<addon id="xbmc.gui" version="5.3.0" provider-name="Team XBMC">
<backwards-compatibility abi="5.0.0"/>
<requires>
<import addon="xbmc.core" version="0.1.0"/>
Expand Down
20 changes: 1 addition & 19 deletions xbmc/dialogs/GUIDialogKeyboardGeneric.cpp
Expand Up @@ -21,7 +21,6 @@
#include "interfaces/AnnouncementManager.h"
#include "input/XBMC_vkeys.h"
#include "guilib/GUIEditControl.h"
#include "guilib/GUILabelControl.h" // for backward compatibility
#include "guilib/GUIWindowManager.h"
#include "guilib/Key.h"
#include "guilib/LocalizeStrings.h"
Expand All @@ -33,7 +32,6 @@
#include "utils/RegExp.h"
#include "utils/StringUtils.h"
#include "ApplicationMessenger.h"
#include "addons/Skin.h" // for backward compatibility

#define BUTTON_ID_OFFSET 100
#define BUTTONS_PER_ROW 20
Expand All @@ -50,7 +48,6 @@
#define CTL_BUTTON_CLEAR 308
#define CTL_BUTTON_LAYOUT 309

#define CTL_LABEL_EDIT 310 // backward compatibility
#define CTL_LABEL_HEADING 311
#define CTL_EDIT 312

Expand All @@ -75,23 +72,8 @@ CGUIDialogKeyboardGeneric::CGUIDialogKeyboardGeneric()

void CGUIDialogKeyboardGeneric::OnWindowLoaded()
{
CGUIEditControl *edit = (CGUIEditControl *)GetControl(CTL_EDIT);
if (!edit && g_SkinInfo && g_SkinInfo->APIVersion() < ADDON::AddonVersion("5.2.0"))
{
// backward compatibility: convert label to edit control
CGUILabelControl *label = (CGUILabelControl *)GetControl(CTL_LABEL_EDIT);
if (label && label->GetControlType() == CGUIControl::GUICONTROL_LABEL)
{
// create a new edit control positioned in the same spot
edit = new CGUIEditControl(label->GetParentID(), CTL_EDIT, label->GetXPosition(), label->GetYPosition(),
label->GetWidth(), label->GetHeight(), CTextureInfo(), CTextureInfo(),
label->GetLabelInfo(), "");
AddControl(edit);
m_defaultControl = CTL_EDIT;
m_defaultAlways = true;
}
}
// show the cursor always
CGUIEditControl *edit = (CGUIEditControl *)GetControl(CTL_EDIT);
if (edit)
edit->SetShowCursorAlways(true);

Expand Down

0 comments on commit 97dedaa

Please sign in to comment.