Re: Can't compile gtkdialog.gtk rev 505
Posted: Mon 01 Apr 2013, 11:49
.
READ-ONLY Archive
https://oldforum.puppylinux.com/
Code: Select all
#!/bin/sh
#(c) Copyright Barry Kauler April 2013, bkhome.org
#license GPL3 (see /usr/share/doc/legal).
#130329 first release.
#130401 01micko: preliminary gtk3 support.
gtk-chtheme
#make Qt4 apps theme match gtk2...
#see also /etc/profile.d/pup_gtk and /root/.config/Trolltech.conf
#/root/.gtkrc-2.0 typically looks like this:
## -- THEME AUTO-WRITTEN DO NOT EDIT
#include "/usr/share/themes/Polished-Blue/gtk-2.0/gtkrc"
#
#include "/root/.gtkrc.mine"
#
## -- THEME AUTO-WRITTEN DO NOT EDIT
CURRGTKTHEME="$(grep '^include "/usr/share/themes/' /root/.gtkrc-2.0 | cut -f 5 -d '/')" #'geany ex: Polished-Blue
THEREBEFORE="$(grep '^gtk-theme-name' /root/.gtkrc-2.0)"
if [ "$THEREBEFORE" = "" ];then
echo "gtk-theme-name=\"${CURRGTKTHEME}\"" >> /root/.gtkrc-2.0
#130401...
# gtk3 theme support thunor http://murga-linux.com/puppy/viewtopic.php?p=695722#695722
pathGTK3THEME="`find /usr/share/themes/${CURRGTKTHEME} -type d -name gtk-3.0`"
if [ "$pathGTK3THEME" ];then #XDG_CONFIG_HOME=/root/.config
[ -d ${XDG_CONFIG_HOME}/gtk-3.0 ] || mkdir -p ${XDG_CONFIG_HOME}/gtk-3.0
[ -f ${pathGTK3THEME}/settings.ini ] && cp -af ${pathGTK3THEME}/settings.ini $XDG_CONFIG_HOME/gtk-3.0/ || echo -e "[Settings] \ngtk-theme-name = \"${CURRGTKTHEME}\" \ngtk-fallback-icon-theme = \"gnome\"" > $XDG_CONFIG_HOME/gtk-3.0/settings.ini
#[ -f ${pathGTK3THEME}/gtk.css ] && cp -af ${pathGTK3THEME}/gtk.css $XDG_CONFIG_HOME/gtk-3.0/ ||\# doesn't work
echo "" > $XDG_CONFIG_HOME/gtk-3.0/gtk.css
fi
fi
/usr/share/themes/Greybird/gtk-3.0/settings.ini does not include gtk-theme-name and you cant even put it there. Tested, gtk3 apps just hungs until you remove the row.+ echo 'gtk-theme-name="Greybird"'
++ find /usr/share/themes/Greybird -type d -name gtk-3.0
+ pathGTK3THEME=/usr/share/themes/Greybird/gtk-3.0
+ '[' /usr/share/themes/Greybird/gtk-3.0 ']'
+ '[' -d /root/.config/gtk-3.0 ']'
+ '[' -f /usr/share/themes/Greybird/gtk-3.0/settings.ini ']'
+ cp -af /usr/share/themes/Greybird/gtk-3.0/settings.ini /root/.config/gtk-3.0/
+ echo ''
No one. I dont even know from whom you heard that I have said that the above is the only one. Yeah....I know....my alzheimer disease and multi-infarct dementia cause black holes to my memory.Who told you that hacking gtk-chtheme is only way to change gtk3 themes?
Code: Select all
#130401...
# gtk3 theme support thunor http://murga-linux.com/puppy/viewtopic.php?p=695722#695722
pathGTK3THEME="`find /usr/share/themes/${CURRGTKTHEME} -type d -name gtk-3.0`"
if [ "$pathGTK3THEME" ];then #XDG_CONFIG_HOME=/root/.config
rm $XDG_CONFIG_HOME/gtk-3.0
ln -s ${pathGTK3THEME} $XDG_CONFIG_HOME
fi
fi
certain files will be read when GTK+ is initialized. First, the file $XDG_CONFIG_HOME/gtk-3.0/gtk.css is loaded if it exists. Then, GTK+ tries to load $HOME/.themes/theme-name/gtk-3.0/gtk.css, falling back to datadir/share/themes/theme-name/gtk-3.0/gtk.css, where theme-name is the name of the current theme (see the "gtk-theme-name" setting) and datadir is the prefix configured when GTK+ was compiled, unless overridden by the GTK_DATA_PREFIX environment variable.
No, it means that in gtk3 some of the comboboxtext/entry functions are named differently and take an additional parameter and I had to compensate for that. I then checked them to make sure that they behave identically in gtk2 and gtk3.simargl wrote:Does this mean sfs_load will now work with gtk3 because it uses combobox, sorry if this is stupid question I had to ask.thunor wrote:[*]Added gtk3 specific code to the comboboxtext and comboboxentry widgets so that they now function identically to the gtk2 equivalents.
I create gtkdialog. It is not my business what people rename it to. Those incrementing numbers trailing gtkdialog are not directly related to gtkdialog's version number. You need to talk to the people who rename it.simargl wrote:Here is how I named gtkdialog binaries in alphaos:
version 0.8.3 installed as /usr/bin/gtkdialog2
gtkdialog3 and gtkdialog4 are symbolic links pointing to this version
version svn504 installed as /usr/bin/gtkdialog
Idea for this came from python package in Archlinux, where older version 2.7 is named python2, and new version 3.3 is just python - I think that make sense.
Cheers!
Just because gtk3 is appearing is not a reason to abandon gtk2!thunor wrote:It had to be done didn't it. The gates to gtk3 are now open for Puppy apps and Puppy itself although it may yet be discovered that gtk2 is worth staying withzigbert wrote:...
Puppy apps will make it into the future.
.
.
.
There will likely be some tweaking involved.
It's not about caring, it's about the fact that there are people (or person) who specifically choose/set the names of the gtkdialog binaries and [Puppy] developer's scripts look for these names and it doesn't involve me, so it's not my business giving you advice or expressing an opinion on your own naming scheme however much thought you may have put into it I recommend that you discuss this with somebody who assembles a Puppy distro/flavour.simargl wrote:Sorry, I thought you'd care. And you do great job at creating gtkdialog. Byethunor wrote:I create gtkdialog. It is not my business what people rename it to.
Code: Select all
gtkdialog -v > /tmp/gtkdialog_input
echo '
<vbox>
<tree column-resizable="false|false|false">
<label>"First column|Second column|Third column"</label>
<input file>/tmp/gtkdialog_input</input>
<width>600</width>
</tree>
</vbox>' | gtkdialog -s
Code: Select all
gtkdialog -v > /tmp/gtkdialog_input
echo '
<vbox>
<tree column-resizeable="false|false|false">
<label>"INPUT defines width of column|Second|Third"</label>
<input file>/tmp/gtkdialog_input</input>
<width>600</width>
</tree>
<table>
<label>"HEADER defines width of column|Second|Third"</label>
<input file>/tmp/gtkdialog_input</input>
</table>
</vbox>' | gtkdialog -s