GuFw Not Using GTk2 Themes

Bug #593626 reported by MM
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Gufw
Invalid
Undecided
Unassigned

Bug Description

I'm running Slackware 13.1 and I installed ufw/gufw on my box.

Like any other application I would of figured GuFw would use the GTK2 themes I have installed but it's not.

I have a .gtkrc-2.0 file I use by hand to switch them and all my other apps switch to the themes, but GUFW won't.

Why Won't GUFW change to using a gtk2 theme? All it does it looks like a GTK1 app instead.

If all my other applications use the GTK2 themes I would think that GuFw would also but it's not.

Here's my .gtkrc-2.0 file:

[code]
#
# Select GTK+ Themes
#

gtk-theme-name="Equinox"
#gtk-theme-name="Laza"
#gtk-theme-name="Mire-v2_Grey"
#gtk-theme-name="Moka"
#gtk-theme-name="The-days-of-grays"

#
# Select GTK Fonts
#

#gtk-font-name="Bitstream Vera Sans 8"

#
# Select GTK Icons
#

#gtk-icon-theme-name="BRIT-ICONS"
gtk-icon-theme-name="SimplyGrey"

gtk-icon-sizes="gtk-menu=32,32:\
                gtk-button=32,32:\
                gtk-small-toolbar=32,32:\
                gtk-large-toolbar=32,32:\
                gtk-dnd=32,32:\
                gtk-dialog=32,32"
gtk-toolbar-style = GTK_TOOLBAR_ICONS
[/code]

There isn't anything complicated about installing this on another distro that should affect it not working with a GTK2 theme.

This is the slackbuild that made the package:

[code]
#!/bin/sh

# Slackware build script for ufw

# Redistribution and use of this script, with or without modification, is
# permitted provided that the following conditions are met:
#
# 1. Redistributions of this script must retain the above copyright
# notice, this list of conditions and the following disclaimer.
#
# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ''AS IS'' AND ANY EXPRESS OR IMPLIED
# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

PRGNAM=ufw
VERSION=0.30pre1
BUILD=${BUILD:-}
TAG=${TAG:-sar}

# Automatically determine the architecture we're building on:
if [ -z "$ARCH" ]; then
  case "$( uname -m )" in
    i?86) ARCH=i486 ;;
    arm*) ARCH=arm ;;
    # Unless $ARCH is already set, use uname -m for all other archs:
       *) ARCH=$( uname -m ) ;;
  esac
fi

CWD=$(pwd)
TMP=${TMP:-/tmp/sar}
PKG=$TMP/package-$PRGNAM
OUTPUT=${OUTPUT:-/tmp}

DOCS="AUTHORS COPYING ChangeLog ChangeLog.pre-0.25 README README.design README.translations TODO"

if [ "$ARCH" = "i486" ]; then
  SLKCFLAGS="-O2 -march=i486 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "i686" ]; then
  SLKCFLAGS="-O2 -march=i686 -mtune=i686"
  LIBDIRSUFFIX=""
elif [ "$ARCH" = "x86_64" ]; then
  SLKCFLAGS="-O2 -fPIC"
  LIBDIRSUFFIX="64"
else
  SLKCFLAGS="-O2"
  LIBDIRSUFFIX=""
fi

rm -rf $PKG
mkdir -p $TMP $PKG $OUTPUT
cd $TMP
rm -rf $PRGNAM-$VERSION
tar xvf $CWD/$PRGNAM-$VERSION.tar
cd $PRGNAM-$VERSION

chown -R root:root .
find . \
 \( -perm 777 -o -perm 775 -o -perm 711 -o -perm 555 -o -perm 511 \) \
 -exec chmod 755 {} \; -o \
 \( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
 -exec chmod 644 {} \;

python setup.py build || exit 1

python setup.py install --root $PKG || exit 1

find $PKG | xargs file | grep -e "executable" -e "shared object" | grep ELF \
  | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true

cd $PKG/usr/share/man || exit 1
find $PKG/usr/share/man -type f -exec gzip -9 {} \;

mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION
cp $DOCS $PKG/usr/doc/$PRGNAM-$VERSION
cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild
find $PKG/usr/doc/$PRGNAM-$VERSION -type f -exec chmod 0644 {} \;

mkdir -p $PKG/install
cat $CWD/slack-desc > $PKG/install/slack-desc

cd $PKG
/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz}
[/code]

