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 20 Aug 2014, 12:48
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
GtkDialog - tips
Post new topic   Reply to topic View previous topic :: View next topic
Page 36 of 64 [947 Posts]   Goto page: Previous 1, 2, 3, ..., 34, 35, 36, 37, 38, ..., 62, 63, 64 Next
Author Message
zigbert


Joined: 29 Mar 2006
Posts: 5673
Location: Valåmoen, Norway

PostPosted: Tue 21 Jun 2011, 17:04    Post subject:  

smokey01
This is already supported

Code:
#!/bin/sh

export ok_box='
<window>
 <vbox>
  <text><label>press _enter_ to activate OK-button</label></text>
  <hbox>
   <button can-default="true" has-default="true" use-stock="true">
    <input file icon="gtk-ok"></input>
    <label>Ok</label>
   </button>
  </hbox>
 </vbox>
</window>'
gtkdialog3 -p ok_box

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
smokey01


Joined: 30 Dec 2006
Posts: 1801
Location: South Australia

PostPosted: Tue 21 Jun 2011, 17:43    Post subject:  

Thanks Zigbert. I have been trying to find that for ages.
_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
Back to top
View user's profile Send private message Visit poster's website 
sc0ttman


Joined: 16 Sep 2009
Posts: 2376
Location: UK

PostPosted: Tue 21 Jun 2011, 18:02    Post subject:  

zigbert wrote:
sc0ttman
What is wrong with using yad, bacon or xdialog?

Nothing, I wasn't saying people should avoid them - I love Xdialog.. Yad is nice too.. Haven't tried bacon, but I bet it's also nice.. But, for example, Yad requires a fairly new GTK, so GTK Dialog will work on systems where Yad does not..

I just think maybe we could ask others, who prefer Yad, what they think is missing in GTK-Dialog ...
Just a suggestion.

zigbert wrote:
regarding backwards compatibility, what is the problem with fixing the xml code in IPConfig or other. The big deal about gtkdialog (as I see it) is that

Would just be nice if all the existing scripts we have in Puppy (many of which are no longer maintained by anyone in particular) still work as they are, that's all.

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5673
Location: Valåmoen, Norway

PostPosted: Wed 22 Jun 2011, 02:37    Post subject:  

smokey01 wrote:
Thanks Zigbert. I have been trying to find that for ages.
I have added the tip to the main post
_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
zigbert


Joined: 29 Mar 2006
Posts: 5673
Location: Valåmoen, Norway

PostPosted: Wed 22 Jun 2011, 02:52    Post subject:  

sc0ttman
Don't get me wrong, I see nothing bad in either extended features or backward compatibility...... But I see thunor in a vulnerable position. He will likely get bombed with requests of new heavy tasks. I think we should motivate and help him instead of asking him to save the world.

I see it often when I ask for help/suggestions that the replies is; 'I would like to see this/that feature'...... instead of actually help out. I don't say that the suggester should implement the feature, but if he really investigated the issue, he probably could be of great help with his new knowledge. Most often, I get a link to a web-page, and the user might think he helped out....... I don't know?


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3363
Location: Oregon

PostPosted: Wed 22 Jun 2011, 03:04    Post subject:  

In my case, beside looking at Zigbert's GTKDialog - tips, I assumed and still do to an extent that I can learn of some of the possible additions by examining the GTK and GTK+ source code.

Am I wrong there?
Back to top
View user's profile Send private message 
thunor


Joined: 14 Oct 2010
Posts: 350
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings

PostPosted: Wed 22 Jun 2011, 09:23    Post subject:  

zigbert, I'll get back to you on your list in the future Smile

8-bit wrote:
One thing I am a little concerned about is that Puppy was using gtkdialog3.
And all your scripts show using gtkdialog, which was the starting one and went from it to gtkdialog2 and finally 3.
I realize I can create syslinks for gtkdialog using other version names.
The reason for the syslinks is so existing gtkdialog scripts used in Puppy will still work.

I've placed and will place a note atop examples about the version required and how to deal with the possibility of a "gtkdialog" name conflict on Puppy Linux Smile Other than that, the binary renaming on Puppy doesn't involve me.

sc0ttman wrote:
I would like to see a very high priority put into making backwards compatibility 100% stable..

For example, the IPConfig tool breaks (in Wary, I think) when the new gtkdialog is used, apparently..
...
I have heard lots of people prefer Yad to GTK-Dialog..

...but users on this forum are now creating more and more Yad GUIs...

I'm not aware that I have broken anything. I haven't replaced code, I've added code to support new functionality. I agree that backwards compatibility is important, but equally so is maintaining applications.

I can't comment on "IPConfig" as I'm using lupu-520 and I don't have it (or can't find it). Feel free to use the issue tracking system if you think it's a problem with gtkdialog[-0.7.21 SVN].

I don't want to take over the world! Razz Folk can use whatever dev-tools they like.

