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 Fri 24 Oct 2014, 21:03
All times are UTC - 4
 Forum index » Advanced Topics » Puppy Projects
gtkdialog splash
Moderators: Flash, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 05 Jun 2010, 04:24    Post_subject:  gtkdialog splash  

GtkDialog-Splash is gonna replace yaf-splash inPuppy 5

Download here:

http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=29620

Apparently this does not support 4.x

I would love to make this work in 4.x... Anyone know why it doesn't work in 4.x?
I'd be happy to try and make it work, with a push in the right direction..

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sat 05 Jun 2010, 11:18    Post_subject:  

going just with the link you posted

make sure your path isnt different than mine
#
Code:
which yaf-splash

/usr/X11R7/bin/yaf-splash


#-------------------------------------------------------------------
#rename it as a safety you have a backup now if something goes wrong
Code:
mv /usr/X11R7/bin/yaf-splash /usr/X11R7/bin/yaf-splash.orig


to get there fast to check if it was renamed correctly
Code:
rox -s /usr/X11R7/bin/yaf-splash.orig


#what happens is
#here you need to rename gtkdialog-splash to yaf-splash
#make it executable
#and cp it to /usr/X11R7/bin/


# if you unzipped gtkdialog-splash in root here is the command
Code:
cp /root/gtkdialog-splash /usr/X11R7/bin/
mv /usr/X11R7/bin/gtkdialog-splash /usr/X11R7/bin/yaf-splash
chmod a+x /usr/X11R7/bin/yaf-splash



**back up plan if for some reason the"new wrapper" doesnt work
if you have problems you could rename yaf-splash.orig back to
yaf-splash

careful in that /usr/X11R7/bin folder it controls X
any mistakes leaves you in a black screen

I tested all the code I pasted
I wrote a handy test program for x to show the display number to see if you are in X or the console it has a yaf-splash line of code .You could
click on it to see if it works
attached xtest script

Joe


just noticed something not all the optional commands have equivalences

OPTIONS
yaf-splash accepts all of the standard toolkit options, and also accepts the following options:

-help
Print a brief summary of the allowed options on the standard output.
-text string
The text you want to display. Multi-line text is ok. The characters that will be displayed depend on the font you use.
-timeout seconds
How long to leave the text on the screen before exiting. The default is 0, which means forever (until the window is clicked on or killed by other means).
-clock
Enable the clock display instead of a text message.
-12
Use a twelve hour clock. This is the default.
-24
Use a twenty-four hour clock.
-seconds
Update every second (default).
-noseconds
Update once per minute; don't display seconds at all.
-countdown <date>
Countdown to the specified date instead of displaying a clock. The argument to -countdown should be a time_t integer (number of seconds past "Jan 1 00:00:00 GMT 1970") or, a string of the form "Mmm DD HH:MM:SS YYYY", for example, "Jan 1 00:00:00 2004". This
string is interpreted in the local time zone. The countdown option implies -clock.
-countdownquit
Quit after the countdown has reached zero, if in countdown mode (default).
-nocountdownquit
Keep on counting back up once the countdown has reached zero, if in countdown mode.
-geometry metry
Specifies the prefered size and position of the splash text.
-placement placement
Specifies the placement of the splash text using one of the following strings: top-left, top, top-right, left, center, right, bottom-left, bottom, bottom-right. Specifying this setting overrides the position information given in the -geometry option. Center is the default.
-font fontname
Specifies the X font to use.
-transparent
Causes the background of the window to be transparent, if possible.

xtest.tar.gz
Description 
gz

 Download 
Filename  xtest.tar.gz 
Filesize  530 Bytes 
Downloaded  490 Time(s) 

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
01micko


Joined: 11 Oct 2008
Posts: 7836
Location: qld

PostPosted: Sat 05 Jun 2010, 23:34    Post_subject:  

Yes Joe.. there are things yaf-splash does that gtk-dialog can never do.

I was part of the inspiration for gtkdialog-splash but it was never intended to replace yaf-splash.

In quickpet, yaf-splash could not do Bidi fonts (rtl, ie Hebrew, Arabic, etc) so I worked around it with a gtk-dialog alternative, which mave elaborated on then Barry elaborated more.

gtkdialog-splash can't do..
    clock
    transparency
    countdown
    huge fonts


I have apps and so does zigbert which use those features of yaf-splash.

I just think that gtkdialog-splash should be a cool alternative, not a replacement for yaf-splash

Cheers

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
big_bass

Joined: 13 Aug 2007
Posts: 1747

PostPosted: Sat 05 Jun 2010, 23:52    Post_subject:  

01micko
Code:

I just think that gtkdialog-splash should be a cool alternative, not a replacement for yaf-splash



hey micko is more than cool its smart its a lot of work to write a wrapper like that a great creative job



I only was testing myself today and discovered the options that
havent been converted

looking to see if it was a true replacement or not

if you know before hand which options you can or cant use
allows you to take advantage of this gtkdialog wrapper


hey 01micko and thanks for the desktop I used it in slaxer Cool
Joe

_________________
debian wheezy ,linux mint, slackware I use them all and they all have good points
Mint would be best for general users though
Back to top
View user's profile Send_private_message 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Tue 04 Jan 2011, 00:28    Post_subject: fake -font option support  

I don't know why Barry made to use old yaf-splash for '-font' option, but i made:
# 4jan11 shinobar: interprete '-font' option as like '-fontsize', never use old yaf-splash.
gtkdialog-splash-20110104.gz
Description 
gz

 Download 
Filename  gtkdialog-splash-20110104.gz 
Filesize  2.6 KB 
Downloaded  382 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send_private_message Visit_website 
01micko


Joined: 11 Oct 2008
Posts: 7836
Location: qld

PostPosted: Fri 18 Mar 2011, 21:38    Post_subject:  

I have added functionality to the "-icon" option in gtkdialog-splash to allow any "pixmap" (png, xpm, gif, jpg) to be used. Obviously, since this is a splash program relatively small images should be used.
You just add the path to the image as an argument of the '-icon' option. (see the help).

Vovchik has a small demonstration .. http://www.murga-linux.com/puppy/viewtopic.php?p=505459#505459

This does not include shinobar's '-font' fix for yaf-splash in the above post.

Cheers
gtkdialog-splash-20110319.pet
Description 
pet

 Download 
Filename  gtkdialog-splash-20110319.pet 
Filesize  3.15 KB 
Downloaded  339 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send_private_message Visit_website 
shinobar


Joined: 28 May 2009
Posts: 2631
Location: Japan

PostPosted: Wed 21 Mar 2012, 00:41    Post_subject: gtkdialog-splash-20120321  

Suppose merged all the recent work of mave, Barry, 01micko and shinobar.
Works on Puppy/pupplets 4.x and 5.x.

# 4jan11 shinobar: interprete '-font' option as like '-fontsize', never use old yaf-splash.
#110318 01micko: added option for any pixmap, use with caution, recommended less than 48x48 px in size 01micko,
#however vovchik tested with larger gifs with success
#110926 gtkrc fix.
#111016 user icon

Download the attached, or from http://shino.pos.to/linux/puppy/.
gtkdialog-splash-20120321.pet
Description 
pet

 Download 
Filename  gtkdialog-splash-20120321.pet 
Filesize  3.17 KB 
Downloaded  237 Time(s) 

_________________
Google Chrome portable
Downloads for Puppy Linux http://shino.pos.to/linux/downloads.html
Back to top
View user's profile Send_private_message Visit_website 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Puppy Projects
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0744s ][ Queries: 13 (0.0082s) ][ GZIP on ]