Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 13 Feb 2016, 22:05
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
gtksplash - desktop splash program
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [13 Posts]  
Author Message
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Thu 26 Nov 2015, 17:37    Post subject:  gtksplash - desktop splash program
Subject description: replacemant for gtkdialog-splash
 

gtksplash 0.10

Updated November 28, 2015

This is a splash screen program very similar to gtkdialog-splash first created by mave inspired by my splash messages in the original Lucid quickpet.

It is written in C language and takes advantage of the glib wrappers to the standard glibc string functions. It depends on gtk+-2.0 and gdk which all puppies have. If you have an old puppy you will probably need to compile it. A Makefile is supplied in the source. With devx loaded just type 'make' in the directory containing the source.

The source is available here.

I will attach pets below built in slacko-5.7 (32 bit) and slacko64-6.3.0 (64 bit). They should run in most recent puppies, however if your pup doesn't support xz compressed pets you will have to extract manually. (32 is now gzipped)

It should support all UTF-8 characters, tested with Chinese Traditional. It should also support rtl, as long as your gtk/gdk/pango/glib supports this. It would be a rare case that they don't.

Development started here with thanks to L18L, step and Geoffrey for testing and input and 6502coder for seasonal comic relief Laughing .

It supports almost all the options of gtkdialog-splash but with different options (uses getopt short) so its not a drop in replacement. It will need a wrapper script so if anyone wants to take on that task, be my guest.

Have fun!

Code:
# gtksplash
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -w 'title' : a title for the window; useful with the '-d' option.
     -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.
gtksplash-0.10-i686_s57.pet
Description  32 bit (gzip compressed)
pet

 Download 
Filename  gtksplash-0.10-i686_s57.pet 
Filesize  6.26 KB 
Downloaded  41 Time(s) 
gtksplash-0.10-x86_64_s630.pet
Description  64 bit
pet

 Download 
Filename  gtksplash-0.10-x86_64_s630.pet 
Filesize  5.35 KB 
Downloaded  31 Time(s) 
gtksplash.png
 Description   
 Filesize   4.62 KB
 Viewed   276 Time(s)

gtksplash.png


_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Sat 28 Nov 2015, 06:48; edited 2 times in total
Back to top
View user's profile Send private message Visit poster's website 
phat7

Joined: 05 Jun 2015
Posts: 31

PostPosted: Thu 26 Nov 2015, 21:44    Post subject: Re: gtksplash - desktop splash program
Subject description: replacemant for gtkdialog-splash
 

01micko wrote:
however if your pup doesn't support xz compressed pets you will have to extract manually.
...
Have fun!
Very funny!!! Evil or Very Mad
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Thu 26 Nov 2015, 23:21    Post subject: Re: gtksplash - desktop splash program
Subject description: replacemant for gtkdialog-splash
 

phat7 wrote:
01micko wrote:
however if your pup doesn't support xz compressed pets you will have to extract manually.
...
Have fun!
Very funny!!! Evil or Very Mad

Laughing your response is. It's not hard to unpack a pet, xz or otherwise. Plenty of articles on this forum.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
phat7

Joined: 05 Jun 2015
Posts: 31

PostPosted: Fri 27 Nov 2015, 00:34    Post subject:  

Thanks, great advise!
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 31

PostPosted: Fri 27 Nov 2015, 05:22    Post subject:  

Code:
# gtksplash --help
gtksplash: invalid option -- '-'
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.
gtksplash: invalid option -- 'h'
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.
gtksplash: invalid option -- 'e'
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.
gtksplash: invalid option -- 'l'
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.
gtksplash: option requires an argument -- 'p'
gtksplash-0.9

    gtksplash -s "Some string here"
