Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in / Register
C
calls
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 98
    • Issues 98
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 8
    • Merge Requests 8
  • 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
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Librem5
  • calls
  • Merge Requests
  • !223

Merged
Created Dec 27, 2020 by Evangelos Ribeiro Tzaras@evangelos.tzarasMaintainer

Dial pad: Clear entry on longpressing back button

  • Overview 6
  • Commits 1
  • Pipelines 4
  • Changes 2

Closes #185 (closed)

Currently crashes

Handy:ERROR:../src/hdy-keypad.c:112:insert_text_cb: assertion failed: (length == 1)
Bail out! Handy:ERROR:../src/hdy-keypad.c:112:insert_text_cb: assertion failed: (length == 1)

https://gitlab.gnome.org/GNOME/libhandy/-/blob/master/src/hdy-keypad.c#L112

I see two possible ways forward:

  • Adapt HdyKeypad to allow clearing the GtkEntry
  • Repeatedly remove a single character until GtkEntry is cleared (seems a bit hacky to me, could be complicated by the fact that the cursor is not necessarily at the end of the GtkEntry)

@alexander.mikhaylenko Any ideas?

Edited Jan 19, 2021 by Evangelos Ribeiro Tzaras
Assignee
Assign to
Reviewer
Request review from
None
Milestone
None
Assign milestone
Time tracking
Source branch: longpress_clear_entry