After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 55752 - add gtk_widget_get_state()
add gtk_widget_get_state()
Status: RESOLVED DUPLICATE of bug 55767
Product: gtk+
Classification: Platform
Component: Widget: Other
1.3.x
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2001-06-05 10:58 UTC by Vitaly Tishkov
Modified: 2011-02-04 16:09 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Vitaly Tishkov 2001-06-05 10:58:44 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).
Comment 1 Owen Taylor 2001-06-05 14:58:17 UTC
(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.)
Comment 2 Havoc Pennington 2001-06-05 17:36:17 UTC

*** This bug has been marked as a duplicate of 55767 ***