Closed rastersoft closed 2 years ago
Ok thanks a lot for that! Could you rebase on latest code? What are the commands to add a language, I don't know anything about meson-or-else?
Here:
var settings = ExtensionUtils.getSettings('org.gnome.shell.extensions.dock_from_dash');
should not be rather 'dock-from-dash' ?
I think we have to deal first with:
JS ERROR: Invalid work id 3: Error: Invalid work id 3
queueDeferredWork@resource:///org/gnome/shell/ui/main.js:857:18
_queueRedisplay@resource:///org/gnome/shell/ui/dash.js:477:14
I asked Florian about that and he told me it was a signals not cleaned properly bug in GS. But maybe there's a way to deal with it inside the extension?
Maybe for autohide (now defaulted to 300, because it was high for this popup menu issue) we could range from 0 to 1000 with 50 increment?
And could you add the background opacity? I think it will be asked for.
Maybe we could just propose dconf keys but not a pref UI ? I still think this extension has to keep simple. And UI will make users ask for more and more prefs.
Did all the changes. About the language, just create a folder (usually 'build'), type 'meson' to generate the compilation files, and then 'ninja dock-from-dash-update-po', which will re-read all the source files and add the extra sentences. To add a new language, just add the code to the po/LINGUAS file and run again 'ninja dock-from-dash-update-po'. Then just open the new .po file with any editor (or better, with a translation editor like gtranslate) and translate the missing sentences.
I added a shell script to quickly install the extension in the local folder (local_install.sh). It is quite handy.
About adding preferences, as you can see in the prefs.js file, it is extremely easy to add them, because I created some time ago several functions for each type of settings.
Ok I'll have a look about that tomorrow. Thanks for all this work!
Ok, I'm reworking this at the moment (FR, add options, etc.).
If you need a function for a Gtk.Combo, I use one in Desktop Icons NG, very easy.
I've almost finished. I don't need anythnig else that you did push.
Ok that's ok now. What's the command I can execute to import all the folder to github? I did that by hand in the past but I know that's there is a better way...
I don't understand... what do you mean?
You mean "to update your local 'main' folder with the contents in here, the remote one"?
In that case, you just go to main and do a pull
git checkout main
git pull
(in older projects, instead of 'main' it would be 'master', of course... but that's a discussion for another day 🤣 )
Ok i've uploaded by hand, atm. You have to add some ES translation.
I've got a last problem (not a big one, though): I'd like that when the "always show" setting is ON, that the user enter the gnome session with the dock shown. But that's not so easy. When the setting is changed, it's ok, i've done that.
I know almost nothing about git. What means 'go to main' ? I want to upload what is in my laptop to the remote github repo.
Oh, and there is a problem with dconf. I see this: I don't see all what we pushed.
Ok, I modified readme.md (not yet uploaded) since it's no good. My fault.
Mmm... Do you have the code in your laptop in a local GIT repository?
Anyway, if you know almost nothing about GIT, I strongly recommend you to, at least, read a little tutorial that explains you the basic concepts, like what is a branch, what is a commit and what is a repository.
You don't need the fancy things like rebasing, bisecting or reflog... those are "advanced" contents. But it is important to understand the basic things.
I've got this review from JP: You cannot create objects in global scope which is the same as init (line 20 extension.js): https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization
BTW: I checked the README... you don't need to do all that to install the extension, only to run "./local_install.sh".
The other commands are only if you are a translator and want to update a translation.
yes that's what I removed
I've got this review from JP: You cannot create objects in global scope which is the same as init (line 20 extension.js): https://gjs.guide/extensions/review-guidelines/review-guidelines.html#only-use-init-for-initialization
I think that (s)he got confused because you have init() methods in other classes. Just answer that the extension class is called "Extension" and there is no init() method; that the other classes are created inside the enable() method.
Ok, let's plan:
Or, maybe, the error is that I created the "settings" object outside, when it should have been created in the "enable()" method.
The ES translation is already there...
Oh, you updated the sentences! Ok
That's not easy to make a short and accurate sentence
I sent a MR with the updated translations.
Do you have an idea why dconf keys are buggy ?
I'm not sure... I'll check it after lunch
El jue., 31 mar. 2022 14:18, fthx @.***> escribió:
Do you have an idea why dconf keys are buggy ?
— Reply to this email directly, view it on GitHub https://github.com/fthx/dock-from-dash/pull/30#issuecomment-1084505559, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAFMK577SXAE6J2E2SYCWLDVCWJYFANCNFSM5SCLKINQ . You are receiving this because you authored the thread.Message ID: @.***>
v41 (in GS ext website) is an error, I'll revert this later, that works as it.
V41 is because you uploaded 41 times it. The value in the metadata is overwritten whenever you upload a version. It is better to remove it from the metadata and let gnome shell page set the value.
That, I know! :-) But it avoids to get an update from website, no?
I got it for initial showing. It's coming very soon.
But it avoids to get an update from website, no?
What do you mean?
I can die now, the extension has reached a decent state now, I think. https://github.com/fthx/dock-from-dash/commit/a8e7fa12b87f074faad168d9010b9feee38a1ff1 ;-) Could you try this one? It's active in GS website.
When I get a version 40 compiled on my laptop, it could have an uploaded version > 40, thus proposing me an update?
Yes. Since the version in Gnome Extensions is 43 and you have 40 in your system, the page thinks that you have an old version.
Just change the number to 44 and push it into the repository.
Add support for settings (and translation)