RGBA Gtk+ module

Various Gnome Stuff

Source (link to git-repo or to original if based on someone elses unmodified work): Add the source-code for this project on opencode.net

2
7.2
Description:

Gtk+ module to activate RGBA in gtk apps.
Use it with Cimitan's murrine theme engine instead of patching applications.

Thanks to VMChaZ for help with debug.
http://home.kis.ru/~vmchaz

Installation
Just use PPA or (1) and (2)
1) Compile it:
gcc -fPIC -shared librgba.c -o librgba.so `pkg-config --cflags --libs gtk+-2.0`
2) Copy librgba.so to /usr/lib/gtk-2.0/modules.

3) Install Cimitan's murrine engine and themes for it
4) Activate RGBA:
- Open gnome-color-chooser
- go to "Engines" tab
- set "global" checkbox
- Choose "Murrine"
- Click preferences
- set 2 RGBA checkboxes
5)Add export GTK_MODULES=rgba to .profile
Set environment variable GTK_RGBA_APPS (usually add to .profile).
export GTK_RGBA_APPS= list of applications

GTK_RGBA_APPS variable
- set it to colon separated list of applications to activate rgba ONLY in these apps:
GTK_RGBA_APPS=gedit:app2:app3

- append "allbut" to start to activate rgba in ALL apps except listed:
GTK_RGBA_APPS=allbut:gedit:app2:app3

FAQ
Q: Some applications does not work. Is it bug?
A: It is Ok, and not bug of RGBA Gtk+ module.
Not all apps can use RGBA.
You SHOULD set up GTK_RGBA_APPS variable.
For example:
GTK_RGBA_APPS=gedit:gcacltool:gnome-help - Activate RGBA ONLY in gnome edit, gnome calculator and gnome help.
or
GTK_RGBA_APPS=allbut:gedit:gcacltool:gnome-help - Activate RGBA in ALL applications except listed.

P.S. Sorry for bad English.
Last changelog:

10 years ago

0.2
prints name of program to console when rgba activated.

0.1
first release

zniavre

10 years ago

apps with systray cause modules failed
try to improve in this way to limit the amount of blacklisted apps

(sorry for english )

Report

smif1984

10 years ago

if i explicitly set the two env variables in a terminal and then start rhytmbox it works.. ok for this.. but in my case the only apps that should use rgba are in the .profile file.. even if rhythmbox is not in the list it cannot start.. it seems that the file is ignored..

Report

smif1984

10 years ago

it seems that when you open a new terminal session the env variables you've set before are gone.. a workaround for this is to set the env variables in my .bashrc file.. or just a line with : source ~/.profile.. i think this was my problem..

Report

zniavre

10 years ago

hello
it's strange but here rhythmbox does not work with your patch (pidgin too) it works as before only with plugin)

export GTK_RGBA_APPS=allbut:gnome-panel:firefox:rhythmbox:netspeed_applet2:GlobalMenu.PanelApplet:zattoo_player:zattood:mixer_applet2:gksu:synaptic:amule:nautilus:pidgin

here my "blacklisted list" of application who does not work

Report

zniavre

10 years ago

hello
it's strange but here rhythmbox does not work with your patch (pidgin too) it works as before only with plugin)

export GTK_RGBA_APPS=allbut:gnome-panel:firefox:rhythmbox:netspeed_applet2:GlobalMenu.PanelApplet:zattoo_player:zattood:mixer_applet2:gksu:synaptic:amule:nautilus:pidgin

here my "blacklisted list" of application who does not work

Report

smif1984

10 years ago

I suggest making a list of application that break. We could do this and make available for download a sample .profile file..

Report

zniavre

10 years ago

hello,
it works quite nice except on some applications it's right (as you said)
nautilus does not display background at all
here the copy of my ~/.profile file

export GTK_MODULES=rgba
export GTK_RGBA_APPS=allbut:nautilus:pidgin:gnome-panel:firefox:rhythmbox:netspeed_applet2:GlobalMenu.PanelApplet

like that it's working quite well
i hope nautilus "bug" will find a workaround soon.
Thank you a lot good bye
(voted good)

Report

smif1984

10 years ago

hi zniavre,

I've got some problems with some applets which won't start at login.. i want o blacklist them in .profile but i don't know their exact name.. These are the load monitor applet and the fast user switch applet.. can you help me? moreover is there any log file in which i can see the gtk apps that are crashing at login??

