GNOME Bugzilla – Bug 793267
No option to mark complete url by touch
Last modified: 2018-02-07 21:22:05 UTC
Currently a touch screen user has no easy option to mark the whole url text for deleting as it is provided by other touch based system. This makes it very frustating as the user has to remove each character or mark the whole text using the toolbox. An easier option would be to provide a longpress gesture for the location entry to mark the complete text.
Created attachment 368079 [details] [review] Patch adding longpress gesture
Created attachment 368081 [details] [review] Patch adding longpress gesture
Review of attachment 368081 [details] [review]: ::: src/ephy-location-controller.c @@ +400,3 @@ return; + longpress_gesture = gtk_gesture_long_press_new (widget); Surely it needs to be freed somewhere? How is that supposed to work?
Created attachment 368094 [details] [review] Patch adding longpress gesture - V2 Add longpress object clearing
Review of attachment 368094 [details] [review]: ::: src/ephy-location-controller.c @@ +402,3 @@ + controller->longpress_gesture = gtk_gesture_long_press_new (widget); + gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (controller->longpress_gesture), TRUE); + g_signal_connect (controller->longpress_gesture, "pressed", G_CALLBACK(longpress_gesture_cb), controller); Oops, I missed that there is a missing space after G_CALLBACK. I'll push a fixup.