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 Tue 18 Jun 2019, 21:36
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
GtkBasic - Analogclock (updated may, 25, 2008)
Moderators: deshlab, Flash, GuestToo, Ian, JohnMurga, Lobster
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [11 Posts]  
Author Message
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sun 09 Dec 2007, 15:55    Post subject:  GtkBasic - Analogclock (updated may, 25, 2008)  

Screenshot can be found here:

http://dotpups.de/puppy3/dotpups/Desktop-Tools/

You can drag it around with the mouse, it remembers the position automatically.
On english computers, it is english of course.

Download:
http://dotpups.de/puppy3/dotpups/Desktop-Tools/GtkBasic-Analogclock.pup

Requires:
http://dotpups.de/puppy3/dotpups/Programming/GtkBasic003/Gtkbasic-003.pup
I just updated that dotpup, so re-install if you already have an older version.

For Puppy 4, you will find a matching GtkBasic003 here:
http://www.murga-linux.com/puppy/viewtopic.php?p=172218


The clock includes some skins (from xonclock), but I have not yet added a dialog to choose them.
To use them already, you had to edit:
/usr/local/GtkBasic-Analogclock/GtkBasic-Analogclock.gtb

You can set the skin here:
Code:
picture = "chrome-128.png"
'picture = "chrome-260.png"
'picture = "xonclock.png"


You will find 200 more clockfaces in the gdesklets package:
http://www.murga-linux.com/puppy/viewtopic.php?p=218209#218209

Mark

Last edited by MU on Tue 05 Aug 2008, 16:28; edited 7 times in total
Back to top
View user's profile Send private message Visit poster's website 
koolie

Joined: 12 Mar 2007
Posts: 554

PostPosted: Sun 09 Dec 2007, 23:44    Post subject: GtkBasic - Analogclock  

It runs fine in 2.17.1 Smile
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sun 09 Dec 2007, 23:49    Post subject:  

Ah, cool, thanks for trying Smile

In Puppy 2.17 not every function of GtkBasic might work.
There were problems reported concerning the fileselectors.
But those are not used for the clock, so good to hear it works Smile

I will try to add a command to GtkBasic next week to rotate pictures.
This is not supported by Gdk, but I found some usable code with google.
Then I could replace the Clock-hands that are currently drawed lines with real pictures, what might look nicer Smile

Mark
Back to top
View user's profile Send private message Visit poster's website 
Pizzasgood


Joined: 04 May 2005
Posts: 6266
Location: Knoxville, TN, USA

PostPosted: Mon 10 Dec 2007, 00:24    Post subject:  

To IceWM users: Add this to your /root/.icewm/winoptions:
Code:
#GtkBasic-Analogclock
GtkBasic-Analogclock.ignoreWinList: 1
GtkBasic-Analogclock.ignoreTaskBar: 1
GtkBasic-Analogclock.ignoreQuickSwitch: 1

That will make things more sleek by removing the taskbar entry and keeping it out of alt-tab.

Don't know if that's an issue in JWM or not.

_________________
Between depriving a man of one hour from his life and depriving him of his life there exists only a difference of degree. --Muad'Dib

Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Tue 18 Dec 2007, 10:08    Post subject:  

yes, it should be an issue of JWM, that ignores some WM hints.
gtk_window_set_skip_taskbar_hint
Icewm will use this hint.

I slightly modified the dotpup, it now also sets:
gtk_window_set_type_hint GDK_WINDOW_TYPE_HINT_DESKTOP
and
gtk_window_set_keep_below

So the clock is always beneath other windows, and it also will no longer disappear, if you use the "show desktop" button in Icewm.

Mark
Back to top
View user's profile Send private message Visit poster's website 
Soupbean


Joined: 24 Aug 2007
Posts: 20
Location: China

PostPosted: Mon 21 Jan 2008, 10:50    Post subject:  

really nice clock.

after installation i still had some problems with menu's in the taskbar and disappearing when pressing show desktop button, so i added the following lines into my 'winoptions' in .icewm:

gtkbasic003.ignoreWinList: 1
gtkbasic003.ignoreTaskBar: 1
gtkbasic003.ignoreQuickSwitch: 1
gtkbasic003.layer: Below

am not sure if that will effect other gtkbasic programs if i install them later, but it works well for now.
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Sat 24 May 2008, 21:34    Post subject:  

I updated the clock.

Changes:
- stores the windowposition automatically after it was dragged around.
- Now compatible with Tigerpup (Xfce, Compiz).
- should also work with other windowmanagers now, where it did not react to mouseclicks before.

Issues (minor): sometimes you must click the "close" button in the dialog twice.
I think I can solve this by some more modification, but am too tired at moment to look the code. I had to replace the Glade-buttons with the newer internal "singleclickbuttons" of GtkBasic.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
brymway

Joined: 08 Dec 2007
Posts: 412

PostPosted: Sun 25 May 2008, 00:06    Post subject:  

I am running 3.01. I downloaded the clock first, ran it and started it but it didn't show. I then downloaded the GTK package like you instructed and now it works great. I much prefer analog clocks and watches to digital so this was a nice treat. Thanks for putting this together.
Back to top
View user's profile Send private message 
nutts4life


Joined: 15 Feb 2008
Posts: 263
Location: UK

PostPosted: Tue 29 Jul 2008, 10:02    Post subject:  

MU,

I'm really enjoying this little applet as it's just so small and simple!

Is there any way of adding three little images as the 'hands' of the clock, instead of the lines currently drawn? Like Xonclock

I guess this is a little more difficult as involves rotating an image rather than drawing a line.

Thanks,

n4l
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13647
Location: Karlsruhe, Germany

PostPosted: Tue 29 Jul 2008, 11:35    Post subject:  

no not easy.
I had to add new functions to the basic-interpreter, as Gdk itself does not support rotation of pixbufs.

At moment I'm too busy with Muppy alpha, so you had to use xonclock for this.

Mark

_________________
my recommended links
Back to top
View user's profile Send private message Visit poster's website 
Colonel Panic


Joined: 16 Sep 2006
Posts: 2089

PostPosted: Sat 14 Mar 2009, 20:08    Post subject:  

I've just installed it and it works well. However, I needed extra GTK-Basic libraries as the link to the ones shown here is broken,

GTKBasic-003e.pet

and PuppyBasic-2.6.pet

Both of these are for the Puppy 2.14 series.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [11 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Unsorted
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.0443s ][ Queries: 12 (0.0113s) ][ GZIP on ]