Comments (6)
Hi 8-bit
This is your modified example:
http://www.murga-linux.com/puppy/viewtopic.php?p=559425#559425
Near the top you export two nonexistent variables that you haven't initialised:
export ent1 ent3
Then the you embed the nonexistent $ent3 within the XML which will result in an
empty string:
<entry fs-folder="'$ent3'" fs-action="file"
The reason it originally worked with fs-folder="'$HOME'" is because HOME exists.
Regards,
Thunor
Original comment by [email protected]
on 2 Sep 2011 at 10:31
from gtkdialog.
When I exit the example when run from a terminal, ent3 and ent1 are shown as
having values. What I want to know is how to get the string value from
folder-ent3 to be taken by the file part as the directory it is to look in for
a file.
BTW, Not passing the string value is what made Pfind/Advanced not work.
So how does one declare the variable so it can be passed?
Original comment by [email protected]
on 2 Sep 2011 at 11:35
from gtkdialog.
I'm having difficulties completely understandng what it is that you want to do
but I'll have a guess:
You want to use the current contents of the entry widget -- in your example it
is the widget whose variable property is "ent1" -- as input to the fileselect
function i.e. if the entry widget's text is "/usr/share/pixmaps" then you'd
like the fileselect function to initially open this folder?
If the above is correct then it's not going to happen. Why? Because the
fileselect function does not and has never extracted data from widgets to use
as input. The only way to make the fileselect function open a particular folder
is to use the custom tag attribute fs-folder="path", and tag attributes can't
be changed and are only applied once at start-up.
In the examples/miscellaneous folder is fileselect_deprecated. This is the old
example and you can try it with your old copy of gtkdialog 0.7.20 to test if
you want. As you'll find out, the fileselect function has always opened the
current directory. Only now is it possible to use the custom tag attribute
fs-folder="path" to specify a folder to open.
Original comment by [email protected]
on 3 Sep 2011 at 10:53
from gtkdialog.
Which application are you currently writing that's making use of the fileselect
action? I'm interested in looking at some of your code from one of your
applications.
Original comment by [email protected]
on 3 Sep 2011 at 1:53
from gtkdialog.
Ok, so you're only playing with the examples and you haven't written anything
yet.
I'll close this then.
Original comment by [email protected]
on 4 Sep 2011 at 10:53
- Changed state: Invalid
from gtkdialog.
Original comment by [email protected]
on 6 Sep 2011 at 11:15
- Added labels: 8-bit
from gtkdialog.
Related Issues (20)
- gtk-layer-shell support - wayland/wlroots HOT 1
- gtkdialog throws warnings under X under cage HOT 7
- Simple examples not working
- all links are broken in wiki and docs
- docs need updating HOT 5
- attributeset_get_first(): set is NULL (gtk3 terminal widget)
- release `gtkdialog-0.8.5`
- menu item is rendered only partially
- gtk3 vte2 fg/bg/cursor color VTE-CRITICAL error HOT 3
- Last call for last minute inclusions for v0.8.5 HOT 9
- Build failure of 0.8.5 with autotools HOT 1
- gtk3 entry has-frame=false makes no visual difference
- Box using scrollable property in Gtk3 fails HOT 8
- Build Dependencies for Debian and Red-Hat HOT 3
- mark a release
- documentation HOT 2
- terminal widget problem HOT 5
- gtk3: patch for better line wrapping in text HOT 3
- make error with implicit declaration of function HOT 8
- Error messages in wayland HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gtkdialog.