Author |
Message |
spottedzebra
Joined: 08 Jan 2009 Posts: 8
|
Posted: Sun 15 Mar 2009, 17:41 Post subject:
Pcursorsel-0.1 Xcursor selector - now with preview feature! |
|
i was going to name it pcursor but it was already taken
this is a xcursor selector with a preview feature using xcur2png
(included in package)
xcur2png sometimes gives you glitchy images, but until i find something better, i have to use it
it was programmed in c++ using gtk+
please tell me what you think
Description |
|

Download |
Filename |
pcursorsel-0.1.pet |
Filesize |
15.27 KB |
Downloaded |
634 Time(s) |
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Sun 15 Mar 2009, 18:20 Post subject:
|
|
very fine, thank you.
I will add it to next newyearspup, replacing my own cursorselector.
May you release the sourcecode please, so that it may be recompiled in different versions of Puppy?
Good work
Mark
_________________ my recommended links
|
Back to top
|
|
 |
spottedzebra
Joined: 08 Jan 2009 Posts: 8
|
Posted: Mon 16 Mar 2009, 09:27 Post subject:
|
|
i will get to that as soon as i get to my computer
quick question
would it be desirable to have more than one cursor previewed, because that is possible, i thought i would just preview one cursor until people wanted more
thanks
|
Back to top
|
|
 |
WhoDo

Joined: 11 Jul 2006 Posts: 4440 Location: Lake Macquarie NSW Australia
|
Posted: Mon 16 Mar 2009, 17:01 Post subject:
|
|
spottedzebra wrote: | would it be desirable to have more than one cursor previewed, because that is possible, i thought i would just preview one cursor until people wanted more |
I can't answer for Mark, but one preview is plenty for me. I have added your selector to RC4. Don't tell anyone because there's a feature freeze, but I thought this fitted under the category of usability and a necessity for the Window$ refugees we target.
Thanks, spottedzebra.
_________________ Actions speak louder than words ... and they usually work when words don't!
SIP:whodo@proxy01.sipphone.com; whodo@realsip.com
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Tue 17 Mar 2009, 14:25 Post subject:
|
|
yes, one preview is ok for me, too
Mark
_________________ my recommended links
|
Back to top
|
|
 |
spottedzebra
Joined: 08 Jan 2009 Posts: 8
|
Posted: Tue 17 Mar 2009, 18:15 Post subject:
|
|
here is the (tremendously ugly) source code in case anyone needs it
i haven't learned how to use autoconf or anything yet, so all i have is the source code file
it only requires gtk+2.0 (i used `pkg-config gtk+2.0 --libs`)
i'm happy that my trivial little program will officialy be part of my favorite linux ever
EDIT: feel free to edit it as you please (it'll probably help) its GPLed
Description |
|

Download |
Filename |
pcursorsel.cpp.gz |
Filesize |
1.79 KB |
Downloaded |
514 Time(s) |
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Tue 17 Mar 2009, 19:13 Post subject:
|
|
many thanks for releasing the source
It is pretty clean, and might be a good example for people, who want to write small applications in C/C++
Mark
_________________ my recommended links
|
Back to top
|
|
 |
davec51
Joined: 13 Apr 2006 Posts: 522 Location: Virginia
|
Posted: Tue 17 Mar 2009, 19:20 Post subject:
Where are the Cursors Subject description: None shown |
|
Did you include actual cursors with the program? If not, what do I do to get some and put them in a position to be selected?
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13648 Location: Karlsruhe, Germany
|
Posted: Tue 17 Mar 2009, 19:42 Post subject:
|
|
cursors, repackaged by Pizzasgood:
http://murga-linux.com/puppy/viewtopic.php?t=37852
older ones:
http://www.murga-linux.com/puppy/viewtopic.php?p=16622
They are located in /root/.icons/
Mark
_________________ my recommended links
|
Back to top
|
|
 |
vovchik

Joined: 23 Oct 2006 Posts: 1447 Location: Ukraine
|
Posted: Wed 18 Mar 2009, 15:23 Post subject:
|
|
Dear Puppians,
For those who wish to compile this program themselves, the following command line works:
Code: | g++ `pkg-config --cflags gtk+-2.0` pcursorsel.cpp `pkg-config --libs gtk+-2.0` -o pcursorsel |
With kind regards,
vovchik
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Thu 13 Aug 2009, 09:33 Post subject:
|
|
Hi,
I know his is kinda old, but I modified few things from this pcursorsel (I would not dare to call this an upgrade). I call it v 1.0 just to differentiate. What I modded are:
1. It will not list ROX and default as available cursor themes (which they aren't supposed to be listed)
2. If restart X is not clicked, your new mouse cursor will still can be viewed (but not in all window, try to open seamonkey after that, you'll see what I mean), but it should be all good after your next reboot/restart X --> I was planning to use Big Bass' refreh X script but it's not available, and he has not respond to my PM. It should be better, if we can change cursor instantly without loosing any work/opened windows
Don't call pcursorsel form terminal, but pcursorselshell or from menu - desktop - cursor selector
It's far from perfect, I don't know how to code in C
Cheers
PS: Anybody who knows C better, please modify this great app so it can be perfect, we have no cursor selector in 430
New version 1.1 - I think all is good !!
_________________ My apps
Last edited by trio on Thu 13 Aug 2009, 23:46; edited 1 time in total
|
Back to top
|
|
 |
gulk

Joined: 21 Apr 2008 Posts: 86
|
Posted: Thu 13 Aug 2009, 23:22 Post subject:
|
|
Hi Trio,
why using pcursorsel when you can directly call the xcur2png bin?
Not knowing C in this case is not a problem since you can work around by just scripting.
For example:
Command line input:
Code: | # /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile |
Output:
Code: | ##################################################
Conversion successfully done!(14 images were output.) |
You know what? I just made up my mind and found motivation. I'll try and work on that. Unfortunately I don't think I'll have time to start on that before Barry gets the 430 out
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Thu 13 Aug 2009, 23:44 Post subject:
|
|
gulk wrote: | Hi Trio,
why using pcursorsel when you can directly call the xcur2png bin?
Not knowing C in this case is not a problem since you can work around by just scripting.
For example:
Command line input:
Code: | # /usr/bin/xcur2png /root/.icons/blahiconstheme/cursors/ACursorFile |
Output:
Code: | ##################################################
Conversion successfully done!(14 images were output.) |
You know what? I just made up my mind and found motivation. I'll try and work on that. Unfortunately I don't think I'll have time to start on that before Barry gets the 430 out  |
I got it, and it will not retstart x to see the cursor (thx Big Bass)! and it will not list default and ROX folder. ONLY FOR JWM!
Description |
fixmenus & restartwm after install
|

Download |
Filename |
pcursorsel-1.1.pet |
Filesize |
21.58 KB |
Downloaded |
486 Time(s) |
_________________ My apps
Last edited by trio on Fri 14 Aug 2009, 01:38; edited 1 time in total
|
Back to top
|
|
 |
big_bass
Joined: 13 Aug 2007 Posts: 1742
|
Posted: Fri 14 Aug 2009, 00:59 Post subject:
|
|
trio
great job!
sweeeeet!
and easy to use and set up
Joe
|
Back to top
|
|
 |
trio

Joined: 21 Dec 2008 Posts: 2083 Location: अनुमोदना
|
Posted: Fri 14 Aug 2009, 01:10 Post subject:
|
|
Big Bass,
Great! thanks
My first C++ hack
_________________ My apps
|
Back to top
|
|
 |
|