summaryrefslogtreecommitdiff
path: root/tests/ephy-file-helpers-test.c
Commit message (Collapse)AuthorAgeFilesLines
* Port to meson build systemMichael Catanzaro2017-04-261-1/+1
|
* Allow to have different settings in web applicationsCarlos Garcia Campos2017-02-051-2/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Make org.gnome.Epiphany.web schema relocatable to be used by web apps. Settings in org.gnome.Epiphany.web schema are now per web app, allowing users to have different settings in the main epiphany instance and in every web applications installed. Newly created web apps inherit the settings from the main instance. To make this possible I also had to move some of the settings: - user-agent, remember-passwords and enable-smooth-scrolling has been moved from the main schema to web. The profile migrator will copy the values from the main schema to the web one. Settings are not actually moved, but copied marking the old ones as deprecated. - adblock-filters has been moved from web to main schema, because it's actually shared, web apps use the default profile filters. This is not migrated because it's very recent setting and probably everybody is using the default value anyway since it's not exposed in the UI yet. When the profile migrator is run for the main ephy instance, we simply copy the values of the deprecated settings to its new location. When it's run for a web app we copy the settings from the main profile. If the migrator was not run for the main profile yet, we use the deprecated values instead. This way web apps will be ensured to have the same settings. The app menu for web applications includes now the preferences item to show the preferences dialog. The dialog is the same as the main one, but with with the global options hidden. This patch also removes ephy_settings_ensure_schema_for_path() and relocatable schemas are configured automatically based on the current profile dir, making it less error prone.
* Fix test-ephy-encodings and test-ephy-file-helpersMichael Catanzaro2017-02-031-0/+2
| | | | They need to be set up to use the newly-relocatable state schema.
* Relicense to GPLv3+Michael Catanzaro2016-10-071-14/+12
| | | | | | | | To use GMP. Because a few GPLv3+ files had already snuck in by mistake. And because http://www.gnu.org/licenses/rms-why-gplv3.html
* UncrustifyMichael Catanzaro2016-03-291-1/+1
| | | | | | | | | | | | | | For a better future. Apologies when your 'git blame' resolves to this. I'm actually really impressed how well uncrustify works. This required only a little one-time manual work to avoid extra space in 'else {'. This breaks function prototype alignment, but we should get rid of most of those anyway. We decided to start aligning function parameters, like other GNOME applications. It looks nicer this way, and I couldn't teach uncrustify the previous Epiphany style.
* Enable and placate -Wsign-compareMichael Catanzaro2015-12-261-3/+3
|
* Remove FSF address from license headersMichael Catanzaro2015-12-071-3/+1
|
* file-helpers: Fix ephy_file_delete_dir_recursively when an error is givenCarlos Garcia Campos2014-12-011-12/+5
| | | | | | | | | | | | | The implementation is checking the given error pointer to check if an error ocurred, instead of checking the pointer pointed by the passed in error. This means that it is always failing when an error is passed, but it works in most of the cases when NULL is passed because the return value of functions is checked too. There's still a problem when g_file_enumerator_next_file() returns NULL, because in case of error we are considering it as end of enumeration. We can simplify the implementation and the caller code, by using the stdio API instead of GIO, since we know we are dealing with local files anyway and we are using the synchronous API.
* ephy-file-helpers: remove ephy_file_switch_temp_file()Claudio Saavedra2013-01-271-73/+0
| | | | | It is racy and it is unnecessary as we've replaced all its instances with g_file_set_contents().
* Fix a ton of 'warning: function declaration isn’t a prototype'Xan Lopez2012-11-051-7/+7
| | | | | | | | | New warning flags have been added to gnome-common recently, and we were getting this a lot. Turns out in C 'foo ()' is not the same than 'foo (void)'; the first just means that no information is given about the number of arguments, the second means the function has exactly zero arguments, so add the 'void' thing all over the place when needed.
* tests: Add test for ephy_sanitize_filename()Carlos Garcia Campos2012-09-101-0/+36
|
* ephy-file-helpers: rename KEEP_TEMP_DIR to KEEP_DIRClaudio Saavedra2012-09-031-9/+9
| | | | | Since this is also used for persistency of temporary directories, but also for --profile.
* tests: add ephy-file-helpers-testDiego Escalante Urrelo2012-05-231-0/+401
| | | | | | | | | | Test API for file switch, tmp file creation, downloads, desktop directories. Take two of this test. Updated for ephy-file-helpers API changes. Previously reverted on 185ab751c20a825f832efd89a7cfbd75fa09e20c. https://bugzilla.gnome.org/show_bug.cgi?id=673337
* Revert "tests: add ephy-file-helpers-test"Xan Lopez2012-05-011-392/+0
| | | | | | This reverts commit d1ba46b3f4a4e2afbffe5a0ab2543462caea0bbe. Does not pass distcheck and I need to release.
* tests: add ephy-file-helpers-testDiego Escalante Urrelo2012-04-291-0/+392
Test API for file switch, tmp file creation, downloads, desktop directories. https://bugzilla.gnome.org/show_bug.cgi?id=673337