Commit graph

16 commits

Author SHA1 Message Date
gambas
a489f435e7 gb.notify: don't crash anymore when releasing watches.
[INTERPRETER]
* NEW: Add an API that returns the first element of a hash table.

[GB.NOTIFY]
* BUG: Don't crash anymore when releasing watches.
2017-09-21 18:15:37 +02:00
Benoît Minisini
b225eba20f [CONFIGURATION]
* NEW: Update copyright year in all source files.


git-svn-id: svn://localhost/gambas/trunk@8056 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2017-01-13 03:29:42 +00:00
Benoît Minisini
b2b31e7fd0 [GB.INOTIFY]
* BUG: Don't assume inotify_add_watch() succeeds in all cases. The watched path may have been deleted after the watch has been created.


git-svn-id: svn://localhost/gambas/trunk@7996 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-11-26 22:55:53 +00:00
Benoît Minisini
cf467669a0 [GB.INOTIFY]
* BUG: Creating a watch with a null path now raises an error instead of crashing.


git-svn-id: svn://localhost/gambas/trunk@7940 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-10-29 01:35:40 +00:00
Benoît Minisini
7c4220f210 [GB.FORM]
* BUG: FileView: Enable/disable file watches on Show/Hide events.
* BUG: DirView: Enable/disable file watches on Show/Hide events.


git-svn-id: svn://localhost/gambas/trunk@7771 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 14:28:09 +00:00
Benoît Minisini
535fa6bea3 [GB.INOTIFY]
* BUG: Forgot to commit a source file.


git-svn-id: svn://localhost/gambas/trunk@7768 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-07 00:55:08 +00:00
Benoît Minisini
7fc3acc849 [GB.INOTIFY]
* BUG: Now you can create as many watches on the same path as you want.
* NEW: Consequently, the Watch[] static array accessor, that returned the watch associated with a path, had to be removed.
* NEW: The flags constants and the Watch.Events property are now associated with the Gambas events, not the internal inotify events.


git-svn-id: svn://localhost/gambas/trunk@7766 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2016-05-06 23:03:28 +00:00
Tobias Boege
24e542b4c5 [GB.INOTIFY]
* BUG: (Bug 730) Don't pass NULL key and zero length to GB.HashTable.Remove()
* OPT: Use GB.StringLength() where possible



git-svn-id: svn://localhost/gambas/trunk@7303 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-12 19:52:38 +00:00
Tobias Boege
360a13ddc9 [GB.INOTIFY]
* BUG: (Bug 730) Don't rely on GB.NewString() to NUL-terminate the string



git-svn-id: svn://localhost/gambas/trunk@7300 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-09-12 17:09:08 +00:00
Benoît Minisini
d3ebb6ccc8 [CONFIGURATION]
* NEW: Update the state of many components.

[DEVELOPMENT ENVIRONMENT]
* NEW: The project property dialog now uses an IconPanel.
* NEW: New design of the component tab in the project property dialog.

[GB.GUI.BASE]
* NEW: GridView: The background of the sorted column is now lighter.

[GB.QT4.WEBKIT]
* NEW: WebView.History is a new virtual access to get the number of entries 
  in the history, to set or get the current history entry index, and to get
  or set the history maximum capacity.


git-svn-id: svn://localhost/gambas/trunk@6788 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2015-01-01 11:46:48 +00:00
Tobias Boege
d3ec79a214 [GB.INOTIFY]
* NEW: Add Pause() and Resume() methods to pause and resume a watch.
  IsPaused can be used to read/set/toggle the "paused" state.



git-svn-id: svn://localhost/gambas/trunk@6400 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-07-28 02:14:37 +00:00
Tobias Boege
b0e1b58d10 [GB.INOTIFY]
* BUG: Don't re-typedef CINFO.



git-svn-id: svn://localhost/gambas/trunk@6190 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-03-03 22:07:32 +00:00
Tobias Boege
da8305456c [GB.INOTIFY]
* NEW: Rename the PathWatch class to Watch.
* NEW: Generalise the events raised by the class for future portability.
* NEW: Add static properties Name, IsDir, Unmount and Cookie and remove the
  corresponding event handler arguments.
* NEW: Do not automatically reference a Watch anymore to keep it sane.
* BUG: Automatic detection of watch events works now (#6115).
* BUG: Invalidate Watch objects when the kernel tells us to.
* BUG: Don't enter an infinite loop if some event bits are not recognised.
* OPT: Use hash tables to improve lookups.



git-svn-id: svn://localhost/gambas/trunk@6147 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-02-09 21:23:05 +00:00
Tobias Boege
3bece35d9b [GB.INOTIFY]
* NEW: Rename the Inotify class and descendants to PathWatch.
* NEW: Use array semantics instead of properties to manipulate event masks.
  These can operate on multiple flags simultaneously now.
* OPT: Determine the default event mask for a PathWatch object by the event
  handlers defined for it (* not working ATM).
* OPT: Save a string copy.



git-svn-id: svn://localhost/gambas/trunk@6109 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-27 21:14:58 +00:00
Tobias Boege
119ce88c3b [GB.INOTIFY]
* NEW: All event signatures got a Boolean argument to support the IN_ISDIR
  flag set by the kernel indicating that the subject was a directory.



git-svn-id: svn://localhost/gambas/trunk@6097 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2014-01-22 14:51:56 +00:00
Tobias Boege
00200dbece [CONFIGURATION]
* OPT: Move gb.inotify to main/lib.



git-svn-id: svn://localhost/gambas/trunk@6036 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2013-12-30 11:29:15 +00:00