Options :
    -s 'string' : the string to be displayed
    -c 'color' : either an X color or quoted hex notation
    -k 'font color' : either an X color or quoted hex notation
    -t 'timeout' : in seconds
    -p 'position' : 'tl' (top left), 'tc' (top centre), 'tr' (top right),
      'bl' (bottom left), 'bc' (bottom centre), 'br' (bottom right),
      'm' (near mouse), 'c' (centre of display - default)
    -f 'font' : a ttf font with size, default is "Sans 16"
    -d 'yes' : have the window decorated
    -i '/path/to/icon' : an svg|png|gif icon. No default.
       OR a stock GTK icon - eg: "gtk-apply"

   The splash window can be dismissed by clicking on it.

Can't be so hard either to implement a standard help screen. Plenty of examples available.
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Fri 27 Nov 2015, 05:49    Post subject:  

phat7 wrote:

Can't be so hard either to implement a standard help screen. Plenty of examples available.

So what? Am I an idiot for not providing a standard help screen? (you got the usage anyway) or you for not heeding advice in the first post (of which I supplied a gz version after your complaint).

If you want to troll do so - elsewhere. Or be constructive.

Have a nice day. Smile

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 3239
Location: www.eussenheim.de/

PostPosted: Fri 27 Nov 2015, 06:06    Post subject: gtksplash - desktop splash program  

Very nice now.
Thank you.
gtksplash_deco.png
 Description   
 Filesize   1.86 KB
 Viewed   146 Time(s)

gtksplash_deco.png

Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Fri 27 Nov 2015, 06:08    Post subject: Re: gtksplash - desktop splash program  

L18L wrote:
Very nice now.
Thank you.


I'm open to any suggestion for a different name. Yes, it was not too imaginative Laughing

EDIT.. oh you want to be able to have a title of choice. I understand now . Wink

The program name will change anyway as there is already a program of that name (next version).

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
L18L

Joined: 19 Jun 2010
Posts: 3239
Location: www.eussenheim.de/

PostPosted: Fri 27 Nov 2015, 06:16    Post subject: Re: gtksplash - desktop splash program  

01micko wrote:
.. oh you want to be able to have a title of choice. I understand now . Wink


Yes, choice.
..and title -t might be longer than string -s
Back to top
View user's profile Send private message 
phat7

Joined: 05 Jun 2015
Posts: 31

PostPosted: Fri 27 Nov 2015, 06:18    Post subject:  

Lovely! I take the trouble to unpack and test this gem, I show you a bug and you call me a troll. Did you even bother to look at it? 1 or 0 help screens are normal but not 5 in a row!
Back to top
View user's profile Send private message 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Fri 27 Nov 2015, 06:24    Post subject:  

phat7 wrote:
Lovely! I take the trouble to unpack and test this gem, I show you a bug and you call me a troll. Did you even bother to look at it? 1 or 0 help screens are normal but not 5 in a row!


I don't mind that you report a bug. .. and yes I admit it is a bug and will be fixed. But your first post was not very friendly, when I advised that gz is unsupported.

Usually around here someone will repackage. I did that after your complaint. We do this for free (as you may know) and time is often limited as mine was this morning when I posted.

So either you can try and be smarter than me (maybe you are? I care not about smarts) or you can help out and report bugs (as you did) but in a civil manner.

I hope we understand each other.

I would like your feedback in other areas if you want to continue. If not, I understand.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Fri 27 Nov 2015, 06:33    Post subject: Re: gtksplash - desktop splash program  

L18L wrote:
01micko wrote:
.. oh you want to be able to have a title of choice. I understand now . Wink


Yes, choice.
..and title -t might be longer than string -s


Well it might, but I can restrict it. I'll think about that. Maybe a 1 word title is best, but I'm not sure how that would work with CJK and others.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 8405
Location: qld

PostPosted: Sat 28 Nov 2015, 06:51    Post subject:  

Update to V0.10
- bugfix help screen on option '-h', '--help' - thanks phat7
- new feature "-w 'title'" - title for decorated window - thanks L18L

See Main Post

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [13 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0537s ][ Queries: 12 (0.0040s) ][ GZIP on ]