pepe1977 / gtkdialog

Automatically exported from code.google.com/p/gtkdialog
GNU General Public License v2.0
0 stars 0 forks source link

..../examples/miscellaneous/fileselect #33

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried starting the example in a terminal and the File button doesn't do 
anything.
When I tried running it with the original gtkdialog3, clicking the button gave 
me a segmentation fault.
Thought you might like to know.

Original issue reported on code.google.com by johnmeye...@gmail.com on 4 Sep 2011 at 4:27

GoogleCodeExporter commented 9 years ago
To clarify, clicking on the File button using the latest gtkdialog give no 
errors and does not bring up a chooser window.
16.00-fileselect from the original examples works other than not passing the 
directory variable to the file button.  Of course, you told me you cannot pass 
a variable in gtkdialog.
When you figure out why your example will not work, let me know as now, you can 
see what I am getting at.  This for me is just a programming pastime to see 
what can and cannot be done for future use in writing scripts.

Original comment by johnmeye...@gmail.com on 4 Sep 2011 at 5:23

GoogleCodeExporter commented 9 years ago
Firstly in the project hosted here, there's no example called 
examples/miscellaneous/fileselect. The examples are:

examples/miscellaneous/fileselect_advanced
examples/miscellaneous/fileselect_deprecated

I have just tested both in a terminal and they both function as expected.

16.00-fileselect IS examples/miscellaneous/fileselect_deprecated; it was simply 
renamed.

I told you that the fileselect action function does not and has never extracted 
data from widgets to use as the starting folder; that's why I added 
fs-folder="path". I cannot explain this in any other way.

> When you figure out why your example will not work, let me know as now, you 
can see what I am getting at.

The examples here in SVN work with r254. I don't know what you're getting at.

This is what you need to do:
 * Post your examples/miscellaneous/fileselect here
 * Tell me where your example came from and if it was a pet package then tell me the full name
 * What version of Gtkdialog are you using?
 * Where did your version of Gtkdialog come from and if it was a pet package then tell me the full name

Original comment by thunor...@hotmail.com on 4 Sep 2011 at 10:50

GoogleCodeExporter commented 9 years ago
There was such an example and it came from the examples subdirectory 
miscellaneous right after you made the subdirectories and before you started 
renaming the associated 
files.  on the most recent svn update, I even had about 4 versions as I went 
ahead and saved them when compiling gave me an error.
I did  NOT write this line, but it was from "fileselect" that still existed at 
that time.The line that tells me you were trying things with the fileselect 
file was "        <action type="fileselect">FILE_DIRECTORY | 
FILE_FILENAME</action>"
Also, one of the files had "<<<<<<<<<Copy" in it.  So maybe that will give you 
the time frame.  Also, Please delete this comment after reading. And don't say 
you never had things you did. 

Original comment by johnmeye...@gmail.com on 4 Sep 2011 at 7:19

GoogleCodeExporter commented 9 years ago
Hi 8-bit

It's interesting that you are now talking about the example in the past tense.

Why can't you post it? I take it from the fact that "        <action 
type="fileselect">FILE_DIRECTORY | FILE_FILENAME</action>" includes leading 
space that you've possibly copied it from somewhere and pasted it here.

I'll prove to you via the magic of SVN that that line never existed:

History of modifications to examples/16.00-fileselect (go back through the 
diffs via the links on the right):
http://code.google.com/p/gtkdialog/source/diff?spec=svn167&r=167&format=side&pat
h=/trunk/examples/16.00-fileselect&old_path=/trunk/examples/16.00-fileselect&old
=165

examples/16.00-fileselect was moved to examples/miscellaneous/fileselect and 
then renamed to examples/miscellaneous/fileselect_deprecated.

History of modifications to examples/miscellaneous/fileselect_deprecated (go 
back through the diffs via the links on the right):
http://code.google.com/p/gtkdialog/source/diff?spec=svn257&r=251&format=side&pat
h=/trunk/examples/miscellaneous/fileselect_deprecated&old_path=/trunk/examples/m
iscellaneous/fileselect&old=247

You can now search through those few pages for "FILE_DIRECTORY | FILE_FILENAME" 
and you won't find it because it never existed.

I know what you've done! I've just realised it from the fact that you had 4 
versions of the file and one of them contained the text "<<<<<<<<<Copy". You've 
been modifying the examples and when you've done an "svn update" SVN won't 
overwrite your local modifications so it saves the conflicts in special files 
which you've been attempting to execute ;)

> And don't say you never had things you did. 

I don't understand what you mean by that. Are you still clinging on to your 
belief that the fileselect action function would use the text in the entry 
widget as the initial folder to open? Or are you telling me that "<action 
type="fileselect">FILE_DIRECTORY | FILE_FILENAME</action>" did exist but I've 
deleted it?

History of modifications to src/actions.c: search for 
"gtk_file_chooser_set_current_folder" and you'll find that it never existed 
until I recently added it:
http://code.google.com/p/gtkdialog/source/browse/trunk/src/actions.c?r=227

> Also, Please delete this comment after reading. 

Evidently, I don't want to get involved in deleting posts.

This is what I recommend that you do:
 * Don't download Gtkdialog via SVN but instead download a binary package for your particular distro.
 * Please refrain from asking me for technical support.

Kindest regards,
Thunor

Original comment by thunor...@hotmail.com on 4 Sep 2011 at 10:08

GoogleCodeExporter commented 9 years ago
I had an all nighter trying various changes.  This was only for my benefit to 
see if I could make the code work the way I thought it should.
A very tired and brain-dead me upset you and for that, I am truly sorry.
As a matter of fact, I started over and removed my original gtkdialog code 
directory and downloaded it again.  I am back to having some sense and will not 
bother you again, but investigate the downloaded source code from here and also 
from the web to try to get a better understanding of how everything is 
inter-connected and how it is supposed to work.
By the way, you have did a great job of updating both gtkdialog and the 
examples for it!  

Original comment by johnmeye...@gmail.com on 5 Sep 2011 at 6:15

GoogleCodeExporter commented 9 years ago

Original comment by thunor...@hotmail.com on 6 Sep 2011 at 11:12

GoogleCodeExporter commented 9 years ago

Original comment by thunor...@hotmail.com on 6 Sep 2011 at 7:57