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 19 Apr 2014, 16:34
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
Glipper-lite
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
Author Message
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Fri 01 Feb 2013, 03:54    Post subject:  

I messed around with the sources to remove xml file dependency (converted with glade-2.12), but localization needs fixed now - LC_ALL wasn't defined, so I changed it to "C" so it would build.

(btw it is smaller than the puppy default one which is upx'd in /usr/local/bin)

changes:
used a gtk stock icon vs inline xpm
used gtk's builtin statusicon vs eggtrayicon
replaced preference xml with builtin code
refactored some code
fixed several error messages
fixed ability to change keybinding

todo? gtk's builtin accelerators for the keybindings
glipper-lite.tar.gz
Description 
gz

 Download 
Filename  glipper-lite.tar.gz 
Filesize  33.86 KB 
Downloaded  232 Time(s) 

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 01 Feb 2013, 04:17    Post subject:  

Dear technosaurus,

Perhaps you might know the answer to this. I compile glipper-lite using your build script and get the following runtime error:

Code:
GLib-ERROR **: /build/buildd/glib2.0-2.24.0/glib/gmem.c:137: failed to allocate 1852405539 bytes
aborting...
Aborted



I used Lucid and have all the required libs, I think....

With kind regards,
vovchik
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 02 Feb 2013, 13:04    Post subject:  

Hi Technosaurus,
technosaurus wrote:
used gtk's builtin statusicon vs eggtrayicon

Ah, I'll have to look at that when I have some time. I was wanting to do that, and got some examples to copy, but never got around to it.
Quote:
replaced preference xml with builtin code

Oh, OK. I thought that version 0.95 didn't use xml in the first place, so you could just go back to it... guess I was imagining it.
Quote:
fixed several error messages

What sort of error messages? Compile-time or run-time? Were they serious?

I have put the other changes we made into SVN at http://code.google.com/p/glipper-lite, with a little more work done to be more consistent about changing the name to glipper-lite.

Your version doesn't have any of the renaming, so I guess it is based directly on the original glipper-lite code out of CVS. Is that right?

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 02 Feb 2013, 14:38    Post subject:  

I actually pulled the full glipper and used its glade file in glade-2.12 (the last one to output C) to convert it to C but the C it generates is deprecated (just warnings) ... I should probably just fork and patch that version of glade to prevent needing to do this in the future.

glipper uses global variables for the widgets, so I combined the C files to make it simpler

I didn't find any good (simple) examples of setting global keybindings for a status icon popup, but if I do, it will go in my simple icon tray.

p.s. aside from the global keybinding (which could be assigned by the wm), all of glipper could be emulated with a small gtkdialog + sit app that uses xclip (I'll add it to my todo list for my sit suite along with battery, temperature, memory, cpu, volume, network, cups, save file and others - so we can have just 1 tray app and 1 shell daemon running)

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 02 Feb 2013, 18:59    Post subject:  

technosaurus wrote:
I messed around with the sources to remove xml file dependency (converted with glade-2.12), but localization needs fixed now - LC_ALL wasn't defined, so I changed it to "C" so it would build.

(btw it is smaller than the puppy default one which is upx'd in /usr/local/bin)

How much of that space have you saved by disabling localization though? Wink

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4134

PostPosted: Sat 02 Feb 2013, 19:04    Post subject:  

none AFAIK, I just changed the LC_ALL to "C" to get it to compile ... I'm sure I could get it back by watching a full build of the full glipper (though any localized glade files will need to be po'ed too, since those strings are now in source)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 02 Feb 2013, 21:52    Post subject:  

This probably doesn't mean anything in real life, but it is interesting that your version ("glipper" in the attached screenshot) seems to initially use more resources, I guess maybe because you replaced the xml with code.
After opening the history menu or the preferences dialogue mine uses exactly the same Sad and it doesn't drop down again after these are closed, either. I wonder if it would if I was running out of ram...

Quote:
fixed ability to change keybinding

I guess that only needed fixing because it broke in refactoring or something... it has always worked for me Smile

For the sake of the casual reader, other than the NLS, the only functional differences I can see between yours and mine are:
- your executable is standalone, so will still run without an xml file or an icon file.
- mine still works with older gtk versions e.g. in unmodified Puppy 4.x series
- mine doesn't load properly on my current up-to-date system when the system tray is provided by lxpanelx, which produces an `X Error: BadMatch (invalid parameter attributes)`. It runs fine with JWM.
snapshot.png
 Description   
 Filesize   2.95 KB
 Viewed   413 Time(s)

snapshot.png


_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Fri 08 Feb 2013, 06:48    Post subject:  

technosaurus wrote:
p.s. aside from the global keybinding (which could be assigned by the wm), all of glipper could be emulated with a small gtkdialog + sit app that uses xclip (I'll add it to my todo list for my sit suite along with battery, temperature, memory, cpu, volume, network, cups, save file and others - so we can have just 1 tray app and 1 shell daemon running)

You might want to look at clipbored...

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6378
Location: Auckland, New Zealand

PostPosted: Sat 09 Feb 2013, 20:25    Post subject:  

For the record, compiling Technosaurus' version on my Arch system I needed to add this to the build script:
Code:
-lgdk-x11-2.0 -lX11 -lgobject-2.0 -lglib-2.0

Naturally the -lX11 can break it on older systems Rolling Eyes
I guess this is why people use autotools...

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 1876
Location: The Blue Marble

PostPosted: Tue 19 Mar 2013, 05:03    Post subject:  

glipper-lite revision 284 will replace glipper in the next release of Fatdog. Thank you.
_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 4 [46 Posts]   Goto page: Previous 1, 2, 3, 4 Next
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.0613s ][ Queries: 12 (0.0042s) ][ GZIP on ]