(OLD) (ARCHIVED) Puppy Linux Discussion Forum Forum Index (OLD) (ARCHIVED) Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info

This forum can also be accessed as http://oldforum.puppylinux.com
It is now read-only and serves only as archives.

Please register over the NEW forum
https://forum.puppylinux.com
and continue your work there. Thank you.

 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups    
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Thu 24 Sep 2020, 13:49
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
Where are the shared icons located?
Moderators: Flash, Ian, JohnMurga
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
Page 5 of 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5
Author Message
TwoPuppies


Joined: 29 Dec 2010
Posts: 77
Location: Melbourne, Australia

PostPosted: Sat 15 Sep 2018, 01:59    Post subject: gtkrefresh for Xenial  

Mike Walsh wrote:
When you say 'a newer version of gtkrefresh', are you talking about a specific binary, or something similar? ...Or are we here talking about a specific script, perhaps?

Here is what I know about gtkrefresh:

The version in Lucid is a binary file, and is located at /usr/bin/gtkrefresh
No equivalent version exists in Slacko or Xenial (or presumably any other recent Puppies).
(Not to be confused with gtk-refresh, which is just a GTK stock icon.)

Its uses include the following:
If you put these three lines in a script...
Code:
sed -i '2d' /root/.gtkrc-2.0
sed -i '2i\include "/usr/share/themes/Clearlooks-Smoke/gtk-2.0/gtkrc"\' /root/.gtkrc-2.0
exec /usr/bin/gtkrefresh &

The first two lines will select the GTK Clearlooks theme "Clearlooks-Smoke", and then the third line (using gtkrefresh) will apply the theme.
In other words, line 3 has the same effect as pressing the OK or Apply buttons in Chtheme (the GTK Theme Chooser interface), but with the added advantage that it can be called from a script.

gtkrefresh is provided earlier in this thread by Mark (forum member MU). So I guess he is really the person to whom we should be talking. I have no idea if Mark is still active on the Forum. Sometimes people just seem to vanish. I am assuming that Mark created gtkrefresh, although I might be wrong about that. He provides some details about it in this post a couple of pages back. There is a download link for it here, so you can download it and have a look at it. He also provides a link to another thread where the source code for gtkrefresh can be accessed.

As I said in my first post, Mark's version of gtkrefresh does not work in Xenial, and what I am after is an up-to-date version of his binary file that is compatible with more recent Puppies (such as Xenial). If Mark did make the original we might be able to prevail on him to make us a new one.

_________________
What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.


Last edited by TwoPuppies on Sun 16 Sep 2018, 05:38; edited 2 times in total
Back to top
View user's profile Send private message 
mikeslr


Joined: 16 Jun 2008
Posts: 3913
Location: 500 seconds from Sol

PostPosted: Sat 15 Sep 2018, 14:58    Post subject:  

Unfortunately, gtkrefresh is a compiled binary. Unlike a bash-script, you can't just change it or re-write it using whatever version of bash is currently installed on your operating system. You have to compile it; and to do so you have to obtain the source file and know what compiling instructions are needed.
Back to top
View user's profile Send private message 
Mike Walsh


Joined: 28 Jun 2014
Posts: 6397
Location: King's Lynn, UK.

PostPosted: Sat 15 Sep 2018, 16:28    Post subject:  

Mm.....

Y'know, I have a sneaking suspicion, looking at it, that that source code might have been written with Puppy 2/3/4 in mind. I wouldn't even want to hazard a guess as to whether a modern gcc, compiler, bin-utils, etc, could even do anything with it, since Puppy's code has changed quite a lot since those early days.

Added to which fact Mark Ulrich hasn't been seen on the forum in years. He's still in the Members list - but all his content and other references have been wiped, so there is no way of contacting him (unless you happened to have a current e-mail addy, and were keeping in regular contact with him).

Mike. Wink

_________________
MY 'PUPPY' PACKAGES

Back to top
View user's profile Send private message 
TwoPuppies


Joined: 29 Dec 2010
Posts: 77
Location: Melbourne, Australia

PostPosted: Sat 15 Sep 2018, 18:32    Post subject: gtkrefresh for Xenial  

That's a shame. Anyway, at least you have given me a definitive answer. Thanks to both of you for your replies.
_________________
What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.

Back to top
View user's profile Send private message 
TwoPuppies


Joined: 29 Dec 2010
Posts: 77
Location: Melbourne, Australia

PostPosted: Tue 09 Oct 2018, 02:37    Post subject: gtkrefresh for Xenial  

OK, well after a great deal of searching it turns out that there is a more up-to-date version of gtkrefresh that works in Xenial. It's called pGtk-theme-refresh-1.1 and is provided by forum member Trio.

Here's the forum thread:
http://www.murga-linux.com/puppy/viewtopic.php?p=811270

