| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
koolie
Joined: 12 Mar 2007 Posts: 556
|
Posted: Sun 09 Dec 2007, 23:44 Post subject:
GtkBasic - Analogclock |
|
It runs fine in 2.17.1
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sun 09 Dec 2007, 23:49 Post subject:
|
|
Ah, cool, thanks for trying
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
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
Mark
|
|
Back to top
|
|
 |
Pizzasgood

Joined: 04 May 2005 Posts: 6270 Location: Knoxville, TN, USA
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
Soupbean

Joined: 24 Aug 2007 Posts: 20 Location: China
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
brymway
Joined: 08 Dec 2007 Posts: 410
|
Posted: 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
|
|
 |
nutts4life

Joined: 15 Feb 2008 Posts: 263 Location: UK
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
Colonel Panic

Joined: 16 Sep 2006 Posts: 1225
|
Posted: 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
|
|
 |
|