Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,435
    • Issues 1,435
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 239
    • Merge requests 239
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #926

Closed
Open
Created Sep 29, 2017 by Bugzilla@bugzilla-migration💬Reporter

GtkComboBox with has-entry=true ignores CellRenderer's sensitive property

Submitted by Daniel McIntosh

Link to original bug (#788357)

Description

Since GtkComboBox creates a CellRenderer (priv->text_renderer) during construction when has-entry=true [1], and cell sensitivity is determined by whether ANY cell renderer has "sensitive" set to true [2], cells are effectively always sensitive.

If GtkBuilder is being used, this is particularly egregious since the only realistic work-around is to use gtk_cell_layout_get_cells(), "magically" know that as it's first element, the list contains one extra CellRenderer that's not in the layout file, and modify said CellRenderer's properties.

Not sure how to fix this in such a way that maintains ease of use in simple cases, but at the very least this default CellRenderer should be documented so that this type of behaviour isn't without explaination.

[1] https://git.gnome.org/browse/gtk+/tree/gtk/gtkcombobox.c#n2792

[2] https://git.gnome.org/browse/gtk+/tree/gtk/gtkcombobox.c#n1322

Version: 3.91.x

Assignee
Assign to
Time tracking