Glipper-lite

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#31 Post by Dingo »

my fault. I said Glipper, but I wanted to say *glipper-lite*, I used this sourcecode (posted in this thread)source:
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#32 Post by disciple »

Oh, right... Ttuuxxx made a glipper-lite called 1.0 :roll:
What version of GTK does 3.01 use? If it is 2.12 or greater you might as well apply my gtkbuilder patch too.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#33 Post by disciple »

OK, it was pointed out in this thread that glipper/glipper-lite doesn't survive if you exit or restart jwm or whatever else is providing the tray notification area.

The fix is just two lines:

Code: Select all

/mnt/sdb3/glipper-lite1/src# diff -u main.c.bak main.c    
--- main.c.bak  2007-04-26 08:38:59.000000000 +1200
+++ main.c      2011-10-07 22:45:53.000000000 +1300
@@ -374,6 +374,7 @@
        if (usePrimary)
                processContent(&PrimaryClip);
        mainTimeout = g_timeout_add(500, checkClipboard, NULL);
+       gtk_widget_show_all(GTK_WIDGET(TrayIcon));
        return 1;
 }
 
@@ -441,6 +442,7 @@
        gtk_widget_show_all(GTK_WIDGET(TrayIcon));
        g_signal_connect_swapped(G_OBJECT(eventbox), "button-press-event", 
                                                         G_CALLBACK(TrayIconClicked), NULL);
+       g_signal_connect(G_OBJECT(TrayIcon), "delete-event", G_CALLBACK (gtk_widget_hide_on_delete), NULL);
 }
 
 void show_about(gpointer data)
I think it's time to get my changes into svn. I'll see if I can look at that in the morning.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#34 Post by disciple »

OK, heres a package. It also includes Barry's wrapper script this time.
Attachments
glipper-lite.pet
Updated version
(19.32 KiB) Downloaded 1049 times
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#35 Post by disciple »

Sorry guys who downloaded it already: you'll have two menu entries now if you installed it over the top of an existing glipper.
I've capitalised the .desktop file name as is traditional in Puppy for some reason, and reuploaded.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#36 Post by darkcity »


User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#37 Post by technosaurus »

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
Attachments
glipper-lite.tar.gz
(33.86 KiB) Downloaded 871 times
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

User avatar
vovchik
Posts: 1507
Joined: Tue 24 Oct 2006, 00:02
Location: Ukraine

#38 Post by vovchik »

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: Select all

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

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#39 Post by disciple »

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.
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.
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?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#40 Post by technosaurus »

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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#41 Post by disciple »

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? ;)
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#42 Post by technosaurus »

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)
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#43 Post by disciple »

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 :( and it doesn't drop down again after these are closed, either. I wonder if it would if I was running out of ram...
fixed ability to change keybinding
I guess that only needed fixing because it broke in refactoring or something... it has always worked for me :)

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.
Attachments
snapshot.png
(2.95 KiB) Downloaded 1108 times
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#44 Post by disciple »

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...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#45 Post by disciple »

For the record, compiling Technosaurus' version on my Arch system I needed to add this to the build script:

Code: Select all

-lgdk-x11-2.0 -lX11 -lgobject-2.0 -lglib-2.0
Naturally the -lX11 can break it on older systems :roll:
I guess this is why people use autotools...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#46 Post by jamesbond »

glipper-lite revision 284 will replace glipper in the next release of Fatdog. Thank you.
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

Rope
Posts: 435
Joined: Wed 20 Feb 2013, 16:30

#47 Post by Rope »

Is there any new pet for Glipper-lite (Latest Glipper version is 2.4 and has plugins)
Puppy Slacko 5.7 frugal
AMD Athlon(tm) 64 X2 Dual Core Processor 4000+ : 2109.87MHz
Total Memory : 967356 kB

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#48 Post by disciple »

Glipper is now written in Python, so no, there won't be a version corresponding to it.
Amigo did say he saw the plugin support was added before the switch to Python, but I didn't look at it because the plugins were still in Python I think. I guess I can have another look after my current project. But you may find the "action" support in Parcellite suits your purposes...
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

scsijon
Posts: 1596
Joined: Thu 24 May 2007, 03:59
Location: the australian mallee
Contact:

#49 Post by scsijon »

disciple, hi!

?do you have the lateat source code for this packages up somewhere, I'm trying to build on T2 system and it's failing badly with the version up there.
I thought maybe it's a version thing as i'm trying to build on x86-64.

thanks

User avatar
technosaurus
Posts: 4853
Joined: Mon 19 May 2008, 01:24
Location: Blue Springs, MO
Contact:

#50 Post by technosaurus »

I know of at least this fork:
https://github.com/AlisterH/glipper-lit ... ipper-lite
Which uses the builtin gtkbuilder xml instead of glade xml (or my C code version)
I think that was from the latest google code repo source.
Last edited by technosaurus on Sat 25 Jun 2016, 17:48, edited 2 times in total.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].

Post Reply