Author |
Message |
fredx181

Joined: 11 Dec 2013 Posts: 3695 Location: holland
|
Posted: Thu 19 Jul 2018, 06:21 Post subject:
|
|
Hi wiak, cast2chrome works with gtkwialog 0.8.4, but seems not with 0.8.5 (see pic).
I'm testing with sh > dash now on Xenialdog, did set up testing repo with upgradable packages (with bashisms problem fixed).
Everything seems fine, except cast2chrome. Are you planning to make a new version ?
If not, I can find some construction with the gtkwialog v0.8.4 installed as well.
Fred
Description |
cast2chrome with gtkwialog 0.8.5 installed |
Filesize |
60.35 KB |
Viewed |
581 Time(s) |

|
_________________ Dog Linux website
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Thu 19 Jul 2018, 08:28 Post subject:
|
|
fredx181 wrote: | Hi wiak, cast2chrome works with gtkwialog 0.8.4, but seems not with 0.8.5 (see pic).
|
Yes, I actually mentioned that I have to fix cast2chrome for the new gtkwialog but I've been too busy to get round to it. I will remove the upload for now because I'm a bit busy on something else at the moment. I know the cast2chrome fix and already made it but have to re-test before uploading the new version. It's because the latest gtkwialog is more complete and cast2chrome was written on the basis of the older only partially complete -b mode.
wiak
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Fri 20 Jul 2018, 04:02 Post subject:
|
|
fredx181 wrote: | Hi wiak, cast2chrome ... seems not with 0.8.5 |
Hi Fred,
I fixed cast2chrome to work with the new gtkwialog 0.8.5 and uploaded it to its usual thread:
http://www.murga-linux.com/puppy/viewtopic.php?t=113314
Tested and should work fine now on bash or dash or ash (out-of-the-box without env var required since uses gtkwialog -b mode).
wiak
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Sat 21 Jul 2018, 02:20 Post subject:
|
|
With no bugs identified this far, I intend to also make dotpets for gtkwialog within the next couple of days (it will be needed, even in Puppy, which always uses bash as its system shell, if you use cast2chrome or the new makegit program I am creating).
wiak
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 3695 Location: holland
|
Posted: Sat 21 Jul 2018, 05:42 Post subject:
|
|
Thanks wiak !
Just to be sure I ask, the new cast2chrome works also OK with the gtkwialog "B" package ?
I made the setup possible for Xenialdog with system-shell using dash, see here:
http://murga-linux.com/puppy/viewtopic.php?p=999553#999553
The new "gtkdialog" package is version 0.8.5-wiak-B, has symlinks gtkdialog4, gtkdialog3 and gtkdialog to gtkwialog.
I think you said earlier that such a construction is OK with you, anyway, just tell me if you'd like it different.
I've decided not to touch Stretch(Dog), mainly because it has some side projects going on, so things may become confusing.
Next will be BionicDog to work on further (probably I'll do new ISO release with the change to dash)
Fred
_________________ Dog Linux website
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Sat 21 Jul 2018, 09:46 Post subject:
|
|
fredx181 wrote: | Just to be sure I ask, the new cast2chrome works also OK with the gtkwialog "B" package? |
Hi Fred,
Yes B version works fine with the new cast2chrome on dash or bash setups. I will probably make that B version the default since as you said it is more convenient in practice. Symlinks you are using are fine.
Also already saw your post concerning dash how to, thanks.
Still busy putting together my frontend GUI for git work more generally (makegit). It's more of a GUI helpér for the most frequently used commands than a traditional git GUI, but I'm using git a lot now on local repositories so need it for convenience and to jog my memory... Will release that sometime this coming week in case anyone else finds it useful as an aid to using and learning git.
wiak
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Sun 05 Aug 2018, 04:47 Post subject:
|
|
Following a forum member request, 32bits and 64bits dotpets suitable for many Pups now released. Find in first post of this thread.
Have also now released dotpet for my wiagit (GUI for git etc) program, which depends on gtkwialog functionality), here:
http://murga-linux.com/puppy/viewtopic.php?p=1000715#1000715
cast2chrome dotpet coming soon.
wiak
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Sat 11 Aug 2018, 22:28 Post subject:
gtkwialog version upgrade to 0.8.6 |
|
gtkwialog upgraded to version 0.8.6.
Forum member step informed me that FatDog findnrun utility had a problem with previous gtkwialog since unitialised variables were resulting in gibberish in <input> entry box result and also overwriting entry <default> value. Also, it is a side-effect of the <input> method used in legacy gtkdialog that default value does not get overwritten when followed by an <input> where the input is an empty string - I wasn't convinced of the correctness of that exception so hadn't implemented it in gtkwialog (didn't even notice it...). However, since that caused a problem, I have now initialised the input as an empty string but made an exception such that input entry is ignored if string empty. Thanks for bringing that issue to my attention step.
Find downloads in first post of this thread. Currently only 64bit and 32bit deb packages. Later I'll upload similar dotpets.
Since DebianDog distributions currently (for ease of setup) prefer -B mode (forced bash on action and input commands without needing GTKWMODE=B in environment), the uploads are compiled for that mode (using github branch bash_default sources). The Github sources do however currently also provide a branch (sh_default) for forced legacy gtkdialog mode (/bin/sh) which will also be updated with the changes for whoever prefers that version.
wiak
Last edited by wiak on Sun 12 Aug 2018, 03:05; edited 1 time in total
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Sun 12 Aug 2018, 03:03 Post subject:
|
|
deb packages and dotpets (32bit and 64bit) for latest 0.8.6 version of gtkwialog now uploaded to first post of this thread.
Refer to post immediately above and first post of thread for relatively minor change (alteration to default handling of empty input strings to match legacy gtkdialog "ignore them" behaviour). Only reported issue with previous gtkwialog version occurred with FatDog findnrun script, but good to fix that for legacy gtkdialog compatibility. More testing and such reports always useful and welcome.
Github repo also now updated with all source changes. I re-organised the Github repo to match the bash_default chosen by DebianDog distributions but hope to reorganise it better some other day (maybe next winter - spring is coming here).
wiak
|
Back to top
|
|
 |
fredx181

Joined: 11 Dec 2013 Posts: 3695 Location: holland
|
Posted: Mon 13 Aug 2018, 07:20 Post subject:
|
|
Thanks wiak and step,
Added new package version gtkdialog 0.8.6-wiak-B (symlinked gtkdialog to gtkwialog) to Xenial and Bionic dog repos now.
Fred
_________________ Dog Linux website
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Mon 13 Aug 2018, 22:27 Post subject:
|
|
gtkwialog version 0.8.7 uploaded to first post of this thread.
Changes
New attribute for <pixmap> implemented:
preserve-aspect-ratio [true|yes|1 or false|no|0]
If attribute not specified, default is: preserve-aspect-ratio="true" (to remain compatible with legacy gtkdialog).
Quote: | The image will be scaled to fit in the requested size, optionally preserving the image's aspect ratio.
When preserving the aspect ratio, a width of -1 will cause the image to be scaled to the exact given height, and a height of -1 will cause the image to be scaled to the exact given width. When not preserving aspect ratio, a width or height of -1 means to not scale the image at all in that dimension. |
Example test script (note that this depends on you putting a test.jpg image file in directory you start script from):
Code: | #! /bin/sh
# Needs test.jpg image in script start directory
export MAIN_DIALOG='
<window>
<vbox>
<pixmap preserve-aspect-ratio="false">
<variable>IMAGEN</variable>
<width>600</width>
<height>60</height>
<input file>./test.jpg</input>
</pixmap>
</vbox>
</window>'
gtkwialog -p MAIN_DIALOG |
Deb and dotpet packages for 32bit (i386) and 64bit (amd64) systems provided in first post of thread. Source changes will be pushed to DD org gtkwialog repo soonish.
Description |
Screenshot comparision for width="600" and height="60" |
Filesize |
29.72 KB |
Viewed |
304 Time(s) |

|
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1478 Location: Ukraine
|
Posted: Tue 14 Aug 2018, 03:22 Post subject:
|
|
Dear wiak,
Great work - the pixmap scales very nicely. It is a useful feature. I haven't looked at your code but I assume you are using gdk_pixbuf_loader. It is showing SVGs properly, too.
With kind regards,
vovchik
|
Back to top
|
|
 |
step
Joined: 04 May 2012 Posts: 1158
|
Posted: Tue 14 Aug 2018, 07:59 Post subject:
|
|
Just to confirm that version 0.8.6 compiles and works on Fatdog721 with GTKWMODE=S findnrun. Thank you wiak for your support and hard work.
_________________ Fatdog64-800|+Packages|Kodi|Findnrun|+forum|gtkmenuplus
|
Back to top
|
|
 |
wiak
Joined: 11 Dec 2007 Posts: 1026 Location: not Bulgaria
|
Posted: Wed 17 Oct 2018, 08:11 Post subject:
|
|
wiak wrote: |
New attribute for <pixmap> implemented:
preserve-aspect-ratio [true|yes|1 or false|no|0][/b]
If attribute not specified, default is: preserve-aspect-ratio="true" (to remain compatible with legacy gtkdialog).
|
Just a note to myself and anyone who happens to use the above preserve-aspect-ratio=false attribute to <pixmap>:
In another column discussing problems with animated gifs not working when scaling being employed I realised I had not inserted code that would keep an attribute setting of preserve-aspect-ratio="false" when the pixmap received a 'refresh' signal. What will currently happen on refresh is that the pixmap will revert to preserve-aspect-ratio="true" (i.e. it will toggle to use original aspect ratio no matter the width/height value being used). Since I find that I rather like that false/true aspect ratio toggle effect (which could be used as an indicator of some kind) I've decided not to insert the extra code (for now at least) that would ensure preserve-aspect-ratio="false" (when set) on refresh mode too. I might change my mind later and insert the extra refresh-related code for logical (?) completeness or if it really seems like a valuable need, but for now it seems like an extra (albeit simple) coding effort for little gain and hence me leaving the current operation as it is for now.
I'm still pondering if there is anything useful extra I could add to gtkwialog (maybe that toggle password visible code I tried experimentally) but I really don't know what and again maybe not worth the effort since main dash/bash handling difference to legacy gtkdialog working well and stable and now proving 100% compatibile in all gtkdialog scripts tried. (Fact is, I created gtkwialog fork because I needed it for my XenialDog wishes and it does the job I wanted of it). I'm also not sure more generally if gtkdialog has a long future ahead - making much more dev work on it (as gtkwialog) worthwhile - since gtkdialog was dropped by the likes of Debian a long time ago - but remains useful in Puppy/Dog world anyway. Despite its limitations, many seem to prefer yad nowadays, and personally I thing IUP is a nicer, more powerful alternative (albeit via Lua rather than sh/bash). And perhaps personally more relevant, I'm tending to enjoy doing less computing/programming in favour of playing online chess! (something I used to play when I was much much younger... and what I find to be an alternative way of keeping the brain cells active though that activity is much more selfish since nothing is produced that others can use unfortunately... but has advantage of no trolling, nothing to argue about, just a case of win, lose, or draw - one same disadvantage though: encourages insomnia).
wiak
|
Back to top
|
|
 |
scsijon
Joined: 23 May 2007 Posts: 1387 Location: the australian mallee
|
Posted: Fri 02 Nov 2018, 03:49 Post subject:
|
|
Just saw this so had to ask,
What happens if bash is not the system default? I know at last one that the default is locked to dash (on purpose and not changeable) for the features it includes.
|
Back to top
|
|
 |
|