gscreen: assorted updates#2356
Conversation
| gi.require_version('Vte', '2.91') | ||
| from gi.repository import Vte as vte | ||
| except: | ||
| LOG.error("**** WARNING GSCREEN: could not import vte terminal - is package installed?") |
There was a problem hiding this comment.
this should be a warning only. Gscreen screens can run without Vte.
I would remove the ****** WARNING GSCREEN. (every where)
| _AUDIO_AVAILABLE = True | ||
| print("**** GSCREEN INFO: audio available!") | ||
| except: | ||
| _AUDIO_AVAILABLE = False |
There was a problem hiding this comment.
LOG.debug for audio available
log warning for missing library
| active_iter = widget.get_active_iter() | ||
| if active_iter: | ||
| print("texst",widget.get_model()[active_iter][0]) | ||
| # print("test",widget.get_model()[active_iter][0]) |
| global gscreen_debug | ||
| if not gscreen_debug: return | ||
| print(str) | ||
| print("**** GSCREEN DEBUG:", str) |
There was a problem hiding this comment.
using LOG is better then '**** GSCREEN DEBUG 'etc
|
I put my 2 cents in but I think you already were thinking the same things. |
53b2a16 to
a806111
Compare
|
I think it is almost good enough, the GUI is almost done as well as the CSS for the default theme. |
|
I just tried it out - that looks a lot more functional. I think it should go in 2.9 though. |
|
Oops, I thought that I had set it for 2.9, just another mistake :) |
12773fb to
910570e
Compare
|
I think this should be ok to go now. |
|
I think that I may have broken something to do with exceptions. |
That was a false alarm, it was caused by issues in SilverDragon. |
|
Should we push this in now Phill? |
|
I found an issue with sounds that I am working on at the moment. |
|
I am not sure if hard coding the sounds directory was a good idea... |
|
I'm sorry I missed this. I think for now hard coding is fine. It does seem in different linux flavours the sounds are in different places. In Qtvcp there is a function for searching known locations for this reason. If you are happy, could you fix the conflict and merge? |
|
Yep, I can do that. I probably need to test it all against the gladevcp changes as well. Off Topic: Any hints on why an xid cannot be found for the hal_gremlin widget when using Glade. This is the line (I think) in gremlin.py: |
|
You are using : |
|
It gives an int of zero. |
|
The window_id is not available till later in the process - probably after first realization. |
|
Thanks, I will have a look tomorrow. |
|
I think squashing would be good. |
71c98e1 to
ec8d5d2
Compare
|
I fixed the conflict and changed sounds so they are not hard coded. I cannot test in Mint so I left the commits separate so you can easily see what I did. If you are happy with it I will squash and push. |
|
Looks good to me. Thank you. |
switch audio play to python3 gstreamer switch notifications to gst notifications switch terminal to spawn_async rather than fork remove some trailing whitespace fix some typos rework some print statements comment out some debug print statements python3 updates silence deprecation messages at startup use markup for dro colors quieten gtk dont know color warnings fix hide-show pointer fix some dialog deprecations utilise the QtVCP logging library use theme from preferences file make glade file gtk3 compliant make a start for gtk3 stylesheet play nicely if audio file is incorrect or missing
ec8d5d2 to
efa40e5
Compare
No description provided.