Gtk, Setting GtkWindow Background from gtkrc file.

Posted by PP on Stack Overflow See other posts from Stack Overflow or by PP
Published on 2010-04-06T05:33:55Z Indexed on 2010/04/06 5:43 UTC
Read the original article Hit count: 395

Filed under:
|

I am trying to set background image to GtkWindow through gtkrc file using pixmap engine but it is not working out following is the rc file.

style "theme-window" = "default" 
{ 
    xthickness = 1 
    ythickness = 1 

    GtkButton::inner-border = {10, 10, 10, 10}

    text[NORMAL]        = "#FFFFFF"
    text[ACTIVE]        = "#000000"
    text[PRELIGHT]      = "#FFFFFF"
    text[INSENSITIVE]   = "#787878"
    text[SELECTED]      = "#FFFFFF"

    engine "pixmap"
    {
        image
        {
            function        = FLAT_BOX
            state           = NORMAL
            recolorable     = TRUE
            file            = "NarrowVideo.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }
        image
        {
            function        = FLAT_BOX
            state           = ACTIVE
            recolorable     = TRUE
            file            = "NarrowVideo.png"
            border          = { 0, 0, 0, 0 }
            stretch         = TRUE
        }       
    }
}
class "GtkWindow" style "theme-window"

© Stack Overflow or respective owner

Related posts about gtk

Related posts about gtk+