How to change gtk inbuilt default icon choices?

Booting, installing, newbie
Message
Author
User avatar
walter90
Posts: 282
Joined: Wed 26 Aug 2009, 03:53
Location: Pennsylvania, USA

#16 Post by walter90 »

dejan555 wrote:walter, there are some rules to change gtk stock icons by editing .gtkrc-mine , this is how we styled ROX toolbar icons look in these threads/posts:

http://www.murga-linux.com/puppy/viewto ... 829#327829

http://www.murga-linux.com/puppy/viewtopic.php?t=45096
Ok, I could be dense, but the toolbar icons in Rox filer aren't the problem. I can and have changed those.

No matter what I try though, these types of icons or whatever you want to call them don't change in several apps.

Now, I see the code you put in the mine file. How could I try that and point the stock icons at the right target icon?

Is it as simple as replacing the names of each file with the ones I want to use?
I understand I'd have to add to the mine file and not overwrite the toolbar text.

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#17 Post by dejan555 »

walter, rox toolbar was just an example since it also uses gtk stock icons, but once you change that .gtkrc.mine all of stock (default) icons change.
Yes, you can paste that into your .gtkrc.mine (make new file in /root )
and change icons path and icon names
There might be more stock icon rules then those in that post, but we used only how much is in rox filer
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
dejan555
Posts: 2798
Joined: Sun 30 Nov 2008, 11:57
Location: Montenegro
Contact:

#18 Post by dejan555 »

Also, icons may be hardcoded into application, other then using stock icons. Maybe that pwireless uses static paths to icons, but it seems to me that those are also gtk stocks. If they are hard coded you'll have to open pwireless script and find where the gtk dialog is built and specify icons.
puppy.b0x.me stuff mirrored [url=https://drive.google.com/open?id=0B_Mb589v0iCXNnhSZWRwd3R2UWs]HERE[/url] or [url=http://archive.org/details/Puppy_Linux_puppy.b0x.me_mirror]HERE[/url]

User avatar
walter90
Posts: 282
Joined: Wed 26 Aug 2009, 03:53
Location: Pennsylvania, USA

#19 Post by walter90 »

dejan555 wrote:Also, icons may be hardcoded into application, other then using stock icons. Maybe that pwireless uses static paths to icons, but it seems to me that those are also gtk stocks. If they are hard coded you'll have to open pwireless script and find where the gtk dialog is built and specify icons.
Thanks dejan. :D I appreciate your help. I went to the GTK site so I can find more assistance there with the rules. But that site is hard for a non-coder to understand.

Yes those are GTK stock icons but your guess is probably right about them being hard-coded. Like I said earlier, the up arrow in my rox icons file, which I changed, now shows up in several apps as the up arrow.

Thanks again for the help.

User avatar
walter90
Posts: 282
Joined: Wed 26 Aug 2009, 03:53
Location: Pennsylvania, USA

#20 Post by walter90 »

Adding the icons I wanted to use into .gtk-mine works like a charm. A very few of the stock-icons didn't change but I can live with the result.

I added all the extra icons to the same path as the rox-filer icons.

User avatar
zigbert
Posts: 6621
Joined: Wed 29 Mar 2006, 18:13
Location: Valåmoen, Norway
Contact:

#21 Post by zigbert »

My dream is to switch 2 builtin stock icons :)

This is valid

Code: Select all

stock["gtk-yes"] = { "no.png", *, *, *}
while

Code: Select all

stock["gtk-yes"] = stock["gtk-no"]
is not????

anyone?......please
Sigmund

User avatar
Geoffrey
Posts: 2355
Joined: Sun 30 May 2010, 08:42
Location: Queensland

#22 Post by Geoffrey »

I found that by putting the icon you wish to use in "example: /usr/share/icons/hicolor/48x48/devices/camera-web.png "

Then in the gtkdialog script:

Code: Select all

export GUI='
<window title="WebCam Server" icon-name="camera-web" resizable="false">
just don't make the icons over complicated or they look ugly, looks better than those X's and window boxs. 8)

I just tried this with lucid 5.2.8, it don't seem to work, but it does work with Quirky and Barry's latest Racy, haven't tried Wary but I'm guessing that it will work with any that Barry as released, wonder what the difference is?

It seems that it does work in lucid and all other puppy's I would imagine see how here http://murga-linux.com/puppy/viewtopic. ... 784#589784
Attachments
GUI-icon.jpg
(4.3 KiB) Downloaded 600 times

Post Reply