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 Wed 13 Dec 2017, 01:54
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
mukstart
Post new topic   Reply to topic View previous topic :: View next topic
Page 3 of 3 [40 Posts]   Goto page: Previous 1, 2, 3
Author Message
recobayu


Joined: 15 Sep 2010
Posts: 278
Location: indonesia

PostPosted: Tue 06 Sep 2016, 00:49    Post subject:  

Thank You Peebee,
How to fill vertically in gtkdialog? anyone know?
peebee wrote:
a few application icons are not picked up or are wrong size

Yes, I also got the same, it is no picked up
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1397
Location: Japan

PostPosted: Wed 07 Sep 2016, 08:28    Post subject:  

recobayu wrote:
How to fill vertically in gtkdialog? anyone know?
What do you mean by "fill vertically"?
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3036
Location: Worcestershire, UK

PostPosted: Wed 07 Sep 2016, 08:44    Post subject:  

MochiMoppel wrote:
recobayu wrote:
How to fill vertically in gtkdialog? anyone know?
What do you mean by "fill vertically"?

It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1397
Location: Japan

PostPosted: Wed 07 Sep 2016, 09:31    Post subject:  

peebee wrote:
It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....

I thought it was about adjusting window height to the tree height at startup (very tricky), not manual resizing. I can't see anything because I never was able to run mukstart. I now made my 3rd attempt with the newest version and I get this:
Code:
** (gtkdialog:30092): ERROR **: gtkdialog: Error in line 325, near token '</vbox>': syntax error

./mukstart: line 286: 30092 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"


BTW: The </vbox> error is cause by an empty vbox in /usr/local/mukstart/gui. Gtkdialog doesn't like that:
Code:
         </button>
</vbox>
<vbox scrollable="true" width="300">
</vbox>
<vbox scrollable="true" width="300">
<button xalign="0">
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3036
Location: Worcestershire, UK

PostPosted: Wed 07 Sep 2016, 12:12    Post subject:  

MochiMoppel wrote:
peebee wrote:
It means that the space occupied by the 2 trees expands horizontally if the window is resized but does not expand vertically - it is fixed at the height of the left hand tree.

To see - open mukstart and then resize the window by dragging on the corner....

I thought it was about adjusting window height to the tree height at startup (very tricky), not manual resizing. I can't see anything because I never was able to run mukstart. I now made my 3rd attempt with the newest version and I get this:
Code:
** (gtkdialog:30092): ERROR **: gtkdialog: Error in line 325, near token '</vbox>': syntax error

./mukstart: line 286: 30092 Trace/breakpoint trap   gtkdialog -f /usr/local/mukstart/gui --geometry +"0"+"0"


BTW: The </vbox> error is cause by an empty vbox in /usr/local/mukstart/gui. Gtkdialog doesn't like that:
Code:
         </button>
</vbox>
<vbox scrollable="true" width="300">
</vbox>
<vbox scrollable="true" width="300">
<button xalign="0">

Latest version (not a .pet - just a shellscript) is at:
http://www.murga-linux.com/puppy/viewtopic.php?p=921953#921953

Works OK for me.....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1397
Location: Japan

PostPosted: Wed 07 Sep 2016, 21:56    Post subject:  

The script works better.

To expand the tree vertically add:
Line 167: <notebook show-tabs="false" show-border="false" space-expand="true" space-fill="true">
Line 206:<text xalign="1" space-expand="false">
Back to top
View user's profile Send private message 
peebee


Joined: 21 Sep 2008
Posts: 3036
Location: Worcestershire, UK

PostPosted: Thu 08 Sep 2016, 11:42    Post subject:  

MochiMoppel wrote:
The script works better.

To expand the tree vertically add:
Line 167: <notebook show-tabs="false" show-border="false" space-expand="true" space-fill="true">
Line 206:<text xalign="1" space-expand="false">

Thank you @MochiMoppel - that does the trick - but also changing line 169 to:

<tree rules-hint="false" headers-visible="false" hover-selection="true" space-expand="false" space-fill="false">

makes it even better....

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
recobayu


Joined: 15 Sep 2010
Posts: 278
Location: indonesia

PostPosted: Fri 09 Sep 2016, 03:30    Post subject:  

Another exploration.
Code:

#!/bin/sh
Pil='Accessibility|Desktop|Screensaver'
grep -El "^Categories=.*($Pil)" /usr/share/applications/*>lok
grep "^Name=" `cat lok`|cut -d\= -f2>nama
grep "^Icon=" `cat lok`|cut -d\= -f2>ikon
grep "^Exec=" `cat lok`|cut -d\= -f2>exe

buatbutton(){
   howmuchline=$(wc -l lok|cut -d" " -f1)
   for i in $(seq 1 $howmuchline);do
      ikonku=$(sed -n $i\p ikon)
      namaku=$(sed -n $i\p nama)
      exeku=$(sed -n $i\p exe)
      if [[ $ikonku != *\/* ]];then
         for i in mini-icons pixmaps;do
            if [ -f /root/puppy-reference/$i/$ikonku ];then
               ikonku=/root/puppy-reference/$i/$ikonku
            fi
         done
      fi
      echo '
      <hbox space-fill="true" space-expand="true">
      <button space-fill="false" space-expand="false" relief="2">
         <input file>'$ikonku'</input>
         <label> '$namaku'</label>
         <action>'$exeku'&</action>
         <action>EXIT:exit</action>
         <width>24</width>
      </button>
      <text><label>""</label></text>
      </hbox>'
   done
      
}

export -f buatbutton

export gui='
<window>
   <vbox scrollable="true" width="300" height="500">
      '"`buatbutton`"'
   </vbox>
</window>'
gtkdialog -p gui

This code gave me a clue.. maybe using button is better
buttonleft.png
 Description   This look better, isn't it?
 Filesize   38.73 KB
 Viewed   226 Time(s)

buttonleft.png

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


Joined: 21 Sep 2008
Posts: 3036
Location: Worcestershire, UK

PostPosted: Sat 24 Sep 2016, 05:49    Post subject: YA-Menu  

Here is my take on a menu app - heavily based on the excellent work by recobayu but with quite a lot of changes....mainly aimed at LxPup but also works on jwm based pups....

When I have time I'll probably add "Favourites" and "Recently Used" facilities....

Cheers
peebee

p.s. also works on xslacko (but is very similar to the XFCE menu)
Screenshot.png
 Description   
 Filesize   73.19 KB
 Viewed   131 Time(s)

Screenshot.png

yamenu-1.pet
Description 
pet

 Download 
Filename  yamenu-1.pet 
Filesize  3.43 KB 
Downloaded  86 Time(s) 

_________________
LxPup = Puppy + LXDE
Back to top
View user's profile Send private message Visit poster's website 
recobayu


Joined: 15 Sep 2010
Posts: 278
Location: indonesia

PostPosted: Sat 24 Sep 2016, 23:45    Post subject:  

That is great, Peebee..
Thank you very much. Very Happy
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 3 of 3 [40 Posts]   Goto page: Previous 1, 2, 3
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Desktop
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.0505s ][ Queries: 13 (0.0075s) ][ GZIP on ]