Download the PET:
pGtk-theme-refresh-1.1.pet
Description  /usr/bin/pGtkthemerefresh
pet

 Download 
Filename  pGtk-theme-refresh-1.1.pet 
Filesize  3.62 KB 
Downloaded  71 Time(s) 

_________________
What you really need is two puppies:
Puppy Linux, and the sort with four legs and a tail.

Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3822
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 07 Apr 2020, 06:03    Post subject:  

Bonjour,
I'm raising this thread almost two years later. Lots of messages but not really found the answer that should fit in one line. This little script, present in the gtkdialog doc examples, displays a set of standard icons used by many applications:
Code:
#!/bin/sh

GTKDIALOG=gtkdialog

MAIN_DIALOG='
<window>W
   <vbox>
      <frame Stock ID examples>
         <tree rules-hint="true">
            <height>400</height>
            <width>250</width>
            <label>Stock ID</label>
            <item stock-id="gtk-dialog-authentication">gtk-dialog-authentication</item>
            <item stock-id="gtk-dialog-info">gtk-dialog-info</item>
            <item stock-id="gtk-dialog-warning">gtk-dialog-warning</item>
            <item stock-id="gtk-dialog-error">gtk-dialog-error</item>
            <item stock-id="gtk-dialog-question">gtk-dialog-question</item>
            <item stock-id="gtk-dnd">gtk-dnd</item>
            <item stock-id="gtk-dnd-multiple">gtk-dnd-multiple</item>
            <item stock-id="gtk-about">gtk-about</item>
            <item stock-id="gtk-add">gtk-add</item>
            <item stock-id="gtk-apply">gtk-apply</item>
            <item stock-id="gtk-bold">gtk-bold</item>
            <item stock-id="gtk-cancel">gtk-cancel</item>
            <item stock-id="gtk-cdrom">gtk-cdrom</item>
            <item stock-id="gtk-clear">gtk-clear</item>
            <item stock-id="gtk-close">gtk-close</item>
            <item stock-id="gtk-color-picker">gtk-color-picker</item>
            <item stock-id="gtk-convert">gtk-convert</item>
            <item stock-id="gtk-connect">gtk-connect</item>
            <item stock-id="gtk-copy">gtk-copy</item>
            <item stock-id="gtk-cut">gtk-cut</item>
            <item stock-id="gtk-delete">gtk-delete</item>
            <item stock-id="gtk-directory">gtk-directory</item>
            <item stock-id="gtk-disconnect">gtk-disconnect</item>
            <item stock-id="gtk-edit">gtk-edit</item>
            <item stock-id="gtk-execute">gtk-execute</item>
            <item stock-id="gtk-file">gtk-file</item>
            <item stock-id="gtk-find">gtk-find</item>
            <item stock-id="gtk-find-and-replace">gtk-find-and-replace</item>
            <item stock-id="gtk-floppy">gtk-floppy</item>
            <item stock-id="gtk-fullscreen">gtk-fullscreen</item>
            <item stock-id="gtk-goto-bottom">gtk-goto-bottom</item>
            <item stock-id="gtk-goto-first">gtk-goto-first</item>
            <item stock-id="gtk-goto-last">gtk-goto-last</item>
            <item stock-id="gtk-goto-top">gtk-goto-top</item>
            <item stock-id="gtk-go-back">gtk-go-back</item>
            <item stock-id="gtk-go-down">gtk-go-down</item>
            <item stock-id="gtk-go-forward">gtk-go-forward</item>
            <item stock-id="gtk-go-up">gtk-go-up</item>
            <item stock-id="gtk-harddisk">gtk-harddisk</item>
            <item stock-id="gtk-help">gtk-help</item>
            <item stock-id="gtk-home">gtk-home</item>
            <item stock-id="gtk-index">gtk-index</item>
            <item stock-id="gtk-indent">gtk-indent</item>
            <item stock-id="gtk-info">gtk-info</item>
            <item stock-id="gtk-unindent">gtk-unindent</item>
            <item stock-id="gtk-italic">gtk-italic</item>
            <item stock-id="gtk-jump-to">gtk-jump-to</item>
            <item stock-id="gtk-justify-center">gtk-justify-center</item>
            <item stock-id="gtk-justify-fill">gtk-justify-fill</item>
            <item stock-id="gtk-justify-left">gtk-justify-left</item>
            <item stock-id="gtk-justify-right">gtk-justify-right</item>
            <item stock-id="gtk-leave-fullscreen">gtk-leave-fullscreen</item>
            <item stock-id="gtk-missing-image">gtk-missing-image</item>
            <item stock-id="gtk-media-forward">gtk-media-forward</item>
            <item stock-id="gtk-media-next">gtk-media-next</item>
            <item stock-id="gtk-media-pause">gtk-media-pause</item>
            <item stock-id="gtk-media-play">gtk-media-play</item>
            <item stock-id="gtk-media-previous">gtk-media-previous</item>
            <item stock-id="gtk-media-record">gtk-media-record</item>
            <item stock-id="gtk-media-rewind">gtk-media-rewind</item>
            <item stock-id="gtk-media-stop">gtk-media-stop</item>
            <item stock-id="gtk-network">gtk-network</item>
            <item stock-id="gtk-new">gtk-new</item>
            <item stock-id="gtk-no">gtk-no</item>
            <item stock-id="gtk-ok">gtk-ok</item>
            <item stock-id="gtk-open">gtk-open</item>
            <item stock-id="gtk-paste">gtk-paste</item>
            <item stock-id="gtk-preferences">gtk-preferences</item>
            <item stock-id="gtk-print">gtk-print</item>
            <item stock-id="gtk-print-preview">gtk-print-preview</item>
            <item stock-id="gtk-properties">gtk-properties</item>
            <item stock-id="gtk-quit">gtk-quit</item>
            <item stock-id="gtk-redo">gtk-redo</item>
            <item stock-id="gtk-refresh">gtk-refresh</item>
            <item stock-id="gtk-remove">gtk-remove</item>
            <item stock-id="gtk-revert-to-saved">gtk-revert-to-saved</item>
            <item stock-id="gtk-save">gtk-save</item>
            <item stock-id="gtk-save-as">gtk-save-as</item>
            <item stock-id="gtk-select-color">gtk-select-color</item>
            <item stock-id="gtk-select-font">gtk-select-font</item>
            <item stock-id="gtk-sort-ascending">gtk-sort-ascending</item>
            <item stock-id="gtk-sort-descending">gtk-sort-descending</item>
            <item stock-id="gtk-spell-check">gtk-spell-check</item>
            <item stock-id="gtk-stop">gtk-stop</item>
            <item stock-id="gtk-strikethrough">gtk-strikethrough</item>
            <item stock-id="gtk-undelete">gtk-undelete</item>
            <item stock-id="gtk-underline">gtk-underline</item>
            <item stock-id="gtk-undo">gtk-undo</item>
            <item stock-id="gtk-yes">gtk-yes</item>
            <item stock-id="gtk-zoom-100">gtk-zoom-100</item>
            <item stock-id="gtk-zoom-fit">gtk-zoom-fit</item>
            <item stock-id="gtk-zoom-in">gtk-zoom-in</item>
            <item stock-id="gtk-zoom-out">gtk-zoom-out</item>
         </tree>
      </frame>
      <hbox homogeneous="true">
         <button ok></button>
      </hbox>
   </vbox>
