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 29 Mar 2017, 03:53
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
Separators in XML
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [7 Posts]  
Author Message
LazY Puppy


Joined: 21 Nov 2014
Posts: 1920
Location: Germany

PostPosted: Wed 18 Jan 2017, 18:32    Post subject:  Separators in XML  

Hi.

Anyone knows how to create a true separator item in a AppInfo.xml file (RoxApps XML) ?

Currently I'm using a fake separator item:
Code:
<!-- Separator -->
<Item icon="noicon" option="-noaction">
   <Label></Label>
</Item>

Though, would like to use a true separator item instead.

Thanks.

_________________
RSH

Wer böses sagt wider mich und die Meinen, der gehe nach Hause und betrachte sich und die Seinen.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 9845
Location: Gatineau (Qc), Canada

PostPosted: Wed 18 Jan 2017, 19:25    Post subject:  

Not me! Sad

But perhaps a good search engine will bring you closer to your goal?
Such as...
http://www.ask.com/web?q=separators+in+XML&page=2&l=dir&qid=9AE8A3B6DDE858532DBD9C7D942F57EE&o=0&qsrc=998&qo=pagination

Good luck!

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1920
Location: Germany

PostPosted: Wed 18 Jan 2017, 21:22    Post subject:  

I searched the web already for this. Couldn't find anything that works in the AppInfo.xml file of a RoxApp.

I'd tried everything that I could find related to separators and xml. Nothing worked!

Crap AppInfo.xml file. The JWM xml files can handle separators very well.

Even the "EXPERTS" from IRC chat #rox couldn't give any useful clue. One mentioned the xml files at /etc/xdg/menus. Of course he even didn't understand a minimum of what I was asking for.

After appr. one hour or so I was leaving the chat by message:
Quote:
Ok, I see. Lots of experts over here.

Evil or Very Mad Pure Joy! Laughing

_________________
RSH

Wer böses sagt wider mich und die Meinen, der gehe nach Hause und betrachte sich und die Seinen.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1227
Location: Japan

PostPosted: Wed 18 Jan 2017, 22:07    Post subject: Re: Separators in XML  

LazY Puppy wrote:
Currently I'm using a fake separator item:
...
Though, would like to use a true separator item instead.
OK, you are using a fake item, but this gets you a nice, true separator, so where is the problem?
There is no separator tag documented. Most likely there is none.

Code:
<?xml version="1.0"?>
<AppInfo>
  <AppMenu>
    <Item option="-p=Default">
      <Label>Enable pinboard</Label>
    </Item>

   <Item><Label></Label></Item>

    <Item option="-p=">
      <Label>Disable pinboard</Label>
    </Item>
  </AppMenu>
</AppInfo>
false_item_true_separator.png
 Description   
 Filesize   10.67 KB
 Viewed   78 Time(s)

false_item_true_separator.png

Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1920
Location: Germany

PostPosted: Wed 18 Jan 2017, 22:24    Post subject:  

The problem is:

- when scrolling through the menu by keyboard, it is taken as an item, while a true separator will be skipped
- needs to define a No-Action action (otherwise a click on that fake separator executes the default action at *) ;; in AppRun)

AppInfo.xml wrote:
<!-- Separator -->
<Item icon="noicon" option="-noaction">
<Label></Label>
</Item>


AppRun wrote:
# The-RoxAppMenu-Separator-Item - do not change or remove this !!!
-noaction) # No Action for the fake separator item
echo "Separator clicked" >/dev/null
;;


Using this for years now, though just thought to update this somehow...

_________________
RSH

Wer böses sagt wider mich und die Meinen, der gehe nach Hause und betrachte sich und die Seinen.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 1227
Location: Japan

PostPosted: Wed 18 Jan 2017, 22:49    Post subject:  

Yes, you are right. Not so nice after all Crying or Very sad

My first thought was to create a multiline label
Code:
    <Item option="-p=Default">
      <Label>Enable pinboard
---------------------</Label>
    </Item>

This would avoid the problems you mentioned but would not look great.
false_separator.png
 Description   
 Filesize   10.94 KB
 Viewed   68 Time(s)

false_separator.png

Back to top
View user's profile Send private message 
LazY Puppy


Joined: 21 Nov 2014
Posts: 1920
Location: Germany

PostPosted: Thu 19 Jan 2017, 10:16    Post subject:  

I think I will stay with my "solution". Wink
_________________
RSH

Wer böses sagt wider mich und die Meinen, der gehe nach Hause und betrachte sich und die Seinen.
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [7 Posts]  
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.0337s ][ Queries: 12 (0.0023s) ][ GZIP on ]