View previous topic :: View next topic |
Author |
Message |
symbiote Tux's lil' helper


Joined: 06 Oct 2002 Posts: 87 Location: The 3rd World
|
Posted: Thu Jan 01, 2004 10:53 am Post subject: GTK+2 Menushadows and Improved File Selection |
|
|
I've always wanted window/menu shadows, and found the standard gtk file selection dialog to be, well, ugly. I found a couple of patches that improves GTK2+ by adding menu shadows and a more detailed file selector.
patches:
http://members1.chello.nl/~h.lai/gtkenhancements/index.html
http://aleron.dl.sourceforge.net/sourceforge/xfce/gtk+-menushadow.patch
Here's a simple ebuild that I made where it applies both patches. I wasn't sure what to name it, so I just called it -r2, since latest on my system was -r1.
ebuild:
http://stealthdildo.net/ebuilds/gtk+-2.2.4-r2.tar.bz2
Simply unpack it to PORTAGE_OVERLAY, or /usr/local/portage, then emerge -U it.
As for the fileselector, here's something taken from the site:
Code: | Some features have performance penalties. Here are some environment variables to disable them.
* Set GTK_FILESEL_NO_ICONS to 1 to disable looking up icons for files.
* Set GTK_FILESEL_NO_MIME to 1 to disable file type detection. This will also disable icons.
* Set GTK_FILESEL_SIMPLE to 1 to disable all columns (Date, Size, etc.) except File. This will disable icon lookup and file type detection too. |
Enjoy. _________________ symbiote: interstellar mohican-general of the stealthdildo buddhist-warrior ninjas
[*] symbiote@stealthdildo.net
[*] gpg: 1024D/3FC84E5B
[*] http://stealthdildo.net/pgp-key
Last edited by symbiote on Thu Jan 01, 2004 9:25 pm; edited 1 time in total |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Thu Jan 01, 2004 11:13 am Post subject: |
|
|
Hmmm, thanks, I think I'll try this when I get off my butt here in a few and go eat some breakfast, ugh!
EDIT: Are the performance penalties anything to worry about on a modern system? AMD Athlon-XP 2000+ @ 2200+, 256MB PC2700 DDR SDRAM, NVidida GeForce2 GTS. _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Thu Jan 01, 2004 11:40 am Post subject: |
|
|
Oh WOW! This is awesome! Thanks x2! _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
floam Veteran

Joined: 27 Oct 2002 Posts: 1067 Location: Vancouver, WA USA
|
Posted: Thu Jan 01, 2004 12:06 pm Post subject: |
|
|
The GTK+ 2.3.1 ebuild (included with gnome-current at bmg) has these too, if anyone's interested. _________________ Think about your breathing.
http://floam.sh.nu |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Thu Jan 01, 2004 12:33 pm Post subject: |
|
|
floam wrote: | The GTK+ 2.3.1 ebuild (included with gnome-current at bmg) has these too, if anyone's interested. |
I thought GTK+ 2.3/2.4 was going to have these features either merged or implemented, and patches would be unnecessary? Oh well, either way, it'll be there.
How's the stability of GNOME-current at BMG? _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
dr_strange Guru


