Page 2 of 3

Posted: Sat 13 Feb 2010, 15:07
by aragon
amigo wrote:Shouldn't that be 'Your wish is my command-line' ?
dict.leo.org does not know of this one...

aragon

Posted: Sat 13 Feb 2010, 15:53
by amigo
Dein Wunsch ist mein Befehl?? I was just kidding aragon, you used it just right.

Posted: Sat 13 Feb 2010, 20:41
by disciple
Thanks Aragon.

Posted: Sun 14 Feb 2010, 02:49
by disciple
Sorry aragon, I'm not certain that I was specific enough. Can you please confirm that the German works in the preferences dialogue?
Thanks.

Posted: Mon 15 Feb 2010, 09:01
by aragon
amigo wrote:Dein Wunsch ist mein Befehl?? I was just kidding aragon, you used it just right.
gotcha :lol:

aragon

Posted: Mon 15 Feb 2010, 09:06
by aragon
disciple wrote:Sorry aragon, I'm not certain that I was specific enough. Can you please confirm that the German works in the preferences dialogue?
Thanks.
no problem. Yes german works in prefs-dialogue.

aragon

Posted: Tue 16 Feb 2010, 07:32
by disciple
Fantastic, thanks!

Posted: Wed 23 Mar 2011, 00:07
by Dingo
I compiled this version of glipper (1.0) for Puppy 3.01

it seems, however that the size is more bigger than your builds (in Puppy higher than 3.01)

keeping the default CFLAGS in makefile, my glipper executable consists in:

- 1250 KB
- 1028 KB after stripping (-strip --strip-unneeded)
- 404 KB (after compression with upx)

while glipper 0.89 compiled originally by Barry Kauler is only 14 KB!

I have seen several other times that compiler in Puppy 3.01 produces executable bigger than other devx in higher puppies

Posted: Wed 23 Mar 2011, 01:51
by technosaurus
it sounds like you may be missing a .so... or more than 1 due to paths etc... the compiler is using one or more of your .a files

putting .so symlinks in usr/lib may fix ... and may give some ignorable relocation warnings

or more likely the devx has header files and static libs for which the main sfs has no shared counterpart... then configure will autodetect a lib that you don't really want or need

Posted: Fri 25 Mar 2011, 22:27
by disciple
Dingo wrote:I compiled this version of glipper (1.0) for Puppy 3.01

it seems, however that the size is more bigger than your builds (in Puppy higher than 3.01)

keeping the default CFLAGS in makefile, my glipper executable consists in:

- 1250 KB
- 1028 KB after stripping (-strip --strip-unneeded)
- 404 KB (after compression with upx)

while glipper 0.89 compiled originally by Barry Kauler is only 14 KB!

I have seen several other times that compiler in Puppy 3.01 produces executable bigger than other devx in higher puppies
Glipper 1.0 was rewritten in python so is completely different. It doesn't even have an executable for you to strip and upx, does it?

Posted: Fri 25 Mar 2011, 22:36
by Dingo
my fault. I said Glipper, but I wanted to say *glipper-lite*, I used this sourcecode (posted in this thread)source:

Posted: Sat 26 Mar 2011, 08:53
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.

Posted: Fri 07 Oct 2011, 13:23
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.

Posted: Fri 07 Oct 2011, 13:59
by disciple
OK, heres a package. It also includes Barry's wrapper script this time.

Posted: Sat 08 Oct 2011, 10:26
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.

Posted: Sat 05 Jan 2013, 11:04
by darkcity

Posted: Fri 01 Feb 2013, 07:54
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

Posted: Fri 01 Feb 2013, 08:17
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

Posted: Sat 02 Feb 2013, 17:04
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?

Posted: Sat 02 Feb 2013, 18:38
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)