The time now is Sat 18 May 2013, 14:36
All times are UTC - 4 |
| Author |
Message |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 20 Feb 2008, 20:29 Post subject:
Advanced menu (prototype, working) |
|
this is far from being finished.
You also need a "puppyfied" /etc/xdg/menus/applications.menu:
http://murga-linux.com/puppy/viewtopic.php?mode=attach&id=7899
( from http://murga-linux.com/puppy/viewtopic.php?t=25925 )
Requires GtkBasic 003.
It reads in /etc/xdg/menus/applications.menu to build the category-structure, then checks if something changed in /usr/share/applications/ (the *.desktop files that contain menu names, executables, icons).
If yes, it re-scans the *.desktop-files, and creates /root/.Gtbmenu/cached.menu
(So this will be created in any case you run it the first time)
To rebuild the cache on my system (with many KDE files), it needs 12 seconds.
Puppys fixmenus needs 50 seconds.
This may slow down in future with subcategories and planned Icon-file search as used in the GtkBasic-Panel.
It has a simplified menustructure like jwm, but even simpler (currently no subcategories yet).
It could be used by other menu-programs, as it is easy to convert.
If you just want to use it as converter, run it like
GtBmenu -consolemode=1
This forces to rebuild the menu, and then exits without displaying the Gtk-based interface.
The interface currently does not use the "menu" widget, but consists of 2 clists, and displays no icons yet.
The clist-based interface will make it easy to add an "edit" option.
A menu-widget might follow later, I did not check yet if that works in GtkBasic already.
As I said: prototype
The XDG-syntax is not fully supported.
Not working: And , Or.
Partially working: Not (but not nested ones)
Good night,
Mark
 |
| Description |
|

Download |
| Filename |
GtBmenu.pup |
| Filesize |
19.42 KB |
| Downloaded |
355 Time(s) |
| Description |
|
| Filesize |
47.34 KB |
| Viewed |
964 Time(s) |

|
_________________ my recommended links
Last edited by MU on Wed 05 Mar 2008, 15:38; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 22 Feb 2008, 22:47 Post subject:
|
|
I made quite some progress.
It is usable now, though some things must be fixed and added for a productive release.
You can run programs or edit their entries by checking a checkbox.
Some more parameters are supported, like -popup=1.
That will show it without titlebar, what gives a nicer visual integration in toolbars or so.
I added a script "bottom-menu".
Drag it on your desktop and click on it, to open the menu where normally the JWM/Icewm menu appears.
I soon will add a button that "flows" over the JWM/Icewm -menubutton.
On my system (P700) the menu needs 2-3 seconds to start.
This is slightly slower than the icewm-menu, when that has loaded all pictures.
But Icewm often has a large delay the first time it is opened, so you wait more than 15 seconds (not counting the time for fixmenus!).
So my solution seems to be quite speedy.
Icons are searched in many locations, the final cached.menu contains the full pathname and filename.
Like this also the KDE .desktop-files work, that often just call their icons "example" instead of "/usr/share/icons/default.kde/16x16/apps/example.png".
This feature slows down rebuilding the cache (the internal equivalent of "fixmenus"), it now needs 30 seconds instead of 12.
In a test without the KDE files, it needs 10 seconds. Not so bad though.
Todo: It now also scans /root/.local/share/applications, but does not check it yet for changes.
Todo: add exporters for JWM/Icewm/lxpanel.
To try it, you MUST install GtkBasic 003 again, as I just uploaded an extended version. The old one could not handle all those objects (over 1000 pixmaps for internal scaling and such).
Mark
 |
| Description |
|
| Filesize |
98.12 KB |
| Viewed |
664 Time(s) |

|
_________________ my recommended links
Last edited by MU on Fri 22 Feb 2008, 23:07; edited 2 times in total
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 22 Feb 2008, 23:00 Post subject:
|
|
Moin.
Hope you slept well Mark
. . . not still coding?
This with XDG and language support will give fantastic flexibility
to Muppy, Puppy and those developing their specific need remasters
woof woof
_________________ Puppy WIKI
Last edited by Lobster on Thu 28 Feb 2008, 04:50; edited 1 time in total
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Fri 22 Feb 2008, 23:50 Post subject:
|
|
Good morning Ed,
yesterday I did not code, as I'm a bit ill.
Today it is better.
The sine-generator in my head just creates a light hissing sound, not a strong sine-wave as yesterday.
I have this "tinitus" when I am not in good health or had too much noise around me.
However it was better today, and I could continue.
Now Im not really tired yet, but too unconcentrated to continue coding.
Wish you a very nice weekend
You are often very early up in the morning, right?
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Wed 27 Feb 2008, 19:45 Post subject:
|
|
No new upload today.
Just some info to keep you informed.
I made enhancements, now the menu starts showing only a button on the desktop. To load it, takes 2-3 seconds - once.
This button can cover the JWM or Icewm menubutton.
If you click on this button, the menu is shown - immedeatly without any delay.
So now the whole application must not start from new, each time you want to see the menu.
I currently extend this code, so that it can be used as a plugin in the GtkBasic-Panel.
It already integrates as a big button, that displays the cached menu on click.
I now must add the code, that generates the cache.
Then some more conditions that check, if it runs as standalone application or as plugin.
I hope I can finish that tomorrow.
Then update some code of the panel to use some of the new functions of GtkBasic, what gets rid of several warnings and should slightly new speed (though on my P700 it runs already very fast).
When that is done, I'll upload it (so hopefully in 2 days).
I then will continue to add a settings-dialog to the panel.
Then it should be finished for the moment, and I could continue on the MIME-System.
The attached screenshot shows it running as plugin in the panel.
Mark
 |
| Description |
|
| Filesize |
51.79 KB |
| Viewed |
845 Time(s) |

|
_________________ my recommended links
|
|
Back to top
|
|
 |
zigbert

Joined: 29 Mar 2006 Posts: 5240 Location: Valåmoen, Norway
|
Posted: Thu 28 Feb 2008, 03:23 Post subject:
|
|
Hi Mark.
This sounds like a hit. I wouldn't be surprised if we now see gtkbasic again in the official Puppy. - Only this menu-app could be worth it.
I have a suggestion: It would be perfect with a search-file/web-field. If the search command also could be user-defined, I could finally get Pfind (or other) closer to the Puppy-starting-point. pfind -c searchtext skips Pfind start-gui. It shows progress-dialog and ends with an overview with the hits.
Sigmund
_________________ Stardust resources
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Thu 28 Feb 2008, 05:18 Post subject:
|
|
| Quote: | | You are often very early up in the morning, right? |
Yes.
At the moment I am nursing some Dill seeds (Yum with fish) and growing tomato and parsley seedlings ( also to go with fish - is there a pattern emerging . . .)
Growing plants are part of the ultimate form of evolutionary coding.
So I am working on a menu too - just a different sort . . .
I hope to be working on a mantra soon (every boddhisattva needs a mantra). Part of it will be 'moin'.
http://tmxxine.com/wik/wikka.php?wakka=NewBodhis
I will be awaiting signs of guidance (even if totally imagined)
I hope this amuses you and your friends and is not
amiss or embarrassing in any way . . .
It serves several purposes:
1. Ensure I am certifiably insane
2. Provide hope to programmers too busy
to take care of their spiritual needs
3. Generate goodwill, harmony and laughter
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Eyes-Only

Joined: 10 Aug 2006 Posts: 1020 Location: La Confederation Abenaquaise
|
Posted: Thu 28 Feb 2008, 15:17 Post subject:
|
|
Looking at this Mark my eyes go wide and about all I can say is: WOW! I'm near speechless over this project of yours!
Do you think it will likewise work for such window managers as Fluxbox as well? Particularly if we're using the ROX desktop with Fluxbox?
Another question: Do you think this will work on other distros too? Besides Puppy I spend a lot of time in Linux Mint and use either my own install of IceWM or Fluxbox with the ROX desktop and pinboard (for icon/wallpaper support obviously ), very seldom ever using the Gnome desktop provided. It would be interesting to see if this would work in there, Mint, as well, but I'm not sure if it has Gtkbasic003...
At any rate my friend---keep up the fabulous work! You never cease to amaze me, and you always inspire me!
Mazzel/mfg!
Eyes-Only
"L'Peau-Rouge"
_________________ *~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog.
*~*~*~*~*~*
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Thu 28 Feb 2008, 18:34 Post subject:
|
|
Lobster,
| Quote: | I hope this amuses you and your friends and is not
amiss or embarrassing in any way . . . |
yes, that is ok
Jimmy,
thank you.
I meanwhile almost finished the integration in the panel, but a bug appears, the text disapears after 100 clicks.
I will have to add a modification to solve that (organize the lists in a notebook maybe).
So no promise it is finished tomorrow, might take 1 more day.
| Quote: | | Do you think it will likewise work for such window managers as Fluxbox as well? Particularly if we're using the ROX desktop with Fluxbox? |
yes
| Quote: | | Another question: Do you think this will work on other distros too? |
It should.
GtkBasic just depends on Gtk2.
It is
/usr/bin/gtkbasic003
/usr/lib/wxbasicscript/
/usr/local/Gtkbasic-003/
If you copy those to another distro, it should work, as long as it is binary-compatible.
If it will not, I will try to help you to get it to work
Please note also this great enhancement Plinej made to lxpanel:
http://murga-linux.com/puppy/viewtopic.php?t=25118
He has achived a dramatic speed-improvement.
Mark
_________________ my recommended links
|
|
Back to top
|
|
 |
Eyes-Only

Joined: 10 Aug 2006 Posts: 1020 Location: La Confederation Abenaquaise
|
Posted: Fri 29 Feb 2008, 12:24 Post subject:
|
|
No problem on when you release this Mark as it may be awhile before I can even get the chance to try it. I've been busy since yesterday (Thursday) and I don't see that stopping much before Monday when I'll have time to myself. Also, when I get this busy there are "other things" I must watch out for health-wise. But I am anxious to give this a try in the three distros I use the most! I like in one of the screenies how you had it added as a type of "additional menu" beside the regular IceWM menu. That was very nice! (Even in Mint and PCLOS I prefer using IceWM as default. In Mint it even looks like Gnome. )
Yes, I saw plinej's work on LXpanel! Very Impressive! I've been toying with the idea of giving that a try on my Mint/PCLOS as both have OpenBox installed and I could use that as the taskbar.
So many things to play with... and so little time! hehe!
Mazzel Mark and have a great weekend over there, okie my friend?
mfg,
Eyes-Only
"L'Peau-Rouge"
_________________ *~*~*~*~*~*
Proud user of LXpup and 3-Headed Dog.
*~*~*~*~*~*
|
|
Back to top
|
|
 |
|
|
|
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
|