GNOME Bugzilla – Bug 55752
add gtk_widget_get_state()
Last modified: 2011-02-04 16:09:25 UTC
There is a function void gtk_widget_set_state (GtkWidget *widget, GtkStateType state); which sets a widget state. But looks that it's impossible to get this state. I propose to add function GtkStateType gtk_widget_get_state (GtkWidget *widget).
(LIke similar bugs should probably be addressed as a single "unpaired getter/setter bug with all such cases listed, since the number of such cases is large - probably hundreds. Traditionally, we have simply said that the struct fields in a GtkWidget are accessible for reading, but not writing, so you would simply use widget->state. We might conceivably want to change this policy and uniformly add getters.)
*** This bug has been marked as a duplicate of 55767 ***