Menu

TimeoutIndicator

Anonymous

Timeout indicator style

How to set timeout indicator style through gtkrc files

Details

Add a following lines to your .gtkrc-2.0

style "timeout-indicator"
{
    GtkProgressBar::min-horizontal-bar-height = 5
    GtkProgressBar::min-vertical-bar-width = 5
}
widget "*yad-timeout-indicator" style "timeout-indicator"

This style may be added to any script by a simple trick

cat > /tmp/gtkrc.yad <<EOF
style "timeout-indicator"
{
    GtkProgressBar::min-horizontal-bar-height = 5
    GtkProgressBar::min-vertical-bar-width = 5
}
widget "*yad-timeout-indicator" style "timeout-indicator"
EOF

if [ -n "$GTK_RC_FILES" ]; then
    export GTK_RC_FILES="$GTK_RC_FILES:/tmp/gtkrc.yad"
else
    export GTK_RC_FILES="/tmp/gtkrc.yad"
fi

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.