GTK3: gtkdialog-splash

For discussions about programming, and for programming questions and advice


Moderator: Forum moderators

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

Edited
By talking to you about the button
I think the close button is redundant. Closing will be a mouse click on the widget
Delete: line 58 : <vbox><button><input file stock="gtk-quit"></input> <height>20</height><action type="exit">Exit on click close-box</action></button></vbox>
EDIT: line 61; <action signal="button-release-event">EXIT:exit</action>
Replace the path /usr/share/backgrounds/test.jpg in the below script with /path/to/image of your choice.

Code: Select all

#!/bin/bash
#set -x
# splash window example for GTK3 gtkdialog
# equivalent of GTK2_RC_FILES= (gtk2)
# some gtk3 css examples: https://docs.gtk.org/gtk3/css-overview.html 

# text to display
msg="`echo -e "Besides being able to define color names,
the CSS parser is also able to read
different color expressions, which can
also be nested, providing a rich language
to define colors which are derived from a
set of base colors."`"

########################## gtk3 style theme css ############################ 
# create dir structure for write gtk.css inside
mkdir -p /tmp/gtk3-splash/share/themes/gtk-splash_gtkrc/gtk-3.0
# write gtk.css  

echo '* { 
     font-family: DejaVu Sans;   /* font name */
     font-size: 12pt;                  /* font size */
     font-style: italic;
     font-weight: bold;		 
     color: rgba(255, 255, 255, 1);   /* font color */
     padding: 0px;
     margin: 0px;
}     	 
window {                                                     
     background-image: url("/usr/share/backgrounds/test.jpg");     /* image path */
     box-shadow: 0px 0px 0px 10px rgba(255, 255, 255, 0.5);         /*  box shade color */
     background-repeat: no-repeat;   /* ​​​​​image is not repeated */
     background-position: center;   /* font size */
     background-size: 100% 100%;        /* image size */
     border: 5px ridge;   /* border thickness ,  border style:solid,double,ridge,inset,outset,groove  */
     border-radius: 10px;	     /* corner rounding */ 
     border-color:  #EDAE36;  /* color border */                      
}	
' > /tmp/gtk3-splash/share/themes/gtk-splash_gtkrc/gtk-3.0/gtk.css

export GTK_DATA_PREFIX=/tmp/gtk3-splash   # gtk3 prefix, can be any folder name
export GTK_THEME=gtk-splash_gtkrc   # gtk3 theme name
##################################################################

export GTKDIALOG_SPLASH='
<window title="box_splash" type-hint="6" focus-on-map="false" skip-taskbar-hint="true" icon-name="gtk-preferences" resizable="false" decorated="false">
<vbox>
  <notebook show-tabs="false" show-border="true" space-expand="true" space-fill="true">
    <hbox>
        <vbox>
<pixmap width-request="-1" space-expand="true" space-fill="true">
	  <width>-1</width>
	  <input file stock="gtk-info"></input>
	</pixmap>
</vbox>
      <text justify="0" width-chars="0" wrap="false" space-expand="true" space-fill="true">
        <label>"'$msg'"</label>
      </text>
    </hbox>
  </notebook>
</vbox>
<action signal="button-release-event">EXIT:exit</action>
</window>'

exec gtkdialog --class=gtkdialog-splash -p GTKDIALOG_SPLASH --center --geometry=500x210 
Attachments
снимок.png
снимок.png (113.27 KiB) Viewed 2716 times
Last edited by Sofiya on Wed Oct 12, 2022 11:49 pm, edited 4 times in total.

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

Updated gtk3-splash, attached gtk3splash-mod.tar.gz, many thanks @Sofiya for the input !
EDIT 2022-10-11, Replaced gtk3splash-mod.tar.gz attachment, change:
- In case background image selected, the chosen background color will apply (only) for border color (rather than a fixed border color, as how it was previously), thanks again @Sofiya .
EDIT: Re-attached gtk3splash-mod, one example script had the wrong permissions, fixed.

