I looked into this some tonight, and I found that in softwarecenter/ui/gtk3/widgets/searchentry.py the signal being used is icon-press [1]:
self.connect("icon-press", self._on_icon_pressed)
I tried switching it to icon-release, but it looks like this signal still fires if you do the release with the mouse off of the icon, meaning that it doesn't solve the original problem. (Although it does delay the action until mouse release) I poked around the docs some more, but it seems to me that if Gtk doesn't solve this for you it's going to be a pain to fix. I think you'd have to know where the mouse was relative to the position of the icon when it was clicked.
If someone who knows Gtk more than I do (which isn't much) has a better plan, please comment here and I'll try it.
I looked into this some tonight, and I found that in softwarecenter/ ui/gtk3/ widgets/ searchentry. py the signal being used is icon-press [1]:
self.connect( "icon-press" , self._on_ icon_pressed)
I tried switching it to icon-release, but it looks like this signal still fires if you do the release with the mouse off of the icon, meaning that it doesn't solve the original problem. (Although it does delay the action until mouse release) I poked around the docs some more, but it seems to me that if Gtk doesn't solve this for you it's going to be a pain to fix. I think you'd have to know where the mouse was relative to the position of the icon when it was clicked.
If someone who knows Gtk more than I do (which isn't much) has a better plan, please comment here and I'll try it.
[1] - http:// developer. gnome.org/ gtk/unstable/ GtkEntry. html#GtkEntry- icon-press