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 01 Sep 2014, 03:41
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Gtkdialog Development
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 34 of 55 [821 Posts]   Goto page: Previous 1, 2, 3, ..., 32, 33, 34, 35, 36, ..., 53, 54, 55 Next
Author Message
thunor


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

PostPosted: Wed 22 Aug 2012, 12:00    Post subject:  

zigbert wrote:
The issue with <checkbox> is similar to the <entry> - You can't actually rely on that it refreshes EVERY time.
...
I have made some extras in pMusic to overcome this issue. It now very seldom occur.
- For some reason <input>cat works better than <input file>
...

I tried other widgets such as edit and text and the same thing happened so if the input file is being updated regularly then developers will have to accept that there could be conflicts depending on the frequency.

You can duplicate this behaviour by running these two lines in separate terminals:
Code:

while [ true ]; do date > /tmp/test; sleep 0.1; done

while [ true ]; do echo /tmp/test="`cat /tmp/test`"; sleep 1; done

If you increase "sleep 0.1" more and more towards 1 then you'll experience fewer errors.

Everybody's going to have to design around minimising conflicts because otherwise I'm going to have to offer file locking.

Anyway, it's good that you have worked around it for pMusic Smile
Back to top
View user's profile Send private message Visit poster's website 
8-bit


Joined: 03 Apr 2007
Posts: 3364
Location: Oregon

PostPosted: Wed 22 Aug 2012, 13:22    Post subject:
Subject description: file display problem
 

In the example /usr/share/doc/gtkdialog/examples/text/text_advanced, how would one get fileselect to display the contents of the file selected in the txt0 windows instead of just the file name with path of the file?
I am open to a how to from anyone on how to do this.
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 Aug 2012, 18:15    Post subject:  

smokey01 wrote:
Thunor is there an IDE tool/interface for developing gtkdialog code similar to glade?

I really struggle sometimes although there is a lot of good advice here?

I see Barry is asking for the same tools a couple of posts back.

It would be great.

Gtkdialog-IDE

Gtkdialog apps are quite oftenly constructed using shell script so you may as well use Geany and get stuck in writing by hand from the outset. If you want to see what it looks like just run it Very Happy
Back to top
View user's profile Send private message Visit poster's website 
smokey01


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

PostPosted: Thu 23 Aug 2012, 04:23    Post subject:  

thunor wrote:
smokey01 wrote:
Thunor is there an IDE tool/interface for developing gtkdialog code similar to glade?

I really struggle sometimes although there is a lot of good advice here?

I see Barry is asking for the same tools a couple of posts back.

It would be great.

Gtkdialog-IDE

Gtkdialog apps are quite oftenly constructed using shell script so you may as well use Geany and get stuck in writing by hand from the outset. If you want to see what it looks like just run it Very Happy


I have already looked at Gtkdialog-IDE and its not as intuitive as I would like.
I am currently using Geary to write bash and gtkdialog but I was hoping to find something that would help me develop scripts much faster.

Thanks

_________________
Puppy Software <-> Distros <-> Puppy Linux Tips
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: Sat 25 Aug 2012, 11:46    Post subject:  

Added a terminal widget

Widget reference: terminal widget
Example: examples/terminal/terminal
Description: A VteTerminal widget that requires libvte support be built into gtkdialog at compile time although it's not mandatory.

You're going to need to know which version of gtk+ and glib you're running on your computer so that you can download the correct version of libvte. "pkg-config --modversion gtk+-2.0" will assist you with gtk+ and for glib use "pkg-config --modversion glib-2.0". I'm using lupu 520 and I discovered that I needed vte-0.27.2 by trial and error, but I have some information that might assist you:

The last version supporting GTK_REQUIRED=2.14.0 with GLIB_REQUIRED=2.22.0 is vte-0.24.3

The last version supporting GTK_REQUIRED=2.20.0 with GLIB_REQUIRED=2.22.0 is vte-0.27.2 (suitable for lupu 520)

