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 Mon 20 Oct 2014, 09:47
All times are UTC - 4
 Forum index » Off-Topic Area » Programming
GtkDialog1-1.3
Post new topic   Reply to topic View previous topic :: View next topic
Page 8 of 14 [207 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, 11, 12, 13, 14 Next
Author Message
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 27 Mar 2012, 12:36    Post subject:  

Required configuring --with-gtk=2.0 (since 2.0 uses a different configuration system re glib-config). I installed to a /tmp folder and tried it out.
Code:

/tmp/gtkdialog1-1.0/usr/local/bin/gtkdialog1: unrecognized option '-G'


Probably DESTDIR didn't get all the needed files ?

edit: Oh....I see...still testing....

Seems like I'd have to rewrite all the scripts to even test it out. No geometry,
etc.,etc.,

Code:

Error in line 2, near token 'window title=': syntax error
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Tue 27 Mar 2012, 12:52    Post subject:  

jpeps: Thanks for testing! Its puppy gktdialog2...

Geometry is supported - use "-g" - ex.:
Code:
-g +400+200


Maybe try the examples to get an idea of what is running?

I will add that to the printout of gtkdialog1 --help in next update.
Back to top
View user's profile Send private message Visit poster's website 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 27 Mar 2012, 13:23    Post subject:  

gtkdialog geometry requires -G to run.

next:
Code:

Error in line 2, near token 'window icon-name=': syntax error


Removed icon-name, then

Code:

Error in line 2, near token '<window>': Unknown tag.


removed <window> blocks, then
Code:

Error in line 24, near token 'fs-action=': syntax error

I was more interested in how it works with the present scripts.
Back to top
View user's profile Send private message 
amigo

Joined: 02 Apr 2007
Posts: 2257

PostPosted: Tue 27 Mar 2012, 13:41    Post subject:  

You will no doubt find many, many things that do not work if trying it with recent gtkdialog(3) or gtkdialog(4) scripts. gtkdialog3 (thats from 0.7.0 to 0.7.20 adds a few widgets and subtly uses extra attributes which are not supported by this version. gtkdialog4 (thunor's work) adds widgets *by the dozens*. We will porbably never catch up with that, although we are planning to backport fetures adn fixes from the 0.7.x series, at least.

The point of this tool is to be able to use the same scripts with either the gtk1 or gtk2 toolkit -without needing to make any changes to the scripts. Probably only the earliest puppy gtkdialog scripts will work unchanged with this tool as it is now. As goingnuts said, see the included examples to see what should be working -there is lots of room for improvement in the examples and documents which we are working on.
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 27 Mar 2012, 14:00    Post subject:  

gotcha....thanks
Back to top
View user's profile Send private message 
disciple

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

PostPosted: Tue 27 Mar 2012, 17:12    Post subject:  

goingnuts wrote:
disciple: Thanks for pointing at gwhere - seems to be a gently modded fileselect - but without trees and icons.

What is that thing on the left hand side then? http://www.gwhere.org/screenshots/screenshot02.png
Am I misunderstanding something?

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

Joined: 07 Dec 2008
Posts: 781

PostPosted: Tue 27 Mar 2012, 17:34    Post subject:  

disciple: No - I am. I thought you meant the fileselect - thanks for pointing that out! I will look again - just haven't fully understood the purpose of gwhere (or did not find documentation that could enlighten me) Embarassed
snap0009.png
 Description   
 Filesize   58.12 KB
 Viewed   559 Time(s)

snap0009.png

Back to top
View user's profile Send private message Visit poster's website 
disciple

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

PostPosted: Tue 27 Mar 2012, 17:38    Post subject:  

Gwhere is basically for cataloging the contents of removable disks. Put a disk in and mount it then run Gwhere and use the "Management" tab to add the disk to the catalogue.
_________________
DEATH TO SPREADSHEETS
- - -
Classic Puppy quotes
- - -
Beware the demented serfers!
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 27 Mar 2012, 18:56    Post subject:  

As we progress toward gtkdialog4, we should have a todo list for each unsupported tag and its associated properties. The previously mentioned <window title="..." etc...> can be fixed with a sed script to be <wtitle>...</wtitle>... Other tags could be added and ignored similar to amigo's comment tag ... In fact printf tag:property to stderr could be the default for unrecognized tags. Does someone have a list of unsupported tags/properties BTW?

@goingnuts - any thought on a swallow example that would turn rxvt into mrxvt+ using notebook tabs.

_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Tue 27 Mar 2012, 19:59    Post subject:  

technosaurus wrote:

@goingnuts - any thought on a swallow example that would turn rxvt into mrxvt+ using notebook tabs.


note on mrxvt...it's great, as long as you have a script to keep closing out orphaned processes.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4353

PostPosted: Tue 27 Mar 2012, 21:44    Post subject:  

jpeps wrote:
note on mrxvt...it's great, as long as you have a script to keep closing out orphaned processes.
yes, mrxvt has a few annoying bugs like that - thus my interest in swallowing rxvt/urxvt/xvt/st instead... it may be worth it to instead make a standalone gtk enhanced version of tabbed ... though I would like to implement geany-like close buttons into the notebook tabs - that has been missing in gtkdialog afaik. If I could just wedge a flat button in with the label, all it would need is a callback with a widget_hide (I may do some experimenting with minimum profit text editor, to see if I could add it there as a practice excercise first)
_________________
Web Programming - Pet Packaging 100 & 101
Back to top
View user's profile Send private message 
jpeps

Joined: 31 May 2008
Posts: 3220

PostPosted: Wed 28 Mar 2012, 00:12    Post subject:  

Something like FvwmTabs

http://www.fvwm.org/documentation/manpages/unstable/FvwmTabs.php
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Wed 28 Mar 2012, 01:18    Post subject:  

technosaurus wrote:
As we progress toward gtkdialog4, we should have a todo list for each unsupported tag and its associated properties. The previously mentioned <window title="..." etc...> can be fixed with a sed script to be <wtitle>...</wtitle>... Other tags could be added and ignored similar to amigo's comment tag ... In fact printf tag:property to stderr could be the default for unrecognized tags. Does someone have a list of unsupported tags/properties BTW?

@goingnuts - any thought on a swallow example that would turn rxvt into mrxvt+ using notebook tabs.


I have no list but it would be handy to have...I have tried to add lexer rules from 0.7.20 to gtkdialog1 rules but until now without success.

The present swallow-widget is very dependent on the window name and it seems that a lot of programs alter the window name so it does not reflect the program name. rxvt only have one window with a name it seems - several instances of rxvt seems to be children with no name.

If the swallow widget should make it into gtkdialog1 I think it should be recoded to act on a windowID which the gtkdialog-script is responsible for finding (could be via xwininfo or other apps able of identifying windowID). That would also eliminate the problem of parsing window-names containing spaces...
I still lack to prove that it actually can be part of the GUI in gtkdialog1 as it is a standalone pop-up atm.

A second thought: The steal-socket depends on the client window being present to work - this might give initial windows flowing around before they are captured. So if the swallow widget could be responsible for both launching and stealing the client program...and we could the use the socket-plug/unplug gtk-mechanism (just like the gvim) in gtkdialog1..then the swallow-widget could stay as a standalone program...
Back to top
View user's profile Send private message Visit poster's website 
amigo

Joined: 02 Apr 2007
Posts: 2257

PostPosted: Wed 28 Mar 2012, 07:07    Post subject:  

I'm sticking to some low-hanging fruit I see.

0.7.20 only implements 3 new tags as far as I can see. They are <separator>, <progressbar> and <window>
Just this morning I've back-ported the separator tag from 0.7.20. It's just for use as a menuitem though. So, I implemented an hseparator and vseparator which can be used between vbox/hbox/frame tags.
For the separator tag, I did it the 'cheap' way by 'downgrading' from the GTK2-only 'gtk_separator_menu_item_new' to the dual-use
'gtk_hseparator_new', although and ifdef could be used there to
preserve the original GTK2 call if it maes a difference.

We've talked about the progressbar before, and I agree it is low-priority. The <window> tag is a little more involved because of the attributes allowed. But it should be easy to back-port that too, rather than try to sed-out stuff rom later scripts.

I'm pretty sure there are other usage cases in modern gtkdiaog scripts which cause problems under gtk1 -similar to what was happening with the 'max-length' attribute when invoking an 'entry' widget -the gtk1 version of GtkEntry doesn't recognize the option.

Anyway, there are a few other things that can be backported, like the integration of the gtklauncher in to the main program. There are some items in the TODO list already -some GTK1 implementations are still incomplete...
Back to top
View user's profile Send private message 
goingnuts

Joined: 07 Dec 2008
Posts: 781

PostPosted: Wed 28 Mar 2012, 10:32    Post subject:  

The 'max-length' in entry is supported in gtk1 - forgot to tell you...
Cool with the additions! Just tested some of the examples from 0.7.20: A great deal of the syntax is accepted by gtkdialog1 but might not be supported though.
How to coordinate? I have a few modifications lying around too and if we start making syntax from 0.7.20 acceptable (but maybe not responsive), we need to keep things updated...
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 8 of 14 [207 Posts]   Goto page: Previous 1, 2, 3, ..., 6, 7, 8, 9, 10, 11, 12, 13, 14 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.1115s ][ Queries: 13 (0.0074s) ][ GZIP on ]