</window>
'
export MAIN_DIALOG

case $1 in
   -d | --dump) echo "$MAIN_DIALOG" ;;
   *) $GTKDIALOG --program=MAIN_DIALOG ;;
esac

Please, where are these "stock" icons stored?

Cordialement.

_________________

Puppy Search
Back to top
View user's profile Send private message Visit poster's website 
bigpup


Joined: 11 Oct 2009
Posts: 13981
Location: S.C. USA

PostPosted: Tue 07 Apr 2020, 06:49    Post subject:  

delete
_________________
The things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
YaPI(any iso installer)

Last edited by bigpup on Tue 07 Apr 2020, 13:14; edited 1 time in total
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 2084
Location: Japan

PostPosted: Tue 07 Apr 2020, 08:02    Post subject:  

Argolance wrote:
Please, where are these "stock" icons stored?
These icons are not stored anywhere in your filesystem. They are compiled into GTK and AFAIK reside in the file /usr/lib/libgtk-x11-2.0.so
Back to top
View user's profile Send private message 
Argolance


Joined: 06 Jan 2008
Posts: 3822
Location: PORT-BRILLET (Mayenne - France)

PostPosted: Tue 07 Apr 2020, 09:11    Post subject:  

@MochiMoppel
MochiMoppel wrote:
These icons are not stored anywhere in your filesystem. They are compiled into GTK and AFAIK reside in the file /usr/lib/libgtk-x11-2.0.so

Clear and clean! Exactly what I was expecting for, and in one line... Smile
Thank you!

@bigpup
Quote:
/usr/share/icons/Puppy Standard/
There are directories of different icon sizes. Inside those are directories with each type of icon.

Thanks all the same! Wink

Have a nice day, both of you, and take care of yourself (I see that MochiMoppel has put on his mask...).

Cordialement.

_________________

Puppy Search
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 5 of 5 [69 Posts]   Goto page: Previous 1, 2, 3, 4, 5
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies. View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0740s ][ Queries: 13 (0.0123s) ][ GZIP on ]