The last version supporting GTK_REQUIRED=2.20.0 with GLIB_REQUIRED=2.26.0 is vte-0.28.2

vte-0.29.0 and above are for gtk+3.

You can locate GTK_REQUIRED and GLIB_REQUIRED in "configure.in" within the libvte package.

Within gtkdialog's configure.in I have set the minimum version of libvte to be 0.24.3, but if you need to go back further than that then change it to the version that you've downloaded and let me know and I'll update the code. You're going to want to run "make clean && make" after editing configure.in to be certain everything is up-to-date.

Compiling and Installing libvte
It's the usual "./configure --prefix=/usr && make && make install". It'll install lots of "vte-0.0.mo" files into /usr/share/locale so you might want to be selective about those, and docs into /usr/share/gtk-doc/html/vte-0.0 which is 556kB you can purge there, or make your own pet package or get someone else to do it Smile The Beyond Linux From Scratch page for libvte has some interesting configure options.
terminal.png
 Description   
 Filesize   8.66 KB
 Viewed   714 Time(s)

terminal.png


Last edited by thunor on Sat 25 Aug 2012, 13:33; edited 5 times in total
Back to top
View user's profile Send private message Visit poster's website 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Sat 25 Aug 2012, 12:31    Post subject:  

thunor wrote:
Added a terminal widget

Widget reference: terminal widget
Example: examples/terminal/terminal
Description: A VteTerminal widget that requires libvte support be built into Gtkdialog at compile time although it's not mandatory.
Nice, now to check resource usage with multiple terminals in notebook tabs ... If its not too bad, I may even rebuild geany with vte support.

I wonder how difficult it would be to write an rxvt wrapper to see if "gtkdialogterm" was already running (by checking for its named pipe) and open a new vte tab or start it up. I've never added a tab on the fly and the pipe would need to be monitored somehow.

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


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

PostPosted: Sat 25 Aug 2012, 17:37    Post subject:  

thunor wrote:
Added a terminal widget

Very Happy Very Happy Very Happy

Well, I rather wait and see how Puppy supports this before including this widget into apps using terminal or Xdialog logbox.

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


Joined: 03 Apr 2007
Posts: 3364
Location: Oregon

PostPosted: Sun 26 Aug 2012, 22:37    Post subject:  

Not to sound like too much of a pest, but what changes do I have to make to include the vte-2.72 in the gtkdialog compile?
Also, it seems like a stretch in that for the end user to be able to use a program that used terminal, they would need the version of gtkdialog compiled with the vte support.

I do have to say that the example screen you posted looks good though!
But again, until that updated version with vte support becomes mainstream, it would make for a program that would not work without a gtkdialog update and a source to get it.
Back to top
View user's profile Send private message 
technosaurus


Joined: 18 May 2008
Posts: 4348

PostPosted: Sun 26 Aug 2012, 23:01    Post subject:  

Gtkdialog -v could printf version _and_ compile time options like glade, vte,...
Then devs could en/dis-able features as required.

_________________
Web Programming - Pet Packaging 100 & 101
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: Mon 27 Aug 2012, 22:29    Post subject:  

Added "grabfocus" action function

Example: examples/miscellaneous/grabfocus
Description: Grabs the input focus for the widget within its window.
Back to top
View user's profile Send private message Visit poster's website 
01micko


Joined: 11 Oct 2008
Posts: 7794
Location: qld

PostPosted: Tue 28 Aug 2012, 01:03    Post subject:  

Slacko users...


I have just compiled vte and r375 for slacko.

Please use the vte attached as if you use the one in PPM gtkdialog segfaults

Have fun Smile

For slacko use only!

(Install vte-0.28.2-i486.pet first, thanks to 8-bit)



---------------------------------------------------
gtkdialog4-375-13.37-s.pet
Description 
pet

 Download 
Filename  gtkdialog4-375-13.37-s.pet 
Filesize  82.33 KB 
Downloaded  110 Time(s) 
gtkdialog4_DOC-375-13.37-s.pet
Description 
pet

 Download 