Regards,
Thunor
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Wed 22 Jun 2011, 10:20    Post subject:  

thunor wrote:

I've placed and will place a note atop examples about the version required and how to deal with the possibility of a "gtkdialog" name conflict on Puppy Linux Smile Other than that, the binary renaming on Puppy doesn't involve me.


Come on 8-bit! We all know this is a dev thread Smile (no offence intended)

Gtkdialog is an entire Linux (Unix, BSD too I guess) thing, and as a matter of fact I did a checkout of r10 the other day on Mageia to test a script I produced. No problem.
Code:
#hack for puppylinux
if [ "$(which gtkdialog)" = "" ]; then GTKDIALOG="gtkdialog3"
 else  GTKDIALOG="gtkdialog"
fi

If I make a script meant to be "cross linux" (to coin a phrase Wink ) I shove that some where near the start.

###

thunor, that tree example you gave should go in the official examples. works well here.

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
thunor


Joined: 14 Oct 2010
Posts: 350
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings

PostPosted: Wed 22 Jun 2011, 13:41    Post subject:  

Hi zigbert

I've added a feauture request for your issues.

Regards,
Thunor

Last edited by thunor on Thu 23 Jun 2011, 06:24; edited 1 time in total
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3363
Location: Oregon

PostPosted: Wed 22 Jun 2011, 14:46    Post subject:  

Ok to development.
So I will try to get back on track with this.
In /usr/share/doc/gtkdialog3 there is a short example program called 07.02-list_actions.
It is supposed to let one choose an item in a list and perform an action using it.
But it does not work right and could use some investigation.

Those writing scripts have avoided it because for some reason, it uses lots of processor time and one has to kill the script to exit.

When I first ran that example script, I thought since it was included, it should work.

If this is not a constructive back-on-track suggestion, I will just test scripts and try to keep up with changes to gtkdialog.
Back to top
View user's profile Send private message 
Dougal


Joined: 19 Oct 2005
Posts: 2505
Location: Hell more grotesque than any medieval woodcut

PostPosted: Wed 22 Jun 2011, 15:18    Post subject:  

Folks, I've started a thread for gtkdialog development. Better use that.
_________________
What's the ugliest part of your body?
Some say your nose
Some say your toes
But I think it's your mind
Back to top
View user's profile Send private message 
zigbert


Joined: 29 Mar 2006
Posts: 5673
Location: Valåmoen, Norway

PostPosted: Wed 22 Jun 2011, 16:04    Post subject:  

8-bit wrote:
Ok to development.
So I will try to get back on track with this.
In /usr/share/doc/gtkdialog3 there is a short example program called 07.02-list_actions.
It is supposed to let one choose an item in a list and perform an action using it.
But it does not work right and could use some investigation.

Those writing scripts have avoided it because for some reason, it uses lots of processor time and one has to kill the script to exit.

When I first ran that example script, I thought since it was included, it should work.

If this is not a constructive back-on-track suggestion, I will just test scripts and try to keep up with changes to gtkdialog.
I think the <tree> widget will cover all of the <list> functions now that thunor has added the selection-mode option.


Sigmund

_________________
Stardust resources
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Thu 23 Jun 2011, 18:27    Post subject:  

sc0ttman wrote:

I don't want to nag about new widgets or heavy new features.
I would like to see a very high priority put into making backwards compatibility 100% stable..

For example, the IPConfig tool breaks (in Wary, I think) when the new gtkdialog is used, apparently...

Hi sc0ttman

if you used the exec I posted then it did break some stuff due to being compiled in a later puppy version. I recompiled in 431 and it seems solid now. You'll find it hidden in the games section Wink .

_________________
Woof Mailing List | keep the faith Cool |
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Fri 24 Jun 2011, 02:34    Post subject:  

sc0ttman wrote:
zigbert wrote:
sc0ttman
What is wrong with using yad, bacon or xdialog?

Nothing, I wasn't saying people should avoid them - I love Xdialog.. Yad is nice too.. Haven't tried bacon, but I bet it's also nice.. But, for example, Yad requires a fairly new GTK, so GTK Dialog will work on systems where Yad does not..

I just think maybe we could ask others, who prefer Yad, what they think is missing in GTK-Dialog ...

The guys at Slitaz mention a couple of things they prefer about Yad at http://hg.slitaz.org/slitaz-dev-tools/raw-file/tip/tazyad/README. I guess if you look around you'll probably find they had a discussion somewhere where more were mentioned.

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6427
Location: Auckland, New Zealand

PostPosted: Fri 24 Jun 2011, 02:55    Post subject:  

BTW, Great work thunor!
Thanks

_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 36 of 64 [947 Posts]   Goto page: Previous 1, 2, 3, ..., 34, 35, 36, 37, 38, ..., 62, 63, 64 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.1025s ][ Queries: 12 (0.0130s) ][ GZIP on ]