Revision history for this message
costales (costales) wrote :

Hi! I don't undertand the bug :$ Please, could you attach some screenshot as example? :) Thanks!

Revision history for this message
MM (mmme) wrote :
Revision history for this message
costales (costales) wrote :

Thanks ;)
I see Gufw equal in KDE... but in GNOME the theme applies to Gufw...
I don't understand *-) This afternoon I will search anothers applications that use a file .glade ;)

Revision history for this message
MM (mmme) wrote :

I only use OpenBox 3.4.11.2 in Slackware 13.1 but all my applications change to the GTK2 theme I pick in my .gtkrc-2.0 file I change by hand, again here is the file:

#
# Select GTK+ Themes
#

gtk-theme-name="Equinox"
#gtk-theme-name="Laza"
#gtk-theme-name="Mire-v2_Grey"
#gtk-theme-name="Moka"
#gtk-theme-name="The-days-of-grays"

#
# Select GTK Fonts
#

#gtk-font-name="Bitstream Vera Sans 8"

#
# Select GTK Icons
#

#gtk-icon-theme-name="BRIT-ICONS"
gtk-icon-theme-name="SimplyGrey"

gtk-icon-sizes="gtk-menu=32,32:\
                gtk-button=32,32:\
                gtk-small-toolbar=32,32:\
                gtk-large-toolbar=32,32:\
                gtk-dnd=32,32:\
                gtk-dialog=32,32"
gtk-toolbar-style = GTK_TOOLBAR_ICONS

Revision history for this message
MM (mmme) wrote :

Here is a screenshot in OpenBox showing Geeqie and PCManFM using a GTK2 theme and icons, just to show you this is working on other applications except GuFw.

http://img697.imageshack.us/f/gtkr.jpg/

Revision history for this message
costales (costales) wrote :

Hi SAR! :)
Could you try with this applications, please?
gthumb
liferea
imagewriter

please, send me a screenshot :)
Thanks!

Revision history for this message
Emilio (turl) wrote :

Hi,

This bug seems to be caused by the fact that gufw runs as root. I bet you don't have your gtkrc file installed for the root user (on /root). Can you check if this is the cause, and try with other applications as root (graphical package managers, etc)?

Revision history for this message
MM (mmme) wrote :

Oh stupid me, SORRY Marcos, yes you are right I needed .gtkrc-2.0 in /root along with .themes and .icons.

So I made symlinks for all of them to my /root

ln -s /home/sar/.icons/ /root/.icons
ln -s /home/sar/.themes/ /root/.themes
ln -s /home/sar/.gtkrc-2.0 /root/.gtkrc-2.0

Now everything is working fine! :)

Sorry for mistake, my bad!

Revision history for this message
costales (costales) wrote :

@Emilio: Great job! :D Thanks very much!
@SAR: I understand now why in Kubuntu I can't see Gufw with the correct theme xD I learn something too :) Thanks Emilio!
@SAR: In other way, could you confirm me which version of ufw are you using in Slackware, please? Thanks! I do the questions for check a correct version in other distros between ufw & Gufw.

Revision history for this message
MM (mmme) wrote :

I'm using ufw_0.30pre1 from Lucid:

https://launchpad.net/ubuntu/lucid/+source/ufw/0.30pre1-0ubuntu2/+files/ufw_0.30pre1.orig.tar.gz

I wish now ufw team would make ufw work with ulogd. :)

THANKS

Revision history for this message
costales (costales) wrote :

@SAR The 0.30pre1 is the correct ufw version for Gufw 10.04 ;) Great!

costales (costales)
Changed in gui-ufw:
status: New → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.