| | 159 | |
| | 160 | /* |
| | 161 | * xulrunner-1.9.2 doesn't like receiving click events on text inputs |
| | 162 | * without being told that it has been focused first. However, GTK+ |
| | 163 | * sends button-press-event before focus-in-event, so we must use |
| | 164 | * button-press-event to tell mozilla that it has been given focus. |
| | 165 | * |
| | 166 | * Ordinarily, mozilla would not let us bind to button_press_event here |
| | 167 | * because it has it's own handler which stops emission of the signal |
| | 168 | * (our handler would simply not be called). This workaround will only |
| | 169 | * come into effect with a patched xulrunner at time of writing. |
| | 170 | * |
| | 171 | * See https://bugzilla.mozilla.org/show_bug.cgi?id=533245 |
| | 172 | */ |
| | 173 | g_signal_connect_object(web_view->mozilla_widget, |
| | 174 | "button-press-event", |
| | 175 | G_CALLBACK(child_button_press_cb), |
| | 176 | web_view, (GConnectFlags)0); |