Glipper-lite

Window managers, icon programs, widgets, etc.
Message
Author
amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#16 Post by amigo »

Yeah, creating full-folder diffs is a pain sometimes. Try running configure and then 'make distclean' in the 'raw' sources to help cut down the numbers.
If you have only modified a couple of files, I find it easier to use 'gendiff' which comes with rpm:

Code: Select all

#!/bin/sh

[ -z "$1" -o -z "$2" ] && {
# usage
  echo "usage: $0 <directory> <diff-extension>" 1>&2
  exit 1
}

find $1 \( -name "*$2" -o -name ".*$2" \) -print |
while read f; do
    U=-u
    [ "`basename $f`" = "ChangeLog$2" ] && U=-U0
#    diff ${U} $f `echo $f | sed s/$2\$//`
    if [ -r "$f" ]; then
	diff ${U} "${f}" "${f%$2}"
    else
	diff ${U} /dev/null "${f%$2}"
    fi
done
To use it, simply create copies of the original files with a suffix like '.00' and place them in the edited sources. Then, from the topdir of the edited sources run:
gendiff . .00 > name-of-patch

Sometimes I go through both trees of sources and remove files from both which are showing up in the diff but which are not pertinent to the changes -like Makefile.in autogen.sh, etc. This case is a typical example of comparing incomplete autoconf sources(from CVS or other -hence the autogen.sh) against sources which have already had their conf files regenerated and then edited as well.

You can also manually cut and remove the sections of the diff which don't matter. If you can't figure it out, attach the big diff and I'll cut it down to size for you. I've gotten pretty handy at it after a few hundred times of dissecting debian patches which typically run in the 250-300 thousand lines (exactly because they always include 'debianized' config.guess, config.sub and all the Makefile.in files which are not often essential to the source code changes).

A few runs of this sort (run in both trees) can help a lot:
find -name Makefile.in -exe rm -f {} \;
find -name "*~" -exe rm -f {} \;
find -name CVS -exe rm -rf {} \;

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

#17 Post by disciple »

Try running configure... in the 'raw' sources to help cut down the numbers.
Ah, I should have thought of that :) Still had to delete a few thousand lines though.

This patch seems to work.

Now, I think the answer to my question about the .po files is yes, edit them manually, but also do this https://bugzilla.gnome.org/show_bug.cgi?id=454894#c6
Perhaps someone can check that the locales are actually working now?
Attachments
glipper-lite_NLS.pet
(5.94 KiB) Downloaded 1032 times
glipper-lite.pet
(18.8 KiB) Downloaded 1278 times
glipper-gtkbuilder.diff.gz
(8.23 KiB) Downloaded 1001 times
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#18 Post by amigo »

The bugzilla link is broken. Oops, got it now -there was hidden window about the outdated security certificate...
Looks to me like you may need to be using a late version of intltool to make it work intltool-0.41 can be found through ubuntu.

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#19 Post by aragon »

disciple wrote:Perhaps someone can check that the locales are actually working now?
Your wish is my command. :roll:
German does work.

aragon

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#20 Post by amigo »

Shouldn't that be 'Your wish is my command-line' ?

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#21 Post by aragon »

amigo wrote:Shouldn't that be 'Your wish is my command-line' ?
dict.leo.org does not know of this one...

aragon

amigo
Posts: 2629
Joined: Mon 02 Apr 2007, 06:52

#22 Post by amigo »

Dein Wunsch ist mein Befehl?? I was just kidding aragon, you used it just right.

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

#23 Post by disciple »

Thanks Aragon.
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

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

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#25 Post by aragon »

amigo wrote:Dein Wunsch ist mein Befehl?? I was just kidding aragon, you used it just right.
gotcha :lol:

aragon

aragon
Posts: 1698
Joined: Mon 15 Oct 2007, 12:18
Location: Germany

#26 Post 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

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

#27 Post by disciple »

Fantastic, thanks!
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
Dingo
Posts: 1437
Joined: Tue 11 Dec 2007, 17:48
Location: somewhere at the end of rainbow...
Contact:

#28 Post 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
replace .co.cc with .info to get access to stuff I posted in forum
dropbox 2GB free
OpenOffice for Puppy Linux

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

#29 Post 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
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

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

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

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 1051 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

Post Reply