Reformat javascript and stylesheet, no functional changes

yahoo_weather
Jens Lody 11 years ago
parent 3c95779109
commit 434823ada0
  1. 38
      data/stylesheet.css
  2. 42
      po/update.js
  3. 12
      src/convenience.js
  4. 2507
      src/extension.js
  5. 1360
      src/prefs.js

@ -1,60 +1,60 @@
.weather-current-summarybox {
padding-top:5px;
padding-top:5px;
}
.weather-current-summary {
font-size: 31px;
font-size: 31px;
}
.weather-current-databox {
padding: 5px 15px 0px;
padding: 5px 15px 0px;
}
.weather-current-icon {
padding-right: 30px;
padding-right: 30px;
}
.weather-current-iconbox {
padding-right: 20px;
padding-right: 20px;
}
.weather-icon {
padding-right: 5px;
padding-right: 5px;
}
.weather-icon-rtl {
padding-left: 5px;
padding-left: 5px;
}
.weather-current-databox-captions {
text-align: right;
padding-right: 5px;
color: #999999;
text-align: right;
padding-right: 5px;
color: #999999;
}
.weather-forecast-icon {
padding-right: 15px;
padding-right: 15px;
}
.weather-forecast-databox {
padding-right: 30px;
padding-right: 30px;
}
.weather-forecast-day {
color: #999999;
font-size: 90%;
color: #999999;
font-size: 90%;
}
.weather-sunrise-icon {
padding-right: 5px;
padding-right: 5px;
}
.weather-sunset-icon {
padding-left: 15px;
padding-right: 5px;
padding-left: 15px;
padding-right: 5px;
}
.weather-build-icon {
padding-left: 15px;
padding-right: 5px;
padding-left: 15px;
padding-right: 5px;
}

@ -30,26 +30,24 @@ Gio = imports.gi.Gio;
print("Generate gnome-shell-extension-weather.pot");
var xgettext = Seed.spawn("xgettext -o gnome-shell-extension-weather.pot -L python --from-code=utf-8 --keyword=_ -f POTFILES.in");
if(xgettext.stderr)
print(xgettext.stderr);
else
{
var file = Gio.file_new_for_path(".");
var enumerator = file.enumerate_children("standard::name,standard::size");
var linguas = "";
var n = "";
var i = 0;
while(child = enumerator.next_file())
if(child.get_name().search(/.po$/) != -1)
{
print("Generate "+child.get_name());
linguas += n+(child.get_name().split(".po")[0]);
Seed.spawn("msgmerge -U "+child.get_name()+" gnome-shell-extension-weather.pot");
n = "\n";
i++;
}
if (xgettext.stderr)
print(xgettext.stderr);
else {
var file = Gio.file_new_for_path(".");
var enumerator = file.enumerate_children("standard::name,standard::size");
var linguas = "";
var n = "";
var i = 0;
while (child = enumerator.next_file())
if (child.get_name().search(/.po$/) != -1) {
print("Generate " + child.get_name());
linguas += n + (child.get_name().split(".po")[0]);
Seed.spawn("msgmerge -U " + child.get_name() + " gnome-shell-extension-weather.pot");
n = "\n";
i++;
}
print("Write LINGUAS file");
Gio.simple_write("LINGUAS",linguas);
print("Successfully generated "+i+" entry");
}
print("Write LINGUAS file");
Gio.simple_write("LINGUAS", linguas);
print("Successfully generated " + i + " entry");
}

@ -24,7 +24,6 @@
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
const Gettext = imports.gettext;
const Gio = imports.gi.Gio;
@ -78,15 +77,16 @@ function getSettings(schema) {
let schemaSource;
if (schemaDir.query_exists(null))
schemaSource = GioSSS.new_from_directory(schemaDir.get_path(),
GioSSS.get_default(),
false);
GioSSS.get_default(),
false);
else
schemaSource = GioSSS.get_default();
let schemaObj = schemaSource.lookup(schema, true);
if (!schemaObj)
throw new Error('Schema ' + schema + ' could not be found for extension '
+ extension.metadata.uuid + '. Please check your installation.');
throw new Error('Schema ' + schema + ' could not be found for extension ' + extension.metadata.uuid + '. Please check your installation.');
return new Gio.Settings({ settings_schema: schemaObj });
return new Gio.Settings({
settings_schema: schemaObj
});
}

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save