gtk3splash-mod.tar.gz
gtk3splash-mod
(287.83 KiB) Downloaded 69 times

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Renamed gtkdialog-splash to gtk3-splash and mksplash to mksplash3, to make this work, place these scripts in PATH (e.g. in /usr/local/bin) and run mksplash3 or e.g. gtk3-splash <options>
Some additions:
- option to select background image (e.g. -bgimg /path/to/image.jpg)
- option extra to close the splash screen by mouse click (-close click)
- option to select custom css, e.g. -cssfile /path/to/custom.css (advanced !) for who is familiar with the crazy css options :)
(this will disable some of the other style and font options)

Except for the -cssfile option, the mksplash3 script is updated accordingly.

Example radial gradient (custom.css) included:

EDIT: Forgot to include the script using the custom.css included, place the custom.css in /root to make this work (in below script: -cssfile /root/custom.css)

Code: Select all

#!/bin/bash

# variable SPROG for the program
SPROG="gtk3-splash"

$SPROG -text "Besides being able to define color names,
the CSS parser is also able to read
different color expressions, which can
also be nested, providing a rich language
to define colors which are derived from a
set of base colors." -placement center -close click -align left -bg_gradient_sens medium -icon 'gtk-info' -icon_width 0 -font 'DejaVu Sans' -fontsize 15 -fontstyle italic -fontweight bold -fg '#FFBB34' -bg '#007671' -margin_width 80 -margin_height 50 -timeout 10 -bg_gradient true -border true -wrap true -ontop false -cssfile /root/custom.css 
Attachments
with-custom-css.png
with-custom-css.png (43.29 KiB) Viewed 2668 times
User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

fredx181 wrote: Sun Oct 09, 2022 6:30 pm

Updated gtk3-splash, attached gtk3splash-mod.tar.gz, many thanks @Sofiya for the input !

Thank you very much ! @fredx181 for your efforts and this wonderful masterpiece

the beauty !!!
this is on the desktop with jwm I will install. my puppy is delighted

Attachments
scrot_2022-10-10-12_1366x768.jpg
scrot_2022-10-10-12_1366x768.jpg (101.49 KiB) Viewed 2615 times

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

fredx181 wrote: Sun Oct 09, 2022 6:30 pm

gtk3splash-mod.tar.gz

Hi @fredx181 make a small correction in the gtk3-splash-mod code line: 446,447 - to be able to change the color of the border.
I write like this, I don’t know if it’s right or not? for me it works

Attachments
снимок(3).png
снимок(3).png (145.39 KiB) Viewed 2516 times
снимок(2).png
снимок(2).png (38.02 KiB) Viewed 2561 times
Last edited by Sofiya on Sun Oct 23, 2022 12:28 pm, edited 1 time in total.

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

Hi Sofiya, thanks, yes that would be good, I will fix probably later, need to change the help text and the text in the yad GUI too then (now it says that bg color is disabled when using bg image).

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

Replaced gtk3splash-mod here; viewtopic.php?p=69032#p69032 change is:
- In case background image selected, the chosen background color will apply (only) for border color (rather than a fixed border color, as how it was previously), thanks again @Sofiya .

User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: GTK3: gtkdialog-splash

Post by rockedge »

@fredx181 I am going to repackage KLV-Airedale-beta21 to include the latest version. Should make it a .xbps package.......

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

rockedge wrote: Tue Oct 11, 2022 2:03 pm

@fredx181 I am going to repackage KLV-Airedale-beta21 to include the latest version. Should make it a .xbps package.......

Wait !! :) see here: viewtopic.php?p=69227#p69227
But fine also if you'd like it as a separate thing (as shared here with renamed scripts to: gtk3-splash and mksplash3) then a .xbps package should be OK.

User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: GTK3: gtkdialog-splash

Post by rockedge »

@fredx181 all set! I have not made the xbps package yet, no hurry

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

Attachments
1klv.gif
1klv.gif (48.15 KiB) Viewed 2265 times
Снимок экрана.jpg
Снимок экрана.jpg (16.71 KiB) Viewed 2265 times

