GNOME Bugzilla – Bug 786962
GtkSpinButton: Don't show 'insert emoji' item in the context menu
Last modified: 2017-09-02 12:50:05 UTC
GtkSpinbutton allows insertion of numbers and floating points only. It may be better to hide 'insert Emoji' item in the context menu of GtkSpinButton
(In reply to Mohammed Sadiq from comment #0) > GtkSpinbutton allows insertion of numbers and floating points only. This is not true if you override signal ::input and supply a conversion to numbers: https://developer.gnome.org/gtk3/stable/GtkSpinButton.html#GtkSpinButton-input That said, it's perhaps unlikely that anyone will want to do this from emoji*, so maybe it should be disabled anyway. (* You could in theory have 'emoji spinner', which internally stores a numerical ID, but displays/accepts emoji as text input/output...)
That is not so clear-cut. spin buttons can be used more creatively, see gtk3-demo for examples. I dont think the context menu item does much harm...
(In reply to Matthias Clasen from comment #2) > That is not so clear-cut. spin buttons can be used more creatively, see > gtk3-demo for examples. I dont think the context menu item does much harm... hm.. So is there any API that would allow devs to hide this menu item for some GtkEntry (or any Emoji enabled widgets) in case someone wish so? One case I can think of is bug 786963.
It seems that right now there is not, and it would require another new property, e.g. :enable-emoji-chooser
i've added input hints for this now