|
Post by bigbass on Jul 9, 2020 5:45:32 GMT 1
Hello vovchik here is a complete menubar with icons and callbacks it will get added into the main widget page also but to focus on whats needed it sometimes is better to see it as stand alone code I had to do some hacks for the images to be seen because the code has changed and icons are deprecated Joe and this will test all the new macros too bassix-menubar.tar.gz (3.12 KB)
|
|
|
Post by vovchik on Jul 9, 2020 9:59:52 GMT 1
Dear Joe,
Thanks. Works perfectly. I think a status bar demo might be good, also. And that widget could be used to display track info in bassix_radio, for example.
With kind regards, vovchik
|
|
|
Post by vovchik on Jul 9, 2020 19:10:19 GMT 1
Dear Joe,
Thanks again. In spite of the problems, that was very fast! Now I will play with it...
With kind regards, vovchik
|
|
|
Post by vovchik on Jul 10, 2020 19:08:19 GMT 1
Dear Joe,
Thanks, again. Listview works like a charm. And the INCLUDE keeps the code very clean.
With kind regards, vovchik
|
|
|
Post by vovchik on Jul 11, 2020 12:05:49 GMT 1
Dear Joe, All working. Thanks. With the include, there is no optical distraction, so everything salient is easy to see. I like it. With kind regards, vovchik
|
|
|
Post by vovchik on Jul 11, 2020 19:47:05 GMT 1
Dear Joe, Thanks for that rather comprehensive demo. Most of the common widgets are there, as well as a lot of properties. I will have to do something with them now - i.e. create a little application. With kind regards, vovchik
|
|
|
Post by vovchik on Jul 12, 2020 9:56:12 GMT 1
Dear Joe,
Thanks. Everything working. The callback sub could be simplified, I think, since this seems to work fine:
SUB cnt_cb INCR n SET(label1, "label", STR$(n)) END SUB
With kind regards, vovchik
|
|
|
Post by bigbass on Jul 12, 2020 15:04:05 GMT 1
Hello vovchik
Excellent!
the SET is the way to go there! and I am happy to see that you gave it a try and made it even shorter!! high five 0/ Joe
|
|
|
Post by vovchik on Jul 12, 2020 21:03:48 GMT 1
Dear Joe,
Thanks. It works nicely now when there is a station that has ICY data. If a station does not, it might hang - as if frozen - moving from an ICY-compiant one to a non-ICY, and I then have to do a brute-force kill. Try Beethoven and then MSNBC and then try to change to something else. We need a way to get out of the loop if nothing is being returned, I think. Apart from, it's a very useful and much-needed updating routine for track info.
With kind regards, vovchik
|
|
|
Post by bigbass on Jul 13, 2020 3:10:29 GMT 1
Hello vovchik a right click popup menu using an ebox it is only a super simple demo but I will add it to the radio later with more features always wanted to have this gtk3 option reduced the code down a lot bassix-popup.tar.gz (4.24 KB) Joe
|
|
|
Post by vovchik on Jul 13, 2020 10:43:10 GMT 1
Dear Joe, Thanks for the very concise demo of the popup menu. All working fine. With kind regards, vovchik UPDATE: I just added an image to the ebox for fun. Attachments:popup5-bg.bac.tar.gz (4.6 KB)
|
|
|
Post by vovchik on Jul 13, 2020 17:52:45 GMT 1
Dear Joe, I don't know what went wrong there. Sorry. I hope this new archive is OK (in my previous post). With kind regards, vovchik
|
|
|
Post by bigbass on Jul 13, 2020 18:29:49 GMT 1
Hello vovchik
Thanks it is nice to know we can do the images like this bg_img = PIXBUFF(PIXBUF_MEM(STREAM(bg$)))
chained together in one command
and add svg to the ebox cool
Joe
|
|
|
Post by vovchik on Jul 14, 2020 0:37:19 GMT 1
Dear Joe, Thanks. Here is another version of Bassix Internet Radio. I modded a few things...mainly for optics. It works OK in Mint, but the gui feels a bit sluggish on PI. The track info is now in a tooltip. With kind regards, vovchik
|
|
|
Post by alexfish on Jul 14, 2020 1:19:56 GMT 1
Hi Vovchik
I get warnings on pi3
Converting 'radio-volume-title-token-vov.bac'... done, 377 lines were processed in 0.215 seconds. Compiling 'radio-volume-title-token-vov.bac'... cc `pkg-config --cflags gtk+-3.0` -Wno-deprecated-declarations -c radio-volume-title-token-vov.bac.c cc -o radio-volume-title-token-vov radio-volume-title-token-vov.bac.o `pkg-config --libs gtk+-3.0` -lm Done, program 'radio-volume-title-token-vov' ready.
nothing shows
BR Alex
|
|