On Tue, 10 Nov 2015, Daniel Peñalba wrote:
Hi, I'm writing a simple GTK# application trying to change the background
color to a ToggleButton:
ToggleButton firstButton = new ToggleButton ("Push me",
targetColor);
firstButton.ModifyBg (StateType.Acti
Hi, I'm writing a simple GTK# application trying to change the
background color to a ToggleButton:
ToggleButton firstButton = new ToggleButton ("Push
me", targetColor);
firstButton.ModifyBg (StateType.Active,
I have been successful on Fedora 11 changing a ToggleButton's background
color. But the same code on Windows XP does nothing. Is more needed on XP??
My versions of software are:
Fedora 11, Glade 3.6.1, PyGTK 2.14.1, GTK 2.16.1
Windows XP, Glade 3.6.7, PyGTK 2.12.1, GTK 2.16.4)
The code that works
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
Hi everyone,
I'm playing with thr RC files to get my own styles, i'm using the pixbuf
engine and setting the images for each widget. I could set the style for
buttons (GtkButton) but i can't set the style for toggle buttons
(GtkToggleButton) neither for radio buttons (GtkRadioButton). The toggl
togglebutton it becomes active, but if I
click on it other time I cannot make it toggle any more. I can't
understand why. I'm attaching the callback, can you please help me?
Thank you
void
on_treeview_clicked (GtkCellRendererToggle *cellrend
> I have a GtkToggleButton where I've inserted a GtkPixmap. It has two
>different pixmaps, one for the toggle button being pressed in and
>another one for it being raised.
> It works fine, but I don't like the "pressed" appearance and since I
>use two pixmaps to differentiate between the tw
Hi,
I have a GtkToggleButton where I've inserted a GtkPixmap. It has two
different pixmaps, one for the toggle button being pressed in and
another one for it being raised.
It works fine, but I don't like the "pressed" appearance and since I
use two pixmaps to differentiate between the tw