Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in
gtk
gtk
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,127
    • Issues 1,127
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 149
    • Merge Requests 149
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
  • Operations
    • Operations
    • Incidents
    • Environments
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • CI / CD
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GNOME
  • gtkgtk
  • Issues
  • #714

Closed
Open
Opened Dec 02, 2016 by bugzilla-migration@bugzilla-migrationReporter

[suggestion/patch] Desensitise GtkComboBox if its model only has 1 row

Submitted by Daniel Boles @dboles

Link to original bug (#775539)

Description

gtk_combobox_update_sensitivity() sets it to FALSE if the model has 0 rows. I'd argue that it should also do so if the model has only 1 row, as in that case, there is equally no purpose to clicking on it.

A ComboBox with only 1 row can arise in any situation where the number is dynamic, but the main case I can think of is when setting up a GtkFileChooser with only 1 filter, which I don't think is an infrequent scenario.

Desensitising then might save users the time of clicking on the CB and finding nothing interesting, just a menu popup that shows the same text as the button already did. :D

Version: 3.22.x

See also

  • Bug 145904
  • Bug 382291
  • Bug 301193
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking
None
Due date
None
Reference: GNOME/gtk#714