ToggleButton style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Sorry for my mistake, here is the rc style file, in case i can help.
pixmap_path "/usr/share/pixmaps"

style "my-button" {
          xthickness = 0
          ythickness = 0
          engine "pixmap" {
             image  {
                 function = BOX
                 state    = ACTIVE
                 file     = "boton_pressed.gif"
                 #border   = { 3, 3, 3, 3 }
                 stretch  = TRUE
             }
          
             image  {
	         function = BOX
	         file     = "boton_unpressed.gif"
	         #border   = { 3, 3, 3, 3 }
                 stretch  = TRUE
             }
             
        }
}

style "my-toggle-button" {
	xthickness = 0
	ythickness = 0
	engine "pixmap" {
		image  {
			function = BOX
			state    = ACTIVE
			file     = "toggle_pressed.gif"
			#border   = { 3, 3, 3, 3 }
			stretch  = TRUE
		}
		
		image  {
			function = BOX
			file     = "toggle_unpressed.gif"
			#border   = { 3, 3, 3, 3 } 
			stretch  = TRUE
		}
	}
}

style "my-radio" {
	xthickness = 0
	ythickness = 0
	engine "pixmap" {
		image  {
			function = BOX
			state    = ACTIVE
			file     = "boton_pressed2.gif"
			#border   = { 3, 3, 3, 3 }
			stretch  = TRUE
		}

		image  {
			function = BOX
			file     = "boton_unpressed2.gif"
			#border   = { 3, 3, 3, 3 }
			stretch  = TRUE
		}
	}
}

class "GtkButton" style "my-button"
class "GtkToggleButton" style "my-toggle-button"
widget "*.radio" style "my-radio"

_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux