#! /usr/bin/python
+# themeupdate.py for the Openbox window manager
+# This utility is for updating old themes from Blackbox, Fluxbox, and Openbox2
+# to Openbox3
+#
+# Copyright (c) 2003-2007 Dana Jansens
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation; either version 2 of the License, or
+# (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# See the COPYING file for a copy of the GNU General Public License.
+
import sys
data = []
return
else: return
while 1:
- i, key = key_find(data, '.font')
+ i, key, nul = find_key(data, '.font')
if i < 0:
break
out('Removing "' + key + '"\n')
valid = False
def warn_missing(data):
- need = ('window.button.hover.focus', 'window.button.hover.unfocus',
+ need = ('window.active.button.hover', 'window.inactive.button.hover',
'menu.overlap')
for n in need:
i, nul, nul = find_key(data, n)