kaer / gnome-shell-extension-modern-calc Goto Github PK
View Code? Open in Web Editor NEWModern Calc will be a full featured calculator for gnome shell.
License: GNU General Public License v2.0
Modern Calc will be a full featured calculator for gnome shell.
License: GNU General Public License v2.0
Hi,
Thanks for writing this extension, it's been useful. However, there's a small annoyance. Each time I login or if I step afk and return to unlock my system I see this on my dual-screen setup.
...and I have to click on the calc icon on the taskbar, to have it show up on my current primary desktop (the left half in that screenshot) and then again to close it.
I'm running gnome-shell-3.10.4-9.fc20.x86_64 on Fedora 20. I'm sorry I can't send in a pull request or even isolate the code that causes this behavior since I don't know much about g-s-extensions but can help with any debugging that you might need me to do.
Hi,
When using Modern Calc with dual monitor system (where primary screen is on the left) the calc appears on the left side of the right monintor. On login it appears and still visible, on toggle on it appears and slides to first monitor, and when toggle off, it slides to the second monitor and go transparent.
The settings of extension modern-calc@kaer had an error:
Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found
Stack trace:
@/home/ubuntu/.local/share/gnome-shell/extensions/modern-calc@kaer/utils.js:31:7
@/home/ubuntu/.local/share/gnome-shell/extensions/modern-calc@kaer/prefs.js:38:7
_getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:59:13
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:74:31
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17
main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5
@<main>:1:43
i find this warning in the log (GS 3.14.2):
gen 17 12:17:31 ArchBox gnome-session[732]: Gjs-Message: JS WARNING: [/home/iacopodeenosee/.local/share/gnome-shell/extensions/modern-calc@kaer/module_data/unit_converter/quantities15.js 348]: function Qty does not always return a value
gen 17 12:17:31 ArchBox gnome-session[732]: Gjs-Message: JS WARNING: [/home/iacopodeenosee/.local/share/gnome-shell/extensions/modern-calc@kaer/module_data/unit_converter/quantities15.js 510]: anonymous function does not always return a value
gen 17 12:17:31 ArchBox gnome-session[732]: Gjs-Message: JS WARNING: [/home/iacopodeenosee/.local/share/gnome-shell/extensions/modern-calc@kaer/module_data/unit_converter/quantities15.js 943]: anonymous function does not always return a value
gen 17 12:17:31 ArchBox gnome-session[732]: Gjs-Message: JS WARNING: [/home/iacopodeenosee/.local/share/gnome-shell/extensions/modern-calc@kaer/module_data/unit_converter/quantities15.js 1277]: anonymous function does not always return a value
gen 17 12:17:31 ArchBox gnome-session[732]: Gjs-Message: JS WARNING: [/home/iacopodeenosee/.local/share/gnome-shell/extensions/modern-calc@kaer/module_data/unit_converter/quantities15.js 1794]: function QtyError does not always return a value
the extension work prefectly, thx.
I modify the metadata.json and add gome 3.16
"shell-version": [ "3.10", "3.12", "3.14", "3.16" ],
After this moderncalc return an error
Error: Expected type interface for Argument for 'file' but got to type 'String'
I am using gnome-shell 3.26 and have been getting warnings like this in syslog:
May 7 08:30:03 oisin gnome-shell[20584]: JS WARNING: [/home/peter/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 88]: Too many arguments to method Clutter.Actor.add_child: expected 1, got 2
and
May 6 16:39:44 oisin gnome-shell[20584]: Some code accessed the property 'ModernCalcModule' on the module 'modern_calc_module'. That property was defined with 'let' or 'const' inside the module. This was previously supported, but is not correct according to the ES6 standard. Any symbols to be exported from a module must be defined with 'var'. The property access will work as previously for the time being, but please fix your code anyway.
I fixed this by:
a) changing all of the add_child calls so they only has the first argument, e.g. this._messageContentGroup.add_child(this._icon);
b) changing the const for the new class defined in the scripts to var.
This left a final message, which was:
May 7 09:09:51 oisin gnome-shell[3184]: JS WARNING: [/home/peter/.local/share/gnome-shell/extensions/modern-calc@kaer/modern_calc.js 52]: reference to undefined property "showMessage"
I commented the line out as there is no showMessage method in utils.js and Notify is not used.
The settings of extension modern-calc@kaer had an error:
Error: Requiring Clutter, version none: Typelib file for namespace 'Clutter' (any version) not found
Stack trace:
@/home/scott/.local/share/gnome-shell/extensions/modern-calc@kaer/utils.js:31:7
@/home/scott/.local/share/gnome-shell/extensions/modern-calc@kaer/prefs.js:38:7
_getExtensionPrefsModule@resource:///org/gnome/shell/extensionPrefs/main.js:59:13
_selectExtension@resource:///org/gnome/shell/extensionPrefs/main.js:74:31
_onCommandLine@resource:///org/gnome/shell/extensionPrefs/main.js:320:17
main@resource:///org/gnome/shell/extensionPrefs/main.js:635:5
@<main>:1:43
I have updated the metadata.json file to include 3.18.
Modern Calc doesn't run. LG reports St.Table is not a constructor.
This extension had the same issue projecthamster/hamster-shell-extension#96.
Whenever I lock the screen and try to login, the screen freezes and have to go to console to kill -s 9 gnome-shell pid to restart gnome-shell and be able to login. I narrowed down the culprit to this extension. Removing this extension allows me to login again after a screen lock.
Here are the logs from journalctl /usr/bin/gnome-shell
:
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 88]: Too many arguments t
o method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 115]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 121]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 127]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 159]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 165]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 171]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 178]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 184]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 190]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 197]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/message_view.js 203]: Too many arguments
to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/calculus_history.js 72]: Too many arguments to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: JS WARNING: [/home/shemgp/.local/share/gnome-shell/extensions/modern-calc@kaer/calculus_history.js 226]: Too many arguments to method Clutter.Actor.add_child: expected 1, got 2
Nov 22 18:37:11 shemgp-x230t gnome-shell[11063]: Attempting to add actor of type 'StBoxLayout' to a container of type 'StBoxLayout', but the actor has already a parent of type 'StBoxLayout'.
Hi, thanks for this great extension. In the current setup, the buttons below the entry space move when the text 'pi' is replaced by the character 'ฯ' and move again when it is deleted. I suggest hardcoding a height for .calc-entry, for example, adding
.display-group .calc-entry {
height:1.4em;
}
in stylesheet.css solves it for me
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.