Creating a buttonbar for use in PuppyLinux

A home for all kinds of Puppy related projects
Message
Author
User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

#31 Post by richard.a »

jonyo wrote:
richard.a wrote:That thread is here
Can't access the link?
Must be a portion of their forums that requires a subscription, though I can't think why except for creating an elitist feeling :)

I didn't say anything more of interest though, posted the same graphic and there were a couple of other graphics posted by others, showing similar stuff.


Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

jonyo

#32 Post by jonyo »

Thx. Is that subscription something you have to pay for?

jayz
Posts: 9
Joined: Tue 03 Jun 2008, 15:28
Contact:

gtk buttonbars

#33 Post by jayz »

Is there a way to refresh gtk button bars? In some cases they stop working once I have click on one button.
Also, is there a way to launch a jwm tray form a jwm tray, or a menu entry?
I have puppy 3.01 and changed richard.a's scripts from 'gtkdialog' to 'gtkdialog3'.
Learn to laugh at your troubles and you'll never run out of things to laugh at. [Walt Kelly]

User avatar
HairyWill
Posts: 2928
Joined: Fri 26 May 2006, 23:29
Location: Southampton, UK

Re: gtk buttonbars

#34 Post by HairyWill »

jayz wrote:Also, is there a way to launch a jwm tray form a jwm tray, or a menu entry?
I know a fair bit about jwm configuration and don't think this is possible. I think the trays must be created when jwm starts and can either be visible or hidden. As far as I know the only event that can be used to toggle that status is the mouse moving over the 1 pixel wide exposed strip
Will
contribute: [url=http://www.puppylinux.org]community website[/url], [url=http://tinyurl.com/6c3nm6]screenshots[/url], [url=http://tinyurl.com/6j2gbz]puplets[/url], [url=http://tinyurl.com/57gykn]wiki[/url], [url=http://tinyurl.com/5dgr83]rss[/url]

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

Re: gtk buttonbars

#35 Post by richard.a »

jonyo wrote:Thx. Is that subscription something you have to pay for?
Sorry to not have seen this before.

No cost to the subscription. I think I may have saved it online somewhere... let me know if you'd like me to post the saved url.

jayz wrote:Is there a way to refresh gtk button bars? In some cases they stop working once I have click on one button.
I've noticed this also. Investigating, I've found what I think causes it, but not how to fix it.

It doesn't seem to happen if you click on a link that doesn't work - like starting a non-existent application. Or one that that is working properly.

It seems to happen when you click on a link that fails because the appllication did not start properly, or is broken in other ways. Most times the solution is to close the application if you can.

Often using the kill facility will still leave the bar gasping for breath, so you will need to kill the bar (using the menu from the left-hand button common to all windows) and reopen it :(

jayz wrote:I have puppy 3.01 and changed richard.a's scripts from 'gtkdialog' to 'gtkdialog3'.
Thanks, that's good to know :)

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

jayz
Posts: 9
Joined: Tue 03 Jun 2008, 15:28
Contact:

buttonbars

#36 Post by jayz »

OK. thanks to Richard.a and HairyWill. I like the idea of making buttonbars from things that are already in Puppy.
Learn to laugh at your troubles and you'll never run out of things to laugh at. [Walt Kelly]

jayz
Posts: 9
Joined: Tue 03 Jun 2008, 15:28
Contact:

buttonbars

#37 Post by jayz »

Keep gtk buttonbar active.
End each action command with an ampersand.
Example:
<action>exec beep-media-player &</action>
From gtkdialog2.txt:
Commands usually can be run in the background by
writing a `&' as last character, so the subshell will not wait
the program to complete.

This works on the three examples I have tried so far.
Learn to laugh at your troubles and you'll never run out of things to laugh at. [Walt Kelly]

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

Re: buttonbars

#38 Post by richard.a »

jayz wrote:Keep gtk buttonbar active.
End each action command with an ampersand.
Example:
<action>exec beep-media-player &</action>
From gtkdialog2.txt:
Commands usually can be run in the background by
writing a `&' as last character, so the subshell will not wait
the program to complete.

This works on the three examples I have tried so far.
Thankyou, I completely overlooked that :(


Completely off topic, re your signature
parenthesis sinister laugh parenthesis
I was reminded of the unofficial definition of the LISP language...
Lost In Stupid Parentheses :) :D
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

nic2109
Posts: 405
Joined: Mon 01 Jan 2007, 20:24
Location: Hayslope, near Middlemarch, Midlands, England

Re: buttonbars

#39 Post by nic2109 »

richard.a wrote: Completely off topic, re your signature
parenthesis sinister laugh parenthesis
I was reminded of the unofficial definition of the LISP language...
Lost In Stupid Parentheses :) :D
..... and I was reminded of the equally unofficial definition of PERL : Pathologocally Eclectic Rubbish Lister.
[color=darkblue][b][size=150]Nick[/size][/b][/color]

yangmusa
Posts: 21
Joined: Fri 10 Aug 2007, 20:36

#40 Post by yangmusa »

Dougal wrote:Note that JWM allows multiple "trays" (panels), so you can just add at the bottom of jwmrc an include for jwmrc-tray2, then create it with only buttons -- it can be positioned anywhere along the edges of the screen, vertical or horizontal.
I tried this last night, but with no luck. This is what I did:
  • 1) added include for jwmrc-tray2 in jwmrc
    2) created jwmrc-tray2 based on jwmrc-tray. Added buttons with the same syntax as used in jwmrc-tray.
    3) restart jwm.
    4) I don't see my extra tray...
However, there are some uncertainties here. I'd like to have tray 2 at the top center of the screen, with autohide on. Using halign=center and valign=top seems fairly obvious, but then there's the x and y coordinates? I've looked at JWM's homepage, but it doesn't go into detail. Does anyone know what I need to add?

thanks, Magnus

UPDATE: I meant to add - searching for all the "obvious" terms didn't bring up anything useful in the forum or the wiki. However, I was browsing the now huge JWM theme repository, and just happened to come across something that looks like it's what I need:
  • Tray autohide="true" insert="right" x="0" y="-1" valign="top" halign="center" height="48"
So, unless anyone knows differently, I'll try that! It looks like I don't need to change the x,y coordinates between the top & bottom trays.

User avatar
richard.a
Posts: 513
Joined: Tue 15 Aug 2006, 08:00
Location: Adelaide, South Australia

Re: gtk buttonbars

#41 Post by richard.a »

jayz wrote:I have puppy 3.01 and changed richard.a's scripts from 'gtkdialog' to 'gtkdialog3'.
Ummmm I finally got around to trying it with 4.12 and while it allows bars to launch, it replaces the name of every bar with "gtkdialog".

Anyone got any ideas how to fix this?

Richard
[i]Have you noticed editing is always needed for the inevitable typos that weren't there when you hit the "post" button?[/i]

[img]http://micro-hard.dreamhosters.com/416434.png[/img]

User avatar
harii4
Posts: 448
Joined: Fri 30 Jan 2009, 04:08
Location: La Porte City, IA , U.S.A.
Contact:

#42 Post by harii4 »

very useful thread.
:)

User avatar
DaveS
Posts: 3685
Joined: Thu 09 Oct 2008, 16:01
Location: UK

#43 Post by DaveS »

harii4 wrote:very useful thread.
:)
You might find this useful too http://www.murga-linux.com/puppy/viewtopic.php?t=46829
Spup Frugal HD and USB
Root forever!

Post Reply