1

So I'm using a GtkColorButton as a color sampler (to show what color is currently being used). For complicated reasons I don't want the selection options to come up when I click on it (I have another way of picking the color). Is there a way to disable this functionality? In other words, I just want the GtkColorButton to sit there so I can change the color shown on it through gtk_color_button_set_color (), but I don't want it to be able to be clicked.

Thanks in advance for any help!

4

1 回答 1

1

gtk_widget_set_sensitive (widget, FALSE);将禁用小部件,但仍会显示颜色

于 2013-03-03T23:19:14.673 回答