KL
PUPPY LINUX Simple fast free

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

I decided to test it on Vanilla Dpup Wayland
the result was amazing,transparency works, just super
for Wayland, the script needs to be changed

Attachments
screenshot.PXkgwEE88Q.png
screenshot.PXkgwEE88Q.png (186.38 KiB) Viewed 1955 times
1234.png
1234.png (212.21 KiB) Viewed 1955 times

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

Sofiya wrote: Sat Nov 05, 2022 8:58 pm

I decided to test it on Vanilla Dpup Wayland
the result was amazing,transparency works, just super
for Wayland, the script needs to be changed

OK, nice, what would be the change in the script then ?

User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

fredx181 wrote: Sun Nov 06, 2022 8:51 am

OK, nice, what would be the change in the script then ?

Code: Select all

#!/bin/bash
#set -x
# splash window example for GTK3 gtkdialog
# equivalent of GTK2_RC_FILES= (gtk2)
# some gtk3 css examples: https://docs.gtk.org/gtk3/css-overview.html 

# text to display
msg="`echo -e "Besides being able to define color names,
the CSS parser is also able to read
different color expressions, which can
also be nested, providing a rich language
to define colors which are derived from a
set of base colors."`"

########################## gtk3 style theme css ############################ 
# create dir structure for write gtk.css inside
mkdir -p /tmp/gtk3-splash/share/themes/gtk-splash_gtkrc/gtk-3.0
# write gtk.css  

echo '* { 
     font-family: DejaVu Sans;             /* font name */
     font-size: 12pt;                     /* font size */
     font-style: italic;                  /* font style */
     font-weight: bold;		         /* font weight */
     color: rgba(255, 255, 255, 1);     /* font color */
}     	 
window {                                                     
     background-image: url("/usr/share/backgrounds/test.jpg");     /* image path */
     background-repeat: no-repeat;   /* ​​​​​image is not repeated */
     background-position: center;   /* font size */
     background-size: 100% 100%;   /* image size */
     border: 5px double;          /* border thickness ,  border style:solid,double,ridge,inset,outset,groove  */
     border-radius: 12px;	     /* corner rounding */ 
     border-color:  #EDAE36;    /* color border */                      
}	
' > /tmp/gtk3-splash/share/themes/gtk-splash_gtkrc/gtk-3.0/gtk.css

export GTK_DATA_PREFIX=/tmp/gtk3-splash   # gtk3 prefix, can be any folder name
export GTK_THEME=gtk-splash_gtkrc   # gtk3 theme name
##################################################################

export GTKDIALOG_SPLASH='
<window title="box_splash" edge="center" layer="overlay" focus-on-map="false" skip-taskbar-hint="true" icon-name="gtk-preferences" resizable="false" decorated="false">
<vbox>
  <notebook show-tabs="false" show-border="true" space-expand="true" space-fill="true">
    <hbox>
        <vbox>
<pixmap width-request="-1" space-expand="true" space-fill="true">
	  <width>-1</width>
	  <input file stock="gtk-info"></input>
	</pixmap>
</vbox>
      <text justify="0" width-chars="0" wrap="false" space-expand="true" space-fill="true">
        <label>"'$msg'"</label>
      </text>
    </hbox>
  </notebook>
</vbox>
<action signal="button-release-event">EXIT:exit</action>
</window>'

GDK_BACKEND=wayland exec gtkdialog --class=gtkdialog-splash -p GTKDIALOG_SPLASH --geometry=500x210 

window position selection

Code: Select all

        edge="center" 
	edge="top"
	edge="topright"
	edge="topleft"
	edge="bottom"
	edge="bottomright"
	edge="bottomleft"

KL
PUPPY LINUX Simple fast free

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

fredx181 wrote: Sun Oct 09, 2022 6:30 pm

Updated gtk3-splash, attached gtk3splash-mod.tar.gz

I was examining this package for potential use.

Forgive me if I am being unnecessarily nervous, but when producing distros for others to use, like alone on my home machine, I get nervous when I come across an odd file.