Filename  gtkdialog4_DOC-375-13.37-s.pet 
Filesize  202 KB 
Downloaded  107 Time(s) 
vte-0.28.2-i486.pet
Description 
pet

 Download 
Filename  vte-0.28.2-i486.pet 
Filesize  376.94 KB 
Downloaded  109 Time(s) 
vte_DEV-0.28.2-i486.pet
Description 
pet

 Download 
Filename  vte_DEV-0.28.2-i486.pet 
Filesize  783.63 KB 
Downloaded  104 Time(s) 

_________________
Woof Mailing List | keep the faith Cool |

Last edited by 01micko on Tue 28 Aug 2012, 16:40; 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: 3364
Location: Oregon

PostPosted: Tue 28 Aug 2012, 02:58    Post subject:  

01micko,
I had slacko linux installed and figured I would give it a try.
When I clicked on the gtkdialog... pet to install it, I never got any messages of it being installed as well as it seemed to not want to run other gtkdialog scripts.
I figure I probably messed up my pupsave in doing so. Live and learn I guess.
I am currently in Puppy Lupu 520 with a kernel version of 2.6.33.2 and I am refraining from trying it here.
I will most likely hope that I had a backup of my pupsave for slacko but I also will try the pets, which I downloaded with a pfix=ram load of slacko and see what happens.
I cannot remember what version of kernel the version of slacko I use has and it has the black background with the rainbow effect though.
I renamed the pets extension to "tar.gz" from "pet" to see what was inside also afterwards.
Anyway, for all the different kernel versions that have been used with slacko, one should be given just for reference.


Revised!!!!!
I am back with IMPORTANT NEWS!
When installing the PET packages kindly provided by 01micko, you should install the vte PET FIRST!
This is important!
If you do not, all of the gtkdialog scripts will stop working and that includes the Puppy Package Manager that installs the PET packages you click on!
So, in order:
(1) Install the vte PETS (Developer one is optional)
(2) Install the updated gtkdialog4
(3) Install the gtkdialog DOCS.

Remember again, that if you install the gtkdialog PET first, none of the other PETS will install and Puppy's programs that use gtkdialog will not work!
Back to top
View user's profile Send private message 
8-bit


Joined: 03 Apr 2007
Posts: 3364
Location: Oregon

PostPosted: Tue 28 Aug 2012, 03:52    Post subject:
Subject description: grabfocus action function
 

Thunor,
I tried out your new grabfocus function example and it works great in highlighting the function chosen with the buttons at least on some of them that are more prominent than others.
Also, if you read my reply to 01micko, one has to install the PETS for the new version (375) of gtkdialog in a certain order or PET installation wil be broken along with any other program or utility that uses gtkdialog.
I learned this the hard way!
My method of recovery was to rename the extension from PET to tar.gz, and extract it in the / directory and then copy all the vte files to their respective destinations.
Some would not know how to recover though and break Puppy if the PETS were installed in the wrong order though.
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: Tue 28 Aug 2012, 20:09    Post subject:  

Added "presentwindow" action function

Example: examples/miscellaneous/presentwindow
Description: Presents a window to the user, raising it, deiconifying it, giving it the input focus and showing it if hidden.
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: Tue 28 Aug 2012, 21:26    Post subject:  

technosaurus wrote:
Gtkdialog -v could printf version _and_ compile time options like glade, vte,...
Then devs could en/dis-able features as required.

Done in r379.

Code:
# gtkdialog --version
gtkdialog version 0.8.1 (C) 2003-2007 Laszlo Pere, 2011-2012 Thunor
Built with additional support for: Glade, VTE.
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 34 of 55 [821 Posts]   Goto page: Previous 1, 2, 3, ..., 32, 33, 34, 35, 36, ..., 53, 54, 55 Next
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Cutting edge
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.1056s ][ Queries: 12 (0.0125s) ][ GZIP on ]