summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* places-sidebar: use the bookmark display nameCosimo Cecchi2012-10-224-22/+61
| | | | | | Instead of the XDG directory name; this makes name edits from the Bookmarks window apply correctly to the sidebar. Likewise, allow renaming of XDG bookmarks from the context menu.
* places-sidebar: don't add non-existent XDG bookmarksCosimo Cecchi2012-10-221-0/+11
| | | | | | | | If an XDG bookmark has been removed from ~/.config/user-dirs.dirs, or if its entry there points to an invalid directory, don't add it to the places sidebar. https://bugzilla.gnome.org/show_bug.cgi?id=645054
* window: make Bookmark this Location insensitive when it's bookmarkedCosimo Cecchi2012-10-222-0/+38
| | | | | | | If the directory is in the bookmark list already (or if it's the home directory), don't offer to bookmark it again. https://bugzilla.gnome.org/show_bug.cgi?id=327707
* bookmark-list: add a can_bookmark() methodCosimo Cecchi2012-10-222-0/+13
| | | | Using the previously added API.
* bookmark-list: change item_with_uri() API to use a GFile insteadCosimo Cecchi2012-10-223-21/+21
| | | | | Avoid GFile<->URI roundtrips if possible. Also, this will allow us to use the same API for another purpose.
* location-entry: use GFile instead of an uri for last_locationCosimo Cecchi2012-10-225-47/+37
| | | | | We will create a GFile internally and most of the times we have a GFile already, so change NautilusLocationEntry to just use a GFile too.
* mime-actions: resolve symbolic links before launching the applicationCosimo Cecchi2012-10-191-2/+10
| | | | | | | | | | We already do this for all other kind of references, and I think it makes sense to do it for symbolic links too. This also ensures applications don't have to deal with e.g. ensuring backup files are saved relative to the original file and not the symlink, as reported in https://bugzilla.gnome.org/show_bug.cgi?id=686465
* Updated Slovenian translationMatej Urbančič2012-10-201-4/+4
|
* monitor: use GSliceCosimo Cecchi2012-10-191-2/+2
|
* monitor: watch for removal of non-native mounts on GVolumeMonitorCosimo Cecchi2012-10-191-8/+49
| | | | | | | | | | | | | | Nowadays, we rely on G_FILE_MONITOR_EVENT_UNMOUNTED to be emitted when a mount disappears, since we already monitor the directory, in order to switch the view to a different location. Since non-native mounts very likely won't have file monitoring though, we're not going to receive such events in that case, and fail to redirect the view as a consequence. This patch fixes it by listening to the mount-removed signal on GVolumeMonitor when a monitor is requested for a non-native mount, and emulating a file removal in that case. https://bugzilla.gnome.org/show_bug.cgi?id=684226
* places-sidebar: always add non-native bookmarksCosimo Cecchi2012-10-191-2/+3
|
* pathbar: don't assume a mounted mount is always availableCosimo Cecchi2012-10-191-2/+6
| | | | | | We might be refreshing while the mount disappears; in that case, the pathbar will try to get a symbolic icon from a NULL mount, hitting an assertion.
* places-sidebar: simplfy setting eject iconCosimo Cecchi2012-10-191-15/+4
|
* bookmarks: remove unused methodsCosimo Cecchi2012-10-196-99/+7
|
* bookmark: simplify codeCosimo Cecchi2012-10-193-32/+4
| | | | | No need for nautilus_bookmark_copy(), when we can just g_object_ref() the object.
* shell-provider: fix an erroneous typoCosimo Cecchi2012-10-191-0/+2
| | | | Didn't mean to remove this line.
* bookmark: avoid sync I/OCosimo Cecchi2012-10-193-22/+104
|
* shell-provider: make the provider more robust to cancellationCosimo Cecchi2012-10-181-43/+38
| | | | | | | | | | | Don't assume there's only one engine running at the time, and avoid requiring state from the global app singleton in search callbacks. This fixes a crash where we would dereference NULL in the hits-added callback, since we would access it through the global app object, and self->active_search was previously cleared on cancellation. https://bugzilla.gnome.org/show_bug.cgi?id=686168
* test-search-engine: test cancellation and NautilusSearchEngineModelCosimo Cecchi2012-10-181-2/+15
| | | | | Add some code in the search engine test to verify cancellation and NautilusSearchEngine model work properly.
* search-engine-tracker: refactor search completion notificationCosimo Cecchi2012-10-181-35/+38
| | | | | | | | | | | Keep a ref to the engine while the async search is in progress. This is what all the other engines do, and not doing it causes problems when cancelling the operation. While we're at it, also refactor the completion notification code in a single function. https://bugzilla.gnome.org/show_bug.cgi?id=686168
* search-engine-model: emit finished when cancelled in-flightCosimo Cecchi2012-10-181-8/+23
| | | | | If we get stopped while the directory ready callback is pending, make sure to still emit the finished signal on the provider.
* search-engine: keep a reference to the engine while searchingCosimo Cecchi2012-10-181-3/+4
| | | | | This way, we can ensure the engine will be alive when the providers finish.
* query: always set a query location URICosimo Cecchi2012-10-182-15/+9
| | | | | It makes sense for a query object to always be relative to a specific location, so just initialize the query URI to g_get_home_dir().
* editable-label: add an input-only window for eventsCosimo Cecchi2012-10-172-6/+43
| | | | | | | | | | Add another input-only child to the parent GdkWindow's for events and imcontext. Since we will be painted in a GtkLayout, using only one input-only window won't work well with scrolling, but this way we can ensure that whatever GdkWindow the XIM engine will try to ensure native, it won't be our (floating) drawing window. https://bugzilla.gnome.org/show_bug.cgi?id=686053
* Revert "editable-label: don't use a input-output window"Cosimo Cecchi2012-10-172-36/+17
| | | | | | | This reverts commit b67360316cf975c85569527f55803cad1ea5e28e. It breaks scrolling, as explained in https://bugzilla.gnome.org/show_bug.cgi?id=686322
* editable-label: don't use a input-output windowCosimo Cecchi2012-10-152-17/+36
| | | | | | | | Use the same behavior of GtkEntry i.e. create an input only GdkWindow for the text area. This avoids the text area becoming black when it's used together with the XIM module. https://bugzilla.gnome.org/show_bug.cgi?id=686053
* application: call gtk_init() manually when doing self checksCosimo Cecchi2012-10-151-0/+2
| | | | | | | We used to do this implicitly, but 6b5ffd4e8841202d31e444358b542ffbeac516bf made it necessary to call it manually, since we avoid g_application_register() when we perform self checks.
* search: remove unused hits-subtracted signalCosimo Cecchi2012-10-156-134/+0
| | | | | Since this is never emitted, keeping the code around just makes it more complicated.
* search-directory: use g_hash_table_add()Cosimo Cecchi2012-10-151-1/+1
|
* tracker-engine: apply basename heuristic to tracker hits tooCosimo Cecchi2012-10-151-2/+7
| | | | | | So that they get the same kind of bonus they would if they matched with the other engines. The FTS rank that tracker gives us is added as another bonus.
* window-slot: reset floating bar details when setting load statusCosimo Cecchi2012-10-151-0/+1
|
* search: add debug outputCosimo Cecchi2012-10-155-0/+27
|
* search-engine: wait for all engine's completion before startingCosimo Cecchi2012-10-151-3/+44
| | | | | | | | When we're getting reloaded, we should wait for the completion of all engines before triggering a new search. When this happens, set an internal restart flag and apply it when the last provider returns. This avoids finished signals from providers that complete the previous search after a while to being interpreted for the current search.
* search-engine-simple: don't send last batch when cancelledCosimo Cecchi2012-10-151-1/+4
| | | | | There's no need to send a last batch of results if we are returning because of a cancellation.
* search-engine-model: clear active search before calling finishedCosimo Cecchi2012-10-151-1/+1
| | | | See previous commit.
* search-engine-simple: clear active search before calling finishedCosimo Cecchi2012-10-151-4/+5
| | | | So that start() will work if called directly from the finished callback.
* search-hit: set a limit to FTS weight in matchesCosimo Cecchi2012-10-151-1/+1
| | | | We don't want this to become bigger than the proximity bonus.
* query: move string matching code in NautilusQueryCosimo Cecchi2012-10-157-93/+93
| | | | | This also allows us to use a heuristic to evaluate how good the filename match is.
* search-directory: fix a FIXMECosimo Cecchi2012-10-151-3/+9
| | | | | Using an auxiliary hash table gives us better performance for large directories, as we avoid constantly walking the list.
* search-engine: refactor providers status checkCosimo Cecchi2012-10-151-13/+27
| | | | | Make sure that we emit either finished or error when all the providers have finished.
* simple-engine: always emit finished, even when cancelledCosimo Cecchi2012-10-151-7/+3
| | | | | Otherwise the search hits hash table won't be cleared when search is stopped, leading to missing results.
* search-directory: set show hidden files on query according to monitorsCosimo Cecchi2012-10-152-2/+23
| | | | | This ensures the simple engine won't crawl in hidden directories, unless necessary.
* query: change raking to always sort closest files firstCosimo Cecchi2012-10-151-27/+23
| | | | | | | | | And among those with the same distance from the search root, add more bonus for recency and FTS rank. This ensures results don't move too much when searching recursively. Also, while we're at it, change the code to use GFile instead of simple string comparisons.
* file: don't check nautilus_file_is_in_search() when getting relevanceCosimo Cecchi2012-10-151-19/+5
| | | | | This checks the URI, so it will always return FALSE, since files in NautilusSearchDirectory have the real URI of the location.
* search-directory: simplify start/stop search codeCosimo Cecchi2012-10-151-66/+59
| | | | | Keep code to start and stop the search engine in a single place, create it together with the directory and simplify start/stop invariants.
* Remove unused NautilusMergedDirectoryCosimo Cecchi2012-10-153-769/+0
| | | | This is completely unused now.
* Updated Danish translationAsk H. Larsen2012-10-151-517/+550
|
* Updated Slovak translationIvan Masár2012-10-121-4083/+2024
|
* shell-provider: make the shell search provider follow show-hiddenCosimo Cecchi2012-10-114-1/+24
| | | | | | | Add a query property we can set to false from the shell provider, and use it in the simple search engine to exclude hidden files. Note that by default the query sets it to TRUE, so the behavior in Nautilus is unchanged.
* Updated Norwegian bokmål translation.Kjartan Maraas2012-10-111-734/+790
|