Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 21 Sep 2019, 13:41
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Building MMview, a universal file viewer
Post new topic   Reply to topic View previous topic :: View next topic
Page 19 of 21 [302 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21 Next
Author Message
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Sat 13 Jul 2019, 05:29    Post subject:  

MochiMoppel wrote:
Why would you need whitespace? Just rightclick any item in the list.
Ahhh yes. My apologies. I had no idea that was possible. I thought rightclicking an item would only bring up an item-specific context but yes that gives me the "view hidden files" option.

many thanks!
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1903
Location: Japan

PostPosted: Thu 18 Jul 2019, 23:11    Post subject:  

greengeek wrote:
Ahhh yes. My apologies. I had no idea that was possible.
I bet hardly anybody has an idea what else is possible.

The GtkFileChooserDialog contains lots of built in but poorly documented keyboard shortcuts.
For example Ctrl+H toggles "View hidden files" on/off (this shortcut is now "taken" in MMview by the hexdump command, but I think I should restore it with the next update. You can still try it in older versions or in Geany's "Open" dialog).
Or try Alt+Home. Or avoid Alt+S (opens Search box... I should block it).

My favorite is F8, followed by any of keys Up,Down,Left,Right,Home,End,PageUp,PageDown. Neat, isn't it? Not extremely useful, but it shows how the developers of GTK -sometimes - care for details.
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1471
Location: Drøbak, Norway

PostPosted: Fri 19 Jul 2019, 19:18    Post subject:  

Uhh, what should happen when F8 is pressed, followed by an arrow key? I have the 2019-04-09 version, and nothing happens, and that's not neat.
_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Sat 20 Jul 2019, 07:33    Post subject:  

I see the panel divisions move - expanding and contracting. (Xenial64). Clever way to make things more readable.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1903
Location: Japan

PostPosted: Fri 26 Jul 2019, 04:35    Post subject:  

tallboy wrote:
Uhh, what should happen when F8 is pressed, followed by an arrow key?
With a properly designed GTK theme you would immediately see something just by pressing F8, without pressing some of the arrow keys I mentioned.

Your chooser would have a separator between the left "Places" pane and the file tree with a dotted handle in the middle. This separator would get focus and you should see it because its color changes. Figuring then out what the arrow keys are supposed to do is not difficult.

With an inferior theme you will see nothing.
Are you by any chance using the "Polished-Blue" theme? The author ("I don't know a ton about gtk themes") managed to eliminate the handle and the visible focus change indicator.

To get the handle back delete or comment out the lines
Code:
image
{
function          = HANDLE
file              = "bump.png"
border            = { 2, 2, 2, 2 }
stretch           = TRUE
}
in the file /usr/share/themes/Polished-Blue/gtk-2.0/gtkrc. Or change to a better theme.
Back to top
View user's profile Send private message 
mfb

Joined: 22 Mar 2016
Posts: 82

PostPosted: Fri 26 Jul 2019, 05:38    Post subject:  

Hi MochiMoppel,

The Polished-Blue gtkrc file has some major advantages as well as the defect referenced in your comment.

The attached screen shot shows some extra features at lines 29 and 30 enabling "steppers" see the bottom right corner of the screen shot.

There may well be other themes with such advantages, but, it seems to me, that although "The author of Polished-Blue wrote ("I don't know a ton about gtk themes") that overlooks its major contributions including the ease of making adjustments.
shot.jpg
 Description   
 Filesize   86.58 KB
 Viewed   490 Time(s)

shot.jpg

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


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Mon 29 Jul 2019, 03:04    Post subject:  

Not sure if I am using mmview correctly - but I would like to understand the following behaviour:

if I create a directory as follows:

/root/SoftwareTests_Pets_For_Slacko5.6_Only

the full name does not appear in the mmview left hand "Places" pane when I click "+". (It is truncated by the separator bar)

If I press F8 the separator bar is highlighted and I can press the right hand arrow (or grab the newly highlighted grab handle) to move the separator such that it displays the full directory name.

This is helpful - but it also shrinks that next pane.

Is there maybe some way to get the next pane to increase size using a similar method also??
Back to top
View user's profile Send private message 
tallboy


Joined: 21 Sep 2010
Posts: 1471
Location: Drøbak, Norway

PostPosted: Mon 29 Jul 2019, 20:58    Post subject:  

MochiMoppel, regarding our conversation: I also use the 'Polished Blue' theme, it may be default in Dpup Stretch-75 RC4.
Commenting the lines in .../Polished-Blue/gtk-2.0/gtkrc did not change anything, switching to another theme did. Very Happy

_________________
True freedom is a live Puppy on a multisession CD/DVD.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1903
Location: Japan

PostPosted: Wed 31 Jul 2019, 05:13    Post subject:  

greengeek wrote:
If I press F8 the separator bar is highlighted and I can press the right hand arrow (or grab the newly highlighted grab handle) to move the separator such that it displays the full directory name.

This is helpful - but it also shrinks that next pane.

Is there maybe some way to get the next pane to increase size using a similar method also??

No. Because this is exactly how paned areas in GTK should work. When size of one pane increases, the adjacent pane shrinks. The left Places pane and the adjacent file tree pane are "glued" with a GtkPane widget, and the overall size of this widget does not change. All hardwired in the chooser widget. No way (and no reason) to change it. And here is more bad news for you: There is no way to add a similar separator between the file tree pane and the right viewer pane. The GtkPane widget is implemented in yad, but not in gtkdialog.

But coming back to your problem: Your idea to solve it is strange. Instead of trying to accommodate the Places pane to the length of your bookmarks, thus wasting valuable real estate, why don't you simply make your bookmarks shorter? Right-click -> Rename and then change "SoftwareTests_Pets_For_Slacko5.6_Only" to something like "SWtests5.6". All bookmarks in the list come with tooltips that display the full paths, so you are never left in doubt what even a cryptic bookmark is linked to.
Back to top
View user's profile Send private message 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Wed 31 Jul 2019, 06:24    Post subject:  

MochiMoppel wrote:
why don't you simply make your bookmarks shorter? Right-click -> Rename and then change "SoftwareTests_Pets_For_Slacko5.6_Only" to something like "SWtests5.6". All bookmarks in the list come with tooltips that display the full paths, so you are never left in doubt what even a cryptic bookmark is linked to.
Ahhh yes - it seems that renaming a "Places" bookmark does not rename the target directory. Nice to know. Thank you!
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1903
Location: Japan

PostPosted: Wed 31 Jul 2019, 07:56    Post subject:  

greengeek wrote:
Ahhh yes - it seems that renaming a "Places" bookmark does not rename the target directory

It "seems" ? Laughing
If you are not convinced then start MMview, use your preferred method to display hidden files and have a look at /root/.gtk-bookmarks. This is the file where GTK reads and writes bookmarks. I hope you are impressed by the simplicity of this file and by the way, custom names are added to bookmarked directories. By a single space. The idea of a genius.
Back to top
View user's profile Send private message 
rockedge


Joined: 11 Apr 2012
Posts: 1231
Location: Connecticut, United States

PostPosted: Wed 31 Jul 2019, 09:37    Post subject:  

setup mm_view on a Void Linux / Puppy Linux hybrid OS....works great...going to be using it as a main tool in the WeeDog (firstrib) OS's built from wiak's scripts described here ->

http://murga-linux.com/puppy/viewtopic.php?t=116212
Back to top
View user's profile Send private message Visit poster's website 
rockedge


Joined: 11 Apr 2012
Posts: 1231
Location: Connecticut, United States

PostPosted: Sun 18 Aug 2019, 20:34    Post subject:  

I am have trouble getting the quick view to work on the latest versions of WeeDog based on Void Linux. Earlier test versions of WeeDog MM_VIEW was working well. Now mm_view seems to work for example I can hex dump a file and see the text, but for some reason the quick view will not function....


Can anyone give a tip on how to get mm_view to work on WeeDog and Void Linux once again?

Code:
_sh-5.0# /usr/bin/mm_view_20190702
widget_menuitem_create(): <width> not implemented for this widget.
timeout: invalid option -- t
BusyBox v1.30.0 (2018-12-30 22:25:27 CET) multi-call binary.

Usage: timeout [-s SIG] SECS PROG ARGS

Runs PROG. Sends SIG to it if it is not gone in SECS seconds.
Default SIG: TERM.
environment: line 18: file: command not found
environment: line 18: file: command not found
MAIN_DIALOG=""
vBTN_DISABLEVIEW="false"
vBTN_WRAP="false"
vCHOOSER="/root/Build/shinobi_recipe.txt"
vCMDLINE=""
vDURATION="156613867760"
vHIDDEN_RESTARTBUTTON=""
vMACRO_REFRESH=""
vMACRO_REFRESH_FORCE=""
vMENU_CHAR2HEX=""
vMENU_CMDBOX_OPEN=""
vMENU_DISABLEVIEW="false"
vMENU_HEXDUMP_ALL=""
vMENU_HEXDUMP_HEAD=""
vMENU_HEXDUMP_HELP=""
vMENU_HEXMARK_ALL=""
vMENU_HEXMARK_HEAD=""
vMENU_LAYOUT="false"
vMENU_PLAY="false"
vMENU_VIEWHISTORY=""
vMENU_WRAP="false"
vNOTE="0"
vSTATUSBAR="/root/Build/shinobi_recipe.txt â "
vTSTART="156613867759
"
EXIT="OK"


_
Back to top
View user's profile Send private message Visit poster's website 
greengeek


Joined: 20 Jul 2010
Posts: 5623
Location: Republic of Novo Zelande

PostPosted: Mon 19 Aug 2019, 02:06    Post subject:  

Looks like it may be to do with the -t option issue highlighted on the previous page by radky and mochimoppel http://murga-linux.com/puppy/viewtopic.php?p=1031680#1031680
Back to top
View user's profile Send private message 
wiak

Joined: 11 Dec 2007
Posts: 1727
Location: not Bulgaria

PostPosted: Mon 19 Aug 2019, 02:42    Post subject:  

greengeek wrote:
Looks like it may be to do with the -t option issue highlighted on the previous page by radky and mochimoppel http://murga-linux.com/puppy/viewtopic.php?p=1031680#1031680


'Fix' was to match GNU coreutils timeout syntax:

https://github.com/mirror/busybox/commit/c9720a761e88e83265b4d75808533cdfbc66075b

_________________
Tiny Linux Blog: http://www.tinylinux.info/
Check Firmware: www.murga-linux.com/puppy/viewtopic.php?p=1022797
tinycore/slitaz: http://www.murga-linux.com/puppy/viewtopic.php?p=990130#990130
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 19 of 21 [302 Posts]   Goto page: Previous 1, 2, 3, ..., 17, 18, 19, 20, 21 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Off-Topic Area » Programming
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.1675s ][ Queries: 13 (0.0410s) ][ GZIP on ]