GtkFileChooserDialog is the building block for the 'Open' or 'Save as' dialogs in many applications, e.g. Geany.
After booting Slacko 5.6 (or Precise 5.7.1) from USB stick and mounting the stick the left 'Places' pane shows
- Search
Recently Used
----------------
root
File System
sdb1
----------------
Not so in Tahrpup 6.05 or Lucid 5.2.8. In these Puppies the mounted partitions seem to be missing, the monitoring doesn't seem to work.
But: This difference may be related to another difference, showing in gtkdialog's chooser widget, and here Tahrpup shines where Slacko fails. When hiding and then unhiding a chooser widget, in Slacko the selected file list will not "stick", i.e. after unhiding the dialog reverts to the "Recently Used" list. In MMview this would make temporary hiding of the chooser ( to extend the viewer paner to the complete window width) useless.
Surprisingly hiding/unhiding in Tahrpup/Lucid works without problems. The display reverts to the original state. Perfect.
I now need to know how to distinguish and detect these 2 different behaviors from the command line. Depending on the result my script would then offer different options. How can I detect a specific GTK built?
Below is a demo script. The button of top hides/unhides the chooser, which by default starts in /root. After unhiding it should revert to /root (or any other directory that has been selected). In which Puppy does this work correctly and which Puppy fails?
Code: Select all
#!/bin/sh
echo '
<vbox>
<togglebutton label="Hide/Unhide chooser">
<action> if true hide:vCHOOSER</action>
<action> if false show:vCHOOSER</action>
</togglebutton>
<chooser width-request="600" height-request="400">
<variable>vCHOOSER</variable>
<default>"/root"</default>
</chooser>
</vbox>' | gtkdialog -s