...
/root/gtkdialog/src/widget_timer.c:379: undefined reference to `gtk_widget_get_sensitive'
...
Hi Geoffrey
Sorry about that. gtk_widget_get_sensitive requires GTK+ 2.18.0 and I missed it, but thanks for letting me know as there is an older alternative which I've included and committed
Interestingly its sister function gtk_widget_set_sensitive already exists within the project and has no version requirements.
The page number is now stored within the variable and can be refreshed from a command or a file.
Tab labels can be specified with the "tab-labels" custom tag attribute.
Tab labels can be generated automatically by using either or both of the "tab-prefix" and "tab-suffix" custom tag attributes.
Tab labels will be generated automatically using "Page n" in the absence of any of the above custom tag attributes.
The "tab-base-index" custom tag attribute can be used to control the start page number used within the auto-generated labels.
This widget does not accept setting a default page before being shown (there's a note about it here) which will result in <input> and <input file> data being discarded at start-up. This issue can be overcome by using the "page" tag attribute which will be applied after the widget is shown.
I am now confused. Where in the notebook_widget_example is the compressed data stored?
And what procedure is used to compress and store it?
I ask because I know I copied the example and made it executable and did not see where and how that extra MAIN_DIALOG data was stored or how it was created.
If the methodology is known, it could help in making gtkdialog applications for puppy smaller.
Edited for clarity:
The filters have been in gtk since 2.4 ... gtkdialog development all but stopped right around then
Should that be an extra tag or just a value such as filter="*.mp3" within the fselect tag?
Last edited by technosaurus on Wed 17 Aug 2011, 03:00, edited 1 time in total.
Check out my [url=https://github.com/technosaurus]github repositories[/url]. I may eventually get around to updating my [url=http://bashismal.blogspot.com]blogspot[/url].
jpeps wrote:Is there no way to add a filter to gtk-open "fileselect" for specific filetypes?
Would that be an extra tag or just a value such as filter="*.mp3" within the fselect tag?
I'd be content with anything that works. I tried workarounds like comboboxes that load files from a script....but the list has to be set before gtkdialog runs.
scsijon wrote:Greetings, have you come across a decently explained Tutorial/Learning Manual for an old-fella to get his head around this gtkdialog stuff anywhere?
I've refactored (code reorganisation) the button widget and fixed an issue that's annoyed me for some time: "use-underline" not working with buttons created from a <label> plus <input file stock/icon="image">.
Thunor
An error has slipped into the gtkdialog code. The launch signal crashes the gui if there exist a menu. Remove the menu, and everything works as expected.
This makes apps like pTiming in Puppy Slacko useless.
I have made a test script:
taca0 wrote:Maybe this its not the best place to ask , But I want to know how I make that all the windows that I open fits on my 640x480 resolution??
What you could try is to go to /usr/bin (/usr/sbin?) and find the gtkdialog binary, rename it gtkdialog.bin, then right-click in the Rox window and select New->Script and create a script named gtkdialog.
Open the script and add to it:
#!/bin/sh
export MAIN_DIALOG='
<vbox>
<menubar>
<menu>
<menuitem stock="gtk-new"></menuitem>
<menuitem icon="gtk-new">
<label>New - No icon if label is set manually, not from gtk-stock</label>
</menuitem>
<menuitem stock="gtk-open"></menuitem>
<menuitem icon="gtk-open">
<label>Open - YES, Icon if label is set manually, not from gtk-stock</label>
</menuitem>
<label>File</label>
</menu>
</menubar>
<hbox>
<button cancel></button>
<button ok></button>
</hbox>
</vbox>
'
gtkdialog -p MAIN_DIALOG
This happens for icon="gtk-save" and gtk-info as well. I have not checked all, but many works as expected.
A sidenote: The menubar example still uses <seperator> instead of <menuitemseperator>