In the above package there is a 'joke' file called 'warn_msg' in the examples folder.

I don't mind the joke text, but what I'm not happy about is that the file as provided opens as a normal txt file (which is what I would safely expect) but has very odd file permissions.

But if I try to make that (and only that) particular file executable (it is a shell script according to its text) I find the permission do not change. Could you kindly explain what this is all about? I have suspended an iso production I was in the process of making that would have included that gtk3splash contents. It is probably something simple and safe, but I don't have time to sort that out when doing this kind of work.

Some results:

Code: Select all

# ls -al
-rwxr-xr-x 1 root root   605 Oct 10 06:16 css-info
-rwxr-xr-x 1 root root   354 Oct 10 06:17 klv_welcome
---x--x--x 1 root root   416 Oct 10 06:17 warn_msg

EDIT: OK, that threw me. I went to make the warn_msg file executable, but didn't notice it had been made with octal 111. Why has this been done? I can't say I trust a file supplied only with executable permissions and don't find that funny (the text is fine). I was in process of making a new iso to include this, but that odd fine suddenly caused me to suspend my work. I don't like it at all. Fact is such files can be binary:

Can a script be executable but not readable?
https://unix.stackexchange.com/question ... t-readable

The issue is that the script is not what is running, but the interpreter (bash, perl, python, etc.). And the interpreter needs to read the script. This is different from a "regular" program, like ls, in that the program is loaded directly into the kernel, as the interpreter would. Since the kernel itself is reading program file, it doesn't need to worry about read access. The interpreter needs to read the script file, as a normal file would need to be read.

What is a valid use case for an "execute only" file permission?
https://unix.stackexchange.com/question ... permission

Shell scripts require the read permission to be executed, but binary files do not:
...
Displaying the contents of a file and executing them are two different things. With shell scripts, these things are related because they are "executed" by "reading" them into a new shell (or the current one), if you'll forgive the simplification. This is why you need to be able to read them. Binaries don't use that mechanism.

Clarity wrote: Wed Sep 21, 2022 6:31 pm

BTW: I laughed :lol: at the "Warning ..." picture you posted in the opening post. ;) Hope others appreciate the humor, too!

So, no, @Clarity, I do not appreciate the joke (did you even notice the odd permissions on the file?) - especially since I now feel obliged to determine if that file is really just ASCII text, made executable only (as if a binary); I don't have time for this. A check with xxd hex editor program suggests it is indeed just ASCII text, but actually that would prove nothing if really submitted by a hacker. Who made that file in that form and why?

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

Replaced attachment gtk3splash-mod here: https://forum.puppylinux.com/viewtopic. ... 032#p69032 (fixed permissions of warn_msg example script)

wiak wrote:

Forgive me if I am being unnecessarily nervous, ....
.....
.....

Really unnecessary about something that is just a mistake of mine (no idea btw, how it could have happened, the 111 permissions).
IMO you make a lot of fuzz about it, as if I'm deliberately offering some malware or something.
edit: also unnecessary to speak to @Clarity like you did, he probably just saw the picture at post #1 and had to laugh, so what ?!

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

fredx181 wrote: Sun Feb 05, 2023 9:21 am

Replaced attachment gtk3splash-mod here: https://forum.puppylinux.com/viewtopic. ... 032#p69032 (fixed permissions of warn_msg example script)

wiak wrote:

Forgive me if I am being unnecessarily nervous, ....
.....
.....

Really unnecessary about something that is just a mistake of mine (no idea btw, how it could have happened, the 111 permissions).
IMO you make a lot of fuzz about it, as if I'm deliberately offering some malware or something.
edit: also unnecessary to speak to @Clarity like you did, he probably just saw the picture at post #1 and had to laugh, so what ?!

