summaryrefslogtreecommitdiff
path: root/test
Commit message (Collapse)AuthorAgeFilesLines
* tests: Fix directory extensions pointsJan Tojnar2017-02-242-0/+6
| | | | | | | | | | In 7840b533e2, `nautilus-directory-provider` extension point was added to the code paths used by the tests. When glib is asked for extensions, it assumes the extension point is registered so it segfaults. This patch registers the extension point before the tests are run. https://bugzilla.gnome.org/show_bug.cgi?id=779178
* general: add support for MesonErnestas Kulik2017-02-241-0/+31
| | | | | | | | | | | | Since it’s 2017 already, Nautilus should use a build system that doesn’t take longer to set up the build than it takes to actually build. An observed build time using Ninja of roughly one-fifth of what it took Autotools is more than reason enough to add support for Meson. Along with that, this commit adds a convenience script to generate a tarball for releases, since we use libgd as a submodule and Meson does not handle source distributions. https://bugzilla.gnome.org/show_bug.cgi?id=778167
* general: drop git.mkErnestas Kulik2017-02-242-2/+6
| | | | | | | | This commit removes git.mk and adds hand-written gitignore files. That is needed to ignore build/, which is the directory of choice for Meson builds. https://bugzilla.gnome.org/show_bug.cgi?id=778167
* general: run uncrustifyCarlos Soriano2016-08-2911-975/+979
| | | | | | | | And make the style of Nautilus the same for all files. Hopefully we can fix all the style issues we can find in the next days, so expect a little of movement on this. https://bugzilla.gnome.org/show_bug.cgi?id=770564
* general: add uncrustify scriptCarlos Soriano2016-08-291-0/+63
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The current style of nautilus is rather poor and mixes at least 3 different code styles. Specific issues that affect the most common contributors to Nautilus performance are: - tabs for multiline alignment. - mix of tabs and spaces. - errors on no braced one liners conditionals. - errors on non braced case statements with variable declarations. So I would say requirements for the style is to address the previous issues and also be a well known style. I don't want new contributors to see a new style completely different from C books authors. So far, I found Allman (aka BSD) style which seems the choice of most C books authors as far as I can see on internet, and it address the previous mentioned issues. Since uncrustify doesn't support the aligment of parameters we do for multiple stars "**", we also added a script made by Sebastian Wilmet to align those. As a matter of practicity I'm going to convert all Nautilus style to this one, and if the next person who contributes most on Nautilus has a different choice, please feel free to change it to whatever makes your performance and your contributors performance the best. https://bugzilla.gnome.org/show_bug.cgi?id=770564
* tests: Fix build failure caused by C99 useEmmanuele Bassi2016-07-101-3/+6
| | | | | | | | | | | Build failure in Continuous: ../../test/test-file-utilities-get-common-filename-prefix.c: In function 'test_many_strings': ../../test/test-file-utilities-get-common-filename-prefix.c:366:9: error: 'for' loop initial declarations are only allowed in C99 or C11 mode for (int i = 0; i < 500; ++i) {
* files-view: change "New Folder /w Selection" to offer a nameNeil Herald2016-07-104-0/+858
| | | | | | | | | | | | | New Folder with Selection currently doesn't offer a folder name. It would be better if it suggested a folder name based on the files that are selected. With this change, it now looks for a common filename prefix of the selected files, and pre-populates the folder name entry with that. If no common prefix is found that is greater than 3 characters long, the folder name entry will be left blank. https://bugzilla.gnome.org/show_bug.cgi?id=747907
* general: merge libnautilus-private to srcwip/csoriano/private-to-srcCarlos Soriano2016-04-257-15/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | And fix make distcheck. Although libnautilus-private seem self contained, it was actually depending on the files on src/ for dnd. Not only that, but files in libnautilus-private also were depending on dnd files, which you can guess it's wrong. Before the desktop split, this was working because the files were distributed, but now was a problem since we reestructured the code, and now nautilus being a library make distcheck stop working. First solution was try to fix this inter dependency of files, but at some point I realized that there was no real point on splitting some of those files, because for example, is perfectly fine for dnd to need to access the window functions, and it's perfectly fine for the widgets in the private library to need to access to all dnd functions. So seems to me the private library of nautilus is somehow an artificial split, which provides more problems than solutions. We needed libnautilus-private to have a private library that we could isolate from extensions, but I don't think it worth given the problems it provides, and also, this not so good logical split. Right now, since with the desktop split we created a libnautilus to be used by the desktop part of nautilus, extensions have access to all the API of nautilus. We will think in future how this can be handled if we want. So for now, merge the libnautilus-private into src, and let's rethink a better logic to split the code and the private parts of nautilus than what we had. Thanks a lot to Rafael Fonseca for helping in get this done. https://bugzilla.gnome.org/show_bug.cgi?id=765543
* search: done loading signal only if not restarting engineCarlos Soriano2015-07-221-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It was working as: - Search directory starts a new search - Search engine starts all search providers, each one in its own thread. - User changes query - Search engine stops all search providers - Searchs providers, since they are in its own thread, cancel in a unknown time. - Search directory starts a new search, even before all providers are finished. - Search engine is marked as need to restart. - Search providers finished. - Search engine emits finished signal, since all search providers now are stopped. - Clients doesn't have a way to know if the engine actually finished searching the current search, or the previous search that the client asked to stop. That might confuse clients if they ask for results. - Search engine restart the search providers without noticing the client, that thinks that the latest search it started was finished already. So to fix this confusion, only report that the engine actually finished if the engine is not going to restart the search providers. In this way a client can start a batch of consecutive searches without the risk of getting search finished signals from previous searches. Clients now will always get the search-finished signal of the latest search they started.
* operations: implement new designCarlos Soriano2015-07-171-1/+1
| | | | | | | | | Now operations reside in the toolbar, in form of a button with a popover. In this way we avoid to have a nautilus window hanging around for it. When no nautilus window is open, the persistence handlers of nautilus are enough. This use a notification if the server supports it or a systray icon in case it doesn't.
* eel: remove unused EelEditableLabelCosimo Cecchi2015-05-232-59/+0
| | | | | This was only used for in-place renaming inside the canvas container, which does not exist any more. Remove it.
* Don't mention FSF addressCosimo Cecchi2014-02-171-2/+1
| | | | | | Use the website instead. https://bugzilla.gnome.org/show_bug.cgi?id=721518
* Updated FSF's addressDaniel Mustieles2014-01-312-4/+2
|
* build: stop using INCLUDES, deprecated by automake 1.7Andrés G. Aragoneses2013-06-181-1/+1
| | | | | | | | | | | | | | | | | | | We already depend on automake 1.9, so using the replacement of INCLUDES (AM_CPPFLAGS) won't hurt, especially now that it is a warning shown by default since automake 1.13, as evidenced by this build log of mine: Makefile.am: installing './INSTALL' eel/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') eel/Makefile.am: installing './depcomp' parallel-tests: installing './test-driver' libnautilus-extension/Makefile.am:7: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') libnautilus-private/Makefile.am:5: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') nautilus-sendto-extension/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') src/Makefile.am:13: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') test/Makefile.am:3: warning: 'INCLUDES' is the old name for 'AM_CPPFLAGS' (or '*_CPPFLAGS') Signed-off-by: Alexander Larsson <alexl@redhat.com>
* 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: remove unused hits-subtracted signalCosimo Cecchi2012-10-151-12/+0
| | | | | Since this is never emitted, keeping the code around just makes it more complicated.
* Use git.mkWilliam Jon McCann2012-09-171-0/+2
|
* Update directory async test caseWilliam Jon McCann2012-08-081-35/+21
|
* Collect results from both search providersWilliam Jon McCann2012-07-181-2/+3
| | | | | | | | Previously we would only use the compiled in search provider. Now it has been changed to run both providers at the same time and merge the results by URI. https://bugzilla.gnome.org/show_bug.cgi?id=680137
* file-operations: first pass at passing on success informationCosimo Cecchi2012-01-201-1/+3
| | | | | We want to know if a file operation failed for some reason, so that we don't add it in the redo queue.
* test: don't use deprecated gtk_vbox_new()Cosimo Cecchi2011-10-181-1/+1
|
* all: don't call g_thread_init()Cosimo Cecchi2011-10-182-4/+0
| | | | GLib does that for us now.
* progress-info: split progress information notify into a new managerCosimo Cecchi2011-02-031-2/+9
|
* build: simplify configure scriptCosimo Cecchi2010-10-301-2/+6
| | | | Also, don't support old exif/exempi APIs anymore.
* background: refactor code into NautilusDesktopBackgroundCosimo Cecchi2010-10-092-36/+0
| | | | | | Remove the DirectoryBackground->EelBackground->GnomeBG abstraction and add a new object, NautilusDesktopBackground, which is a thin wrapper around GnomeBG, which takes care of handling background changes.
* [test] remove test-eel-image-scrolledCosimo Cecchi2010-08-192-189/+0
| | | | It only increases compilation time
* [test] remove eel-pixbuf-scale testCosimo Cecchi2010-08-192-86/+0
|
* [eel] remove unused eel-xml-extensions.Cosimo Cecchi2010-07-251-0/+1
|
* [eel] remove unused EelLabeledImageCosimo Cecchi2010-07-253-180/+0
|
* [eel] remove unused EelImageTableCosimo Cecchi2010-07-252-306/+0
|
* Remove last users of eel_preferences and eel_gconfAlexander Larsson2010-07-232-215/+0
|
* Convert show-hidden-files to gsettings and merge it with show-backup-filesAlexander Larsson2010-07-231-2/+2
|
* [test] GSEAL test-eel-image-table.Cosimo Cecchi2010-06-111-1/+3
|
* Split WARNING_CFLAGS into its own variable.Cosimo Cecchi2010-05-201-0/+1
| | | | | So that we can use e.g. LIBNAUTILUS_EXTENSIONS_CFLAGS when compiling the gir information.
* Remove all traces of former nautilus metadata codeAlexander Larsson2009-06-231-1/+1
|
* Remove other deprecated GTK+ symbolsCosimo Cecchi2009-04-221-7/+0
| | | | | There were still some references to deprecated GTK+ symbols in some files, or in some comments. Let's drop them all.
* Remove deprecated GDK/GTK+ symbolsCosimo Cecchi2009-04-212-2/+1
| | | | | | Remove all uses of deprecated GDK and GTK+ symbols, replacing them with the currently supported equivalents. Based on a patch from Tal Benavidor (#565038).
* remove obsolete test.Cosimo Cecchi2009-02-241-221/+0
| | | | | | | | 2009-02-24 Cosimo Cecchi <cosimoc@gnome.org> * test/test-eel-widgets.c: remove obsolete test. svn path=/trunk/; revision=15016
* remove unneeded and obsolete snippets of autofoo.Cosimo Cecchi2009-02-211-2/+0
| | | | | | | | | | 2009-02-21 Cosimo Cecchi <cosimoc@gnome.org> * configure.in: * test/Makefile.am: remove unneeded and obsolete snippets of autofoo. svn path=/trunk/; revision=14990
* Added. Added. Added. Added. Added. Added. Added. Import eel testsAlexander Larsson2008-12-159-10/+991
| | | | | | | | | | | | | | | | | | 2008-12-15 Alexander Larsson <alexl@redhat.com> * test/Makefile.am: * test/test-eel-background.c: Added. * test/test-eel-editable-label.c: Added. * test/test-eel-image-scrolled.c: Added. * test/test-eel-image-table.c: Added. * test/test-eel-labeled-image.c: Added. * test/test-eel-pixbuf-scale.c: Added. * test/test-eel-widgets.c: Added. * test/test.h: Import eel tests svn path=/trunk/; revision=14816
* Require trunk eel. Drop libgnome* and librsvg deps.Alexander Larsson2008-10-073-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2008-10-07 Alexander Larsson <alexl@redhat.com> * configure.in: Require trunk eel. Drop libgnome* and librsvg deps. * libnautilus-private/nautilus-customization-data.c: (nautilus_customization_data_get_next_element_for_display): * libnautilus-private/nautilus-icon-canvas-item.c: (real_map_pixbuf): * src/nautilus-property-browser.c: (make_drag_image): Use librsvg indirectly via gdk-pixbuf loader. * libnautilus-private/nautilus-thumbnails.c: Use thumbnail factory from gnome-desktop. * libnautilus-private/nautilus-undo.c: (nautilus_undo_get_undo_manager): Kill references to gnome canvas. * libnautilus-private/nautilus-vfs-file.c: Don't include removed eel-mount-operation.h header * src/file-manager/fm-properties-window.c: (update_preview_callback): Use thumbnail utils from gnome-desktop. * src/Makefile.am: * src/nautilus-bookmarks-window.c: * src/nautilus-bookmarks-window.glade: Removed. * src/nautilus-bookmarks-window.ui: Added. * src/nautilus-file-management-properties.c: * src/nautilus-file-management-properties.glade: Removed. * src/nautilus-file-management-properties.ui: Added. Switch from libglade to gtkbuilder. * libnautilus-private/nautilus-file-operations.c: * src/nautilus-emblem-sidebar.c: * src/nautilus-navigation-window.h: * test/test-nautilus-wrap-table.c: * test/test.c: * test/test.h: Drop old unused libgnome/librsvg includes svn path=/trunk/; revision=14704
* Use gtk_show_uri instead of gnome_helpCosimo Cecchi2008-10-062-7/+5
| | | | | | | | | | | | | | | | | | | | | | 2008-10-06 Cosimo Cecchi <cosimoc@gnome.org> * src/nautilus-window-menus.c: (action_nautilus_manual_callback): Use gtk_show_uri instead of gnome_help * src/nautilus-file-management-properties-main.c: * src/nautilus-connect-server-dialog-main.c: * src/nautilus-autorun-software.c: * test/test-nautilus-mime-actions-set.c: * test/test-nautilus-mime-actions.c: Use GOption instead of GnomeProgram * src/nautilus-property-browser.c: Use GtkColorButton instead of GnomeColorPicker Use gtk_show_uri instead of gnome_help svn path=/trunk/; revision=14683
* Strip extensions using eel_filename_strip_extension(). Fixes #309510.Christian Neumair2008-09-011-10/+8
| | | | | | | | | | | | | | | | | | 2008-09-01 Christian Neumair <cneumair@gnome.org> * libnautilus-private/nautilus-customization-data.c (format_name_for_display), (load_name_map_hash_table): * src/file-manager/fm-directory-view.c (add_template_to_templates_menus): * src/nautilus-property-browser.c (nautilus_property_browser_drag_data_get), (make_properties_from_directories): * test/test-nautilus-wrap-table.c (main): Strip extensions using eel_filename_strip_extension(). Fixes #309510. Thanks to Paolo Borelli <pborelli@katamail.com> and Jared Moore <jaredm@gmx.com>. svn path=/trunk/; revision=14555
* Revert last commit as we do still need to deal with uris.Søren Sandmann2008-05-311-4/+4
| | | | | | | | | Fri May 30 23:33:17 2008 Søren Sandmann <sandmann@redhat.com> * Revert last commit as we do still need to deal with uris. svn path=/trunk/; revision=14213
* Update for new eel API Require SVN version of eelSøren Sandmann2008-05-311-4/+4
| | | | | | | | | | | | | | Fri May 30 22:16:51 2008 Søren Sandmann <sandmann@redhat.com> * libnautilus-private/nautilus-directory-background.c (initialize_background_from_settings): * src/nautilus-information-panel.c (nautilus_information_panel_update_appearance): Update for new eel API * configure.in: Require SVN version of eel svn path=/trunk/; revision=14212
* Initialize threads (#515031)Alexander Larsson2008-02-081-0/+2
| | | | | | | | | | | 2008-02-08 Alexander Larsson <alexl@redhat.com> * test/test-nautilus-search-engine.c: (main): Initialize threads (#515031) svn path=/trunk/; revision=13708
* Don't include deprectated headersAlexander Larsson2007-12-031-1/+0
| | | | | | | | | | | 2007-12-03 Alexander Larsson <alexl@redhat.com> * test/test.h: Don't include deprectated headers svn path=/trunk/; revision=13472
* Merge gio-branchAlexander Larsson2007-11-309-192/+106
| | | | svn path=/trunk/; revision=13464
* Use pango ellipsisation instead of truncating the strings. Bug #410113.Christian Persch2007-07-241-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2007-07-24 Christian Persch <chpe@gnome.org> * libnautilus-private/nautilus-bookmark.c: (nautilus_bookmark_menu_item_new): * libnautilus-private/nautilus-customization-data.c: (nautilus_customization_data_new), (nautilus_customization_data_get_next_element_for_display): * libnautilus-private/nautilus-customization-data.h: * src/nautilus-application.c: * src/nautilus-bookmark-list.c: (new_bookmark_from_uri): * src/nautilus-navigation-window-menus.c: (connect_proxy_cb), (refresh_go_menu): * src/nautilus-places-sidebar.c: (bookmarks_drop_uris), (drag_data_received_callback): * src/nautilus-property-browser.c: (make_properties_from_directories): * src/nautilus-window-bookmarks.c: (connect_proxy_cb), (update_bookmarks): * src/nautilus-window-menus.c: (nautilus_menus_append_bookmark_to_menu): * test/test-nautilus-wrap-table.c: (main): Use pango ellipsisation instead of truncating the strings. Bug #410113. svn path=/trunk/; revision=13025
* Update svn:ignore and remove .cvsignore filesChristian Persch2006-12-311-12/+0
| | | | svn path=/trunk/; revision=12678