Joined: 16 Apr 2002 Posts: 480 Location: Cambridge, UK
|
Posted: Thu Jan 01, 2004 12:42 pm Post subject: |
|
|
I've installed this, but now I get errors from several applications, the error is
Code: | /usr/lib/libgnomecanvas-2.so: undefined reference to `gdk_threads_unlock' |
Anyone else having these? I tried to reemerge libgnomeui, but I couldn't, because the compile gives the same error. |
|
Back to top |
|
 |
symbiote Tux's lil' helper


Joined: 06 Oct 2002 Posts: 87 Location: The 3rd World
|
Posted: Thu Jan 01, 2004 1:18 pm Post subject: |
|
|
Been running the patched ebuild for 6 hours now, no errors whatsoever.
Code: | * gnome-base/libgnomecanvas :
[ I] gnome-base/libgnomecanvas-2.4.0 (0) |
I didn't recompile anything else aside from the gtk ebuild I modified.
Code: | [ I] x11-libs/gtk+-2.2.4-r2 (2) |
_________________ symbiote: interstellar mohican-general of the stealthdildo buddhist-warrior ninjas
[*] symbiote@stealthdildo.net
[*] gpg: 1024D/3FC84E5B
[*] http://stealthdildo.net/pgp-key |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Thu Jan 01, 2004 1:42 pm Post subject: |
|
|
No errors whatsoever here, either, using the latest software from the portage branch and some GCC 3.3-exclusive compiler options.
Try re-emerging libgnomecanvas. _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
dr_strange Guru


Joined: 16 Apr 2002 Posts: 480 Location: Cambridge, UK
|
Posted: Thu Jan 01, 2004 3:07 pm Post subject: |
|
|
I tried, with no success. I have reverted now to gtk+-2.3.1. |
|
Back to top |
|
 |
piquadrat Guru


Joined: 18 Feb 2003 Posts: 301 Location: Switzerland
|
Posted: Thu Jan 01, 2004 4:01 pm Post subject: |
|
|
works great! But is there a way to activate menu shadow for mozilla? I thought that its toolkit XUL bases on GTK+ in Linux... |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Thu Jan 01, 2004 4:01 pm Post subject: |
|
|
I think your problem may lie in the fact that you're not using GNOME 2.4.
Or at least it wouldn't appear that you are judging from your usage of GTK+ 2.3.1. _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
dr_strange Guru


Joined: 16 Apr 2002 Posts: 480 Location: Cambridge, UK
|
Posted: Thu Jan 01, 2004 4:24 pm Post subject: |
|
|
OddFox wrote: | I think your problem may lie in the fact that you're not using GNOME 2.4.
Or at least it wouldn't appear that you are judging from your usage of GTK+ 2.3.1. |
Yes, I use 2.5.1 BMG. |
|
Back to top |
|
 |
symbiote Tux's lil' helper


Joined: 06 Oct 2002 Posts: 87 Location: The 3rd World
|
Posted: Thu Jan 01, 2004 7:30 pm Post subject: |
|
|
Hehe, that's what the ebuild is for, those who want the advanced file selector and menu drop shadows without having to use the BMG 2.5.1 ebuilds (gtk+ 2.3.1/2.4).
I'm glad it's working for some, hell, changes I made were trivial anyway. _________________ symbiote: interstellar mohican-general of the stealthdildo buddhist-warrior ninjas
[*] symbiote@stealthdildo.net
[*] gpg: 1024D/3FC84E5B
[*] http://stealthdildo.net/pgp-key |
|
Back to top |
|
 |
Egil.B n00b

Joined: 28 Dec 2003 Posts: 17
|
Posted: Fri Jan 02, 2004 1:22 am Post subject: |
|
|
the url appears to be broken  _________________ #alinux.no@EFnet |
|
Back to top |
|
 |
symbiote Tux's lil' helper


Joined: 06 Oct 2002 Posts: 87 Location: The 3rd World
|
|
Back to top |
|
 |
Bastux Guru


Joined: 15 Dec 2002 Posts: 369 Location: France - Paris
|
Posted: Fri Jan 02, 2004 11:50 am Post subject: |
|
|
works for me |
|
Back to top |
|
 |
Egil.B n00b

Joined: 28 Dec 2003 Posts: 17
|
Posted: Fri Jan 02, 2004 1:31 pm Post subject: |
|
|
What is the ip? I can't resolve it  _________________ #alinux.no@EFnet |
|
Back to top |
|
 |
IWBCMAN Guru


Joined: 25 Jun 2002 Posts: 474
|
Posted: Fri Jan 02, 2004 3:06 pm Post subject: |
|
|
ping stealthdildo.net
PING stealthdildo.net (207.135.134.253) 56(84) bytes of data.
64 bytes from stealthdildo.net (207.135.134.253): icmp_seq=1 ttl=48 time=226 ms
64 bytes from stealthdildo.net (207.135.134.253): icmp_seq=2 ttl=48 time=225 ms
64 bytes from stealthdildo.net (207.135.134.253): icmp_seq=3 ttl=48 time=224 ms |
|
Back to top |
|
 |
dabooty Guru


Joined: 15 May 2003 Posts: 482 Location: Belgium
|
Posted: Sun Jan 04, 2004 9:40 pm Post subject: |
|
|
OddFox wrote: | How's the stability of GNOME-current at BMG? |
been using it for quite a while, without any major issues since a few weeks _________________ registered user #284425
get yourself counted
http://counter.li.org
------
#emerge -pv solves a lot of questions beforehand |
|
Back to top |
|
 |
Anior Guru


Joined: 17 Apr 2003 Posts: 317 Location: European Union (Stockholm / Sweden)
|
Posted: Mon Jan 05, 2004 12:04 am Post subject: |
|
|
Could anybody manage a screenie? |
|
Back to top |
|
 |
ikaro Advocate


Joined: 14 Jul 2003 Posts: 2526 Location: Denmark
|
Posted: Mon Jan 05, 2004 12:26 am Post subject: |
|
|
Is this "gnome only" ?
I dont have such a "file selector" _________________ linux: #232767 |
|
Back to top |
|
 |
OddFox Apprentice


Joined: 28 Nov 2002 Posts: 270 Location: Spokane, WA
|
Posted: Mon Jan 05, 2004 4:17 am Post subject: |
|
|
ikaro wrote: | Is this "gnome only" ?
I dont have such a "file selector" |
The "file selector" is just the dialog window that you are presented with whenever a GTK+2 app wants you to, well, input a file. If the app conforms to GTK+2 standards and doesn't have it's own file selector (Very very few do) then you will have a shiny, new and improved file selector to play with whenever you're opening something. _________________ Now the rainy season reminds me of Maria
The way she danced, the color of her hair
Now I'm locked inside a stall at the cantina
Eating the bananas and the cocaine off the mirror
Looking for a ticket to take me away from here |
|
Back to top |
|
 |
discomfitor l33t


Joined: 21 Feb 2003 Posts: 927 Location: None
|
Posted: Mon Jan 05, 2004 5:28 pm Post subject: |
|
|
the file selector is the window that comes up whenever a file selection needs to be performed by a gtk2 app.
works great! _________________ There is no substitute for experience.
Imperfection indicates a lack of effort. |
|
Back to top |
|
 |
ikaro Advocate


Joined: 14 Jul 2003 Posts: 2526 Location: Denmark
|
Posted: Mon Jan 05, 2004 6:00 pm Post subject: |
|
|
Ive tried it and it crashes all my apps with segfauls .
bha _________________ linux: #232767 |
|
Back to top |
|
 |
dabooty Guru


Joined: 15 May 2003 Posts: 482 Location: Belgium
|
Posted: Tue Jan 06, 2004 5:09 pm Post subject: |
|
|
Anior wrote: | Could anybody manage a screenie? |
looks pretty much as adverted (i stopped using the breakme flag during the 2.3 series and then it looked like that)
http://www.xfce.org/gtkmenu-shadow/
the fileselector looked like the screenie in the first link of the first post, but the newer gtk's have a new fileselector already so i don't know if the patch still applies or if the patched fileselector still works. _________________ registered user #284425
get yourself counted
http://counter.li.org
------
#emerge -pv solves a lot of questions beforehand |
|
Back to top |
|
 |
|