mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
This commit is contained in:
parent
217d3fd796
commit
baa6343233
@ -1701,7 +1701,8 @@ gtk_cell_renderer_get_state (GtkCellRenderer *cell,
|
||||
g_return_val_if_fail (!widget || GTK_IS_WIDGET (widget), 0);
|
||||
|
||||
if ((widget && !gtk_widget_get_sensitive (widget)) ||
|
||||
(cell && !gtk_cell_renderer_get_sensitive (cell)))
|
||||
(cell && !gtk_cell_renderer_get_sensitive (cell)) ||
|
||||
(cell_state & GTK_CELL_RENDERER_INSENSITIVE) != 0)
|
||||
state |= GTK_STATE_FLAG_INSENSITIVE;
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user