Cheers

Report

C

aleksey

10 years ago

fast-user-switch-applet

For other try to search in /usr/lib/bonobo/server

Report

zniavre

10 years ago

multiload-applet-2 i guess

Report

eitreach

10 years ago

But it needs a bit of humanizing, for us non-techs. :P

Voted good.

Report

zniavre

10 years ago

hello
please how did you manage to make it working ? please

i created the .so and copy to /usr/lib/gtk-2.0/modules annd then added an export GTK_MODULES=rgba line into my ~/profile
but it does not work ...

if i forgot something please help me .

thank you good bye

Report

zniavre

10 years ago

first edit the test is working
but how to make it automatic with regular launher please

(i reaally do not understand something about variable )
thank you

the test failed with nautilus it said rgba On but it does not work

Report

eitreach

10 years ago

I haven't managed to get it working myself, sorry. When I put the text above in my .profile, it breaks Gnome for me.

Report

zhuqin

10 years ago

The gnome related apps work fine, some other gtk apps work, too. However, quite a few have such errors and crash:

RGBA on
The program 'pidgin' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadMatch (invalid parameter attributes)'.
(Details: serial 250 error_code 8 request_code 2 minor_code 0)
(Note to programmers: normally, X errors are reported asynchronously;
that is, you will receive the error a while after causing it.
To debug your program, run it with the --sync command line
option to change this behavior. You can then get a meaningful
backtrace from your debugger if you break on the gdk_x_error() function.)

Report

sihKih

10 years ago

same problem here, any one have an idea how can it be done, or the patches are needed?

Report

puccaso

10 years ago

i cant get this to work.. how do i do this? where do i put the gtk_app variables etc..?

Report

zniavre

10 years ago

hello

very nice job
but ...
i followed your how to
create .so and place it to usr/share blablabla
but i did not understand where to set the rgba feature
i just added a line into .profile (Set GTK_MODULES=rgba variable) it was this one ?

thank you for your code

Report

zhuqin

10 years ago

I think it should be sth like:
export GTK_MODULES=rgba in your ~/.profile

Report

zniavre

10 years ago

hello
thank to help but ... it does not work
.

i do not understand what is wrong.

Report

zhuqin

10 years ago

You have to logout and back in to make this work.
And to test rgba, you first have to enable rgba in your gtkrc, type "export GTK_RGBA_APPS=allbut" in the terminal,
after that, type for example "gedit" in the terminal.
Good luck!

Report

zniavre

10 years ago

zniavre@zniavre:~/Bureau$ export GTK_RGBA_APPS=allbut
zniavre@zniavre:~/Bureau$ pidgin
Gtk-Message: Failed to load module "rgba": (null)

:o( im so sad it does not work .

Report

zhuqin

10 years ago

Have you put librgba.so to the right place?
/usr/lib/gtk-2.0/modules

Report

zniavre

10 years ago

yes for sure i striickly followed the how-to and your usefull helps

no luck for me at this point but ... i will try again for sure
thank you

Report

smif1984

10 years ago

hi, thanks for doing this work.
I got these error message when trying to compile your .c file.

smif@introd>>gcc -fPIC -shared librgba.c -o librgba.so `pkg-config --cflags --libs gtk+-2.0`
Package gtk+-2.0 was not found in the pkg-config search path.
Perhaps you should add the directory containing `gtk+-2.0.pc'
to the PKG_CONFIG_PATH environment variable
No package 'gtk+-2.0' found
librgba.c:18:18: error: glib.h: No such file or directory
librgba.c:19:25: error: glib/gtypes.h: No such file or directory
librgba.c:20:21: error: gtk/gtk.h: No such file or directory
librgba.c:22: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘*’ token
librgba.c:25: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or ‘__attribute__’ before ‘void’

Report

10 years ago

0.2
prints name of program to console when rgba activated.

0.1
first release

12345678910
3
product-maker olegvbal Jun 18 2011 8 great
product-maker kolesky Apr 15 2011 8 great
product-maker nikore90 Apr 13 2011 8 great
product-maker Count:43 Rating: 7.16
File (click to download) Version Description Downloads Date Filesize DL OCS-Install
Pling
*Needs ocs-url or ocs-store to install things
Details
license
version
0.2 .deb avaible
updated Feb 23 2010
added Mar 06 2009
downloads today
0
page views today 3