Commit 787c80a
committed
Remove one indirection layer in ToolSetCursor.
Instead of having both _add_tool_cbk (the main callback that handles
addition of new tools) and _add_tool (which does the same but for
pre-existing tools), we can just always use _add_tool_cbk, sending
synthetic tool_added_events for the initialization step).
Also move _tool_trigger_cbk down, next to _set_cursor_cbk, with which it
is semantically associated.1 parent 7157a19 commit 787c80a
1 file changed
+10
-19
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
261 | 261 | | |
262 | 262 | | |
263 | 263 | | |
264 | | - | |
265 | | - | |
266 | | - | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
267 | 267 | | |
268 | 268 | | |
269 | 269 | | |
| |||
273 | 273 | | |
274 | 274 | | |
275 | 275 | | |
276 | | - | |
277 | | - | |
278 | | - | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
286 | | - | |
287 | | - | |
288 | | - | |
289 | 276 | | |
290 | 277 | | |
291 | | - | |
292 | | - | |
293 | | - | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
| 283 | + | |
| 284 | + | |
294 | 285 | | |
295 | 286 | | |
296 | 287 | | |
| |||
0 commit comments