Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
GTK+2 Menushadows and Improved File Selection
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Thu Jan 01, 2004 10:53 am    Post subject: GTK+2 Menushadows and Improved File Selection Reply with quote

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
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Thu Jan 01, 2004 11:13 am    Post subject: Reply with quote

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
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Thu Jan 01, 2004 11:40 am    Post subject: Reply with quote

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
View user's profile Send private message
floam
Veteran
Veteran


Joined: 27 Oct 2002
Posts: 1067
Location: Vancouver, WA USA

PostPosted: Thu Jan 01, 2004 12:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Thu Jan 01, 2004 12:33 pm    Post subject: Reply with quote

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
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Thu Jan 01, 2004 12:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Thu Jan 01, 2004 1:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Thu Jan 01, 2004 1:42 pm    Post subject: Reply with quote

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
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Thu Jan 01, 2004 3:07 pm    Post subject: Reply with quote

I tried, with no success. I have reverted now to gtk+-2.3.1.
Back to top
View user's profile Send private message
piquadrat
Guru
Guru


Joined: 18 Feb 2003
Posts: 301
Location: Switzerland

PostPosted: Thu Jan 01, 2004 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Thu Jan 01, 2004 4:01 pm    Post subject: Reply with quote

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
View user's profile Send private message
dr_strange
Guru
Guru


Joined: 16 Apr 2002
Posts: 480
Location: Cambridge, UK

PostPosted: Thu Jan 01, 2004 4:24 pm    Post subject: Reply with quote

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
View user's profile Send private message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Thu Jan 01, 2004 7:30 pm    Post subject: Reply with quote

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
View user's profile Send private message
Egil.B
n00b
n00b


Joined: 28 Dec 2003
Posts: 17

PostPosted: Fri Jan 02, 2004 1:22 am    Post subject: Reply with quote

the url appears to be broken :roll:
_________________
#alinux.no@EFnet
Back to top
View user's profile Send private message
symbiote
Tux's lil' helper
Tux's lil' helper


Joined: 06 Oct 2002
Posts: 87
Location: The 3rd World

PostPosted: Fri Jan 02, 2004 5:50 am    Post subject: Reply with quote

http://stealthdildo.net/ebuilds/gtk+-2.2.4-r2.tar.bz2?

Works at my end.
_________________
symbiote: interstellar mohican-general of the stealthdildo buddhist-warrior ninjas
[*] symbiote@stealthdildo.net
[*] gpg: 1024D/3FC84E5B
[*] http://stealthdildo.net/pgp-key
Back to top
View user's profile Send private message
Bastux
Guru
Guru


Joined: 15 Dec 2002
Posts: 369
Location: France - Paris

PostPosted: Fri Jan 02, 2004 11:50 am    Post subject: Reply with quote

symbiote wrote:
http://stealthdildo.net/ebuilds/gtk+-2.2.4-r2.tar.bz2?

Works at my end.


works for me
Back to top
View user's profile Send private message
Egil.B
n00b
n00b


Joined: 28 Dec 2003
Posts: 17

PostPosted: Fri Jan 02, 2004 1:31 pm    Post subject: Reply with quote

What is the ip? I can't resolve it :roll:
_________________
#alinux.no@EFnet
Back to top
View user's profile Send private message
IWBCMAN
Guru
Guru


Joined: 25 Jun 2002
Posts: 474

PostPosted: Fri Jan 02, 2004 3:06 pm    Post subject: Reply with quote

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
View user's profile Send private message
dabooty
Guru
Guru


Joined: 15 May 2003
Posts: 482
Location: Belgium

PostPosted: Sun Jan 04, 2004 9:40 pm    Post subject: Reply with quote

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
View user's profile Send private message
Anior
Guru
Guru


Joined: 17 Apr 2003
Posts: 317
Location: European Union (Stockholm / Sweden)

PostPosted: Mon Jan 05, 2004 12:04 am    Post subject: Reply with quote

Could anybody manage a screenie?
Back to top
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Jan 05, 2004 12:26 am    Post subject: Reply with quote

Is this "gnome only" ?
I dont have such a "file selector"
_________________
linux: #232767
Back to top
View user's profile Send private message
OddFox
Apprentice
Apprentice


Joined: 28 Nov 2002
Posts: 270
Location: Spokane, WA

PostPosted: Mon Jan 05, 2004 4:17 am    Post subject: Reply with quote

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
View user's profile Send private message
discomfitor
l33t
l33t


Joined: 21 Feb 2003
Posts: 927
Location: None

PostPosted: Mon Jan 05, 2004 5:28 pm    Post subject: Reply with quote

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
View user's profile Send private message
ikaro
Advocate
Advocate


Joined: 14 Jul 2003
Posts: 2526
Location: Denmark

PostPosted: Mon Jan 05, 2004 6:00 pm    Post subject: Reply with quote

Ive tried it and it crashes all my apps with segfauls .
bha
_________________
linux: #232767
Back to top
View user's profile Send private message
dabooty
Guru
Guru


Joined: 15 May 2003
Posts: 482
Location: Belgium

PostPosted: Tue Jan 06, 2004 5:09 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
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