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,438
    • Issues 1,438
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 244
    • Merge requests 244
  • 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
  • #930

Closed
Open
Created Oct 01, 2017 by Bugzilla@bugzilla-migration💬Reporter

GtkListBox: Do not grab focus twice when activating a row via double click

Submitted by Jonathan Moerman

Link to original bug (#788397)

Description

If you have a GtkListBox with activate_on_single_click set to false and double click on a row that results in:

  1. the row receiving focus
  2. the row being activated
  3. row receiving focus again

If the row_activated signal is used to, for example focus on an child GtkEntry within the row that is hidden once this entry loses focus this causes issues, as the entry will immediately lose focus.

Suggested behavior: Only make the clicked row grab focus once. (before row_activated is emitted.) It really doesn't make sense to grab focus twice.

I have not tested with master, but looking at gtk_list_box_multipress_gesture_released I think this behavior will still occur.

It would be great if this weird behavior isn't carried over to Gtk+-4.0.

(Reproduced with Gtk+-3.0 versions 3.18 and 3.22 (I think I've tested it with 3.14 too), I haven't tested any other versions.)

Version: 3.22.x

Assignee
Assign to
Time tracking