Well, it was a mistake, and I accept that, but whether you think it was a fuss or not, I noticed the 111 permissions immediately (which is common in hacked binary file) and on a warn_msg, which made it all seem like some kind of joke. I didn't know you created the file by the way - seemed to be several contributors sending files to you, or at least that's what thread discussion seemed like. Fine you think it was a fuss, but truth is such file named in that manner and with binary file type permissions on it is an immediate red flag and fool indeed to ignore the possibility of a hack attempt (specially when the file came with that daft warning message, but that's exactly what kid hackers tend to do). Anyway, sorry the discovery worried me, on this business machine such that I double checked the file (but still worred about it BTW). Unfortunate accident with coincidental warning message. Yes, it is odd and unfortunate indeed that the file was given 111 permissions, but I move on.

EDIT: The picture on first post was irrelevant - that was clearly a joke. As I said it was the fact the file also had 111 file permissions. I based my concern on the fact that I know of no way to give a file such permissions without purposively typeing in chmod 111 - only a binary file can be executed without read permissions as far as I know. I'm surprised you don't accept what that could indicate. I know of no hacked forum software contributions, but that is as much luck as anything else in this crazy world whether you think otherwise or not.

If someone ever sent such files to the forum, I would nevertheless warn users to be wary. It could indeed indicate a binary file that looks on the surface like an ASCII text. That's just a fact.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

OK, move on... but....
Would be interesting to know how possibly the file got the 111 permissions. Tried to investigate, but still no idea.
I mostly use geany or leafpad to write a script, save it and make executable with chmod +x , couldn't have typed chmod 111 , I'm absolutely sure of that.

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

fredx181 wrote: Sun Feb 05, 2023 11:08 am

OK, move on... but....
Would be interesting to know how possibly the file got the 111 permissions. Tried to investigate, but still no idea.
I mostly use geany or leafpad to write a script, save it and make executable with chmod +x , couldn't have typed chmod 111 , I'm absolutely sure of that.

I'll tell you why I particularly became alarmed. An event this year was far from normal in terms of a member's behaviour, being who I think we now call 'user1111' or something like that.
I had already tried executing the file on this critical machine and the thought struck me (once I noticed the 111 permissions) what if that user had come in on purpose under an assumed name. It was perfectly possible unfortunately. Clearly if I had know it was your file I wouldn't have worried.

I really do feel we need to keep alert regarding that guy. And more so since you may remember he was extremely concerned about computer security, using all sorts of mechanisms to provide isolation. That kind of knowledge is a double-edged sword; that and the guy appears to bear a grudge against this forum.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

Clarity
Posts: 3842
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1632 times
Been thanked: 526 times

Re: GTK3: gtkdialog-splash

Post by Clarity »

@wiak. I am sorry you found my comment upsetting.

Been to a lot of comedy shows since college. Love them: But recognize too that sometimes audience members (of which I am also one) do not always appreciate the humor.

I just saw the comedic expression and that was my way of laughter at it.

NO foul, I hope.

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

Clarity wrote: Sun Feb 05, 2023 3:07 pm

@wiak. I am sorry you found my comment upsetting.

Been to a lot of comedy shows since college. Love them: But recognize too that sometimes audience members (of which I am also one) do not always appreciate the humor.

I never once said that I found your comment upsetting. Please re-read my comments. What I did not like was, as I repeat, a warn_msg file with 111 permissions - a set of permissions only usable by binary files. Being Scottish I well appreciate and indulge in humour, but I am not idiotic enough to laugh at any file that potentially could damage my system and critical stored work. That the file proves harmless does not change my approach and feelings regarding such files.

Despite the suggestion that I was attacking you for something, I did not. You are welcome to laugh at whatever you wish. I simply responded to your hope others found that message humorous too . The words were fine, the 111 file permissions did not come across as funny to me, but that has nothing to do with you otherwise.

I suppose we do all know that it is unwise to go to an international airport and joke that we have a boom boom device in our luggage? Sometimes humour is not funny.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

wiak wrote:

I suppose we do all know that it is unwise to go to an international airport and joke that we have a boom boom device in our luggage? Sometimes humour is not funny.

Don't know what's with you today, what you wrote is again too much fuss IMO, when I posted that 'silly' picture in post #1, I didn't know about the "boom boom" 111, so... bad comparison IMHO.
Also, combined with that, disappointing, not a single word of feedback about the application itself (which this thread is about), that Sofiya and me worked on.

Clarity
Posts: 3842
Joined: Fri Jul 24, 2020 10:59 pm
Has thanked: 1632 times
Been thanked: 526 times

Re: GTK3: gtkdialog-splash

Post by Clarity »

IN the opening post, this is shared

... GTK2 may be supported for some time, but there will probably come a day that will be completely replaced by GTK3 (or GTK4 :?: ). ...

This thread is a good timing improvement as PUPs are moving on to GTK3.

Seems that some time ago, one member suggested that PUPs move directly to GTK4 and bypass any agony in GTK3 such that the focus would be to avoid work to get to GTK4 (several/many distros already have moved to GTK4, with ARCH being one of them). I think the suggestion was that if effort is needed to move from GTK2, to use that effort to go directly to the then current GTK4 versus the 1st effort to go to GTK3 only to follow and do it again to go to GTK4. It would certainly have avoided any future confusion of apps in GTK2, GTK3, and GTK4 as there would NOT have been a GTK3 in Puppyland; there ONLY would have been the old GTK2 and the newer GTK4..

This was rejected by WoofCE and maybe today, 2023, this might be taken up and added to the maturity that they are trying to bring to the modern PUP distros.

Anyway, this thread's effort to PUPs movement, even to GTK3, I'm sure, should be a welcomed one.

Thanks as this community continues discoveries and improvements.

P.S. THIS POST does NOT beg a justification from anyone! We are already on the GTK3 path!

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

fredx181 wrote: Sun Feb 05, 2023 5:14 pm

, not a single word of feedback about the application itself (which this thread is about), that Sofiya and me worked on.

The app looks very useful, but I haven't really experimented with it. I was busy putting it into KLA for next iso release because Sofiya posted in KLA thread suggesting its inclusion. I hadn't been following its development so didn't know Sofiya was also involved in the development. Was just following thread link Sofiya posted and was making sure scripts were executable prior to building the iso. There is nothing got into me aside from busy trying to finish iso release without too many outstanding bugs.

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
rockedge
Site Admin
Posts: 6553
Joined: Mon Dec 02, 2019 1:38 am
Location: Connecticut,U.S.A.
Has thanked: 2757 times
Been thanked: 2629 times
Contact:

Re: GTK3: gtkdialog-splash

Post by rockedge »

I use it to make splash notifications for toggle switches status indication. So far I have not explored it's full potential but I am glad it's included in KLV-Airedale-rc10
We call it mksplash in KLV.

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: GTK3: gtkdialog-splash

Post by MochiMoppel »

Again downloaded gtk3splash.tar.gz.
Issues addressed in /viewtopic.php?p=67429#p67429 seem to be fixed.
Short test in F98-CE which comes with GTK2 gtkdialog, The downloaded package includes a gtkdialog binary and the ReadMe.txt claims that it is "built with GTK3, 64-bit". However it seems to be 32bit, so no use for me.

Still good for a gtkdialog-splash -text Hello test. Works.
What I find odd are some of the defaults, for example
-ontop false makes absolutely no sense for a splash window. These windows are meant to carry important messages which by all means should come to the attention of the user. Not so with -ontop false . If another on-top window is already displayed then gtkdialog-splash will open under the existing window. On the other hand the original binary yaf-splash, which gtkdialog-splash falsely claims to be compatible with, was truly always on top - even on top of fullscreen windows. There wasn't even a way to change this.

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

MochiMoppel wrote:

The downloaded package includes a gtkdialog binary and the ReadMe.txt claims that it is "built with GTK3, 64-bit". However it seems to be 32bit, so no use for me.

Strange.... it works for me on 64-bit and file tells me it's x86-64.
file ./gtkdialog
./gtkdialog: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked, interpreter /lib64/ld-linux-x86-64.so.2, for GNU/Linux 2.6.32, BuildID[sha1]=49bf1cecf175247270b59e2326846ac73e6bc1fc, stripped

It needs to be first in PATH (so that it overrides existing gtkdialog) to be able to use it (together with the other scripts), goes also for gtkdialog-splash (or gtk3splash as it's called in gtk3splash-mod).
Yes, you're right about the -ontop, should be default true.

User avatar
wiak
Posts: 4082
Joined: Tue Dec 03, 2019 6:10 am
Location: Packing - big job
Has thanked: 65 times
Been thanked: 1208 times
Contact:

Re: GTK3: gtkdialog-splash

Post by wiak »

So I was in a bit of a rough mood yesterday. I'm just coming out of a bout of what might be slight blood poisoning from an infected mosquito bite, so shouldn't have been continuing with iso preparation, and that file rocked me a bit. Best to be careful right enough, but I realise now my panic was unwarranted, so sorry Fred since you got the brunt of it!

https://www.tinylinux.info/
DOWNLOAD wd_multi for hundreds of 'distros' at your fingertips: viewtopic.php?p=99154#p99154
Αξίζει να μεταφραστεί;

User avatar
MochiMoppel
Posts: 1239
Joined: Mon Jun 15, 2020 6:25 am
Location: Japan
Has thanked: 21 times
Been thanked: 440 times

Re: GTK3: gtkdialog-splash

Post by MochiMoppel »

fredx181 wrote: Mon Feb 06, 2023 9:07 am

Strange.... it works for me on 64-bit and file tells me it's x86-64.

Seems I got confused. It indeed reports 64bit but it doesn't work in F96-CE:

Code: Select all

# gtkdialog -help
gtkdialog: error while loading shared libraries: libvte-2.91.so.0: cannot open shared object file: No such file or directory

Another suggestion, if I may: Make the text selectable. I find it frustrating when a message window doesn't allow to copy the displayed text and I have to resort to a screenshot. AFAIK gxmessage is the only dialog tool that allows copying OOTB. In gtktdialog this can be achieved with text attributes selectable="true" can-focus="false"

Last edited by MochiMoppel on Mon Feb 06, 2023 11:03 am, edited 1 time in total.
User avatar
Sofiya
Posts: 2286
Joined: Tue Dec 07, 2021 9:49 pm
Has thanked: 1477 times
Been thanked: 1536 times

Re: GTK3: gtkdialog-splash

Post by Sofiya »

MochiMoppel wrote: Mon Feb 06, 2023 10:30 am
fredx181 wrote: Mon Feb 06, 2023 9:07 am

Strange.... it works for me on 64-bit and file tells me it's x86-64.

Seems I got confused. It indeed reports 64bit but it doesn't work in F96-CE:

Code: Select all

# gtkdialog -help
gtkdialog: error while loading shared libraries: libvte-2.91.so.0: cannot open shared object file: No such file or directory

need to install

Attachments
libvte-2.91-0_0.68.0-1_amd64.deb.false.gz
(208.85 KiB) Downloaded 53 times

KL
PUPPY LINUX Simple fast free

User avatar
fredx181
Posts: 3085
Joined: Tue Dec 03, 2019 1:49 pm
Location: holland
Has thanked: 376 times
Been thanked: 1315 times
Contact:

Re: GTK3: gtkdialog-splash

Post by fredx181 »

MochiMoppel wrote:

Another suggestion, if I may: Make the text selectable. I find it frustrating when a message window doesn't allow to copy the displayed text and I have to resort to a screenshot. AFAIK gxmessage is the only dialog tool that allows copying OOTB. In gtktdialog this can be achieved with text attributes selectable="true" can-focus="false"

Thanks. Tried that. Works "sort of" but I expected that the text could be highlighted (but cannot) and then copied, but seems to work different, (does bring up small menu at right-click).
Perhaps works different with gtkdialog built with gtk2.

gtk3splash right-click to copy
gtk3splash right-click to copy
2023-02-06_19-38-52.png (73.83 KiB) Viewed 1451 times
Post Reply

Return to “Programming”