Commit graph

298 commits

Author SHA1 Message Date
Peter Eisenmann 6677b8ee2f test: Remove unused mime action setter tool
The functions covered by this test by and large don't exist in nautilus
anymore, there is no need to keep it around.
2023-07-20 17:52:47 +00:00
Corey Berla 7246b841be test-nautilus-search-engine-tracker: Setup connection proactively
Now that the tracker miner fs connection is async we have to set it
proactively or the test fails.
2022-12-28 00:19:14 +00:00
António Fernandes 83c2c6fdda test/interactive: Drop obsolete test
Originally introduced by 469047a2a5

It's been disabled because it relied on gtk_main* API, which is gone
in GTK4, but even after porting to GMainLoop API, it fails to work
because operations invoke GApplication inhibition.

In other words: I'm confident this test program has been broken for
years without anyone realizing it.

We already have automatic tests for copy operations. Manual testing
can be done with the nautilus application itself with debug messages
enabled.

So, let's just drop the broken obsolete test code.
2022-09-01 22:20:55 +00:00
Timo 95d35aedf6 general: Use parameter type list, even if function takes none
Newer compiler versions (i.e. Clang 15) failed to compile nautilus,
because the declaration did not match the function definition.
See: https://reviews.llvm.org/D122895

Fixes #2378
2022-08-16 16:38:16 +00:00
Peter Eisenmann 856803f9d6 general: Delete no longer needed git ignores
Meson builds out-of-tree, these ignored files will never get created in
these directories. If they do, it indicates a build configuration error
and should not be hidden.
2022-07-17 23:51:03 +00:00
António Fernandes 7a2b3e2141 tag-manager: Skip tracker initialization in tests
Fixes test failures introduced by df78c51751

Before that commit, we used to fully initiate the tag manager only from
NautilusApplication, because the tests didn't call set_cancellable().

Now that initialization is completed on construction, add a constructor
which skips the part of initialization that the tests don't need.
2022-05-31 19:03:42 +01:00
António Fernandes bccc6f20d0 tag-manager: Stop getting full references
It's really annoying having to setup a local autocleanup variable in
every function we want to use the NautilusTagManager API.

Use a NautilusUndoManager-like API instead, with new() returning a
reference and get() not.
2022-05-30 10:12:10 +01:00
Maximiliano Sandoval R 035a95ea19
meson: Update to 0.59 2022-02-28 22:20:17 +01:00
Maximiliano Sandoval R f8936b5626
meson: Do not use get_pkgconfig_variable
It was deprecated in meson.
2022-02-28 22:19:52 +01:00
António Fernandes e358c2343c general: Switch to GTK4
The new major version of the toolkit is a requirement to fix old issues and enable future enhancements.

Update symbols and adapt logic to API changes.
Update and simplify UI definitions.
Update local copy of places sidebar and places view.
Replace dependencies with their GTK4-compatible successors.
Make a minimum changes required to build and run, with known
regressions to be fixed in future commits.

For a detailed breakup of the changes, see the 36 commits-deep
log leading to d5763facb1e5045251171ed1273dca0859f3542f.

This is the main part of https://gitlab.gnome.org/GNOME/nautilus/-/issues/276
2022-01-09 01:25:39 +00:00
António Fernandes 388b2cbb09 tests/interactive: Disable build
They use gtk_main(), which is gone in GTK 4.

To speedup the port disable these tests. To be reimplemented later.
https://gitlab.gnome.org/GNOME/nautilus/-/issues/1993
2021-12-31 11:12:26 +00:00
Ernestas Kulik 497c16a69d general: Drop uses of GtkContainer:border-width
In preparation for porting to GTK4.

Rebased and ammeded by António Fernandes <antoniof@gnome.org>
2021-11-22 20:35:54 +00:00
António Fernandes 37740f0d72 general: Stop using gtk_main_iteration()
It's going away with GTK4. Use the recomended replacement.
2021-11-22 15:16:18 +00:00
Ondrej Holy a22f7ffc7c test: Run tests in unique directory
The tests currently create various files and directories with generic names
and manipulate with them directly in the `/tmp` directory. The tests also
remove all files in `/tmp` with the generic prefixes like `move`, `copy`,
etc. This can simply cause test suite failures if files with such names
already exist in the `/tmp` directory. Also, the test suite can easily remove
files created by other applications. Let's always create an unique directory
in `/tmp` for tests to fix the mentioned problems...
2021-01-18 10:32:12 +00:00
Sam Thursfield 7712c2c7e1 Port to Tracker 3
Mostly the port is straightforward, we connect to tracker-miner-fs
explicitly over D-Bus instead of the centralized tracker-store daemon
we connected to previously.

The search-engine-tracker test is now isolated from the user's real
Tracker index using the `tracker-sandbox` script provided by Tracker,
and it lets tracker-miner-fs index the test file rather than trying
to synthesize the expected database contents.

There are more changes in nautilus-tag-manager.c.  Until now, starred
file information was stored in the tracker-miner-fs database. This has
some downsides, firstly the data is deleted if someone runs `tracker
reset --hard`, secondly it isn't possible to do this from inside a
Flatpak sandbox with Tracker 3.0.  because the

This commit changes the NautilusTagManager to set up a private
database inside XDG_DATA_HOME/nautilus/tags. This stores the starred
file information. The database is managed with Tracker, which allows us
to continue using the rename-tracking that tracker-miner-fs provides.
The same limitations apply as before that only files in indexed
locations can be starred.
2020-09-02 17:28:38 +02:00
Sam Thursfield 1321a34947 tests: Make search tests return error codes on failure
Previously the tests could appear to succeed even if the search
didn't work as expected.
2020-09-02 12:17:31 +02:00
Alberts Muktupāvels dce530aa87 dbus-manager: add and implement FileOperations2 interface
Add new version of FileOperations interface. This versions adds
PlatformData argument to all methods. Currently supported arguments
are parent-handle and timestamp.

This change is necessary for proper focus handling.

https://gitlab.gnome.org/GNOME/nautilus/merge_requests/504
2020-04-06 21:19:15 +03:00
Ondrej Holy fd2e7dfdea general: Run uncrustify script
There are some style issue since the last run. Let's run it again
before enabling style-check CI job.
2020-04-05 16:22:26 +00:00
Carlos Soriano 20c94c338f test: As the previous commit, increase test timeout
These tests take long...
2019-01-22 12:51:55 +00:00
Carlos Soriano 9d8ee6adf9 test: Increase timeout to 480
Those tests just take long time...
2019-01-22 12:50:31 +00:00
Ernestas Kulik d92e1133da general: Null-initialize some more auto variables 2018-12-12 14:02:51 +01:00
Carlos Soriano 1f8b23d7c0 tests: Increase timeout
It timeouts in Debian and sometimes locally.
2018-09-14 05:17:35 +00:00
Carlos Soriano 9b3d13ce8c tests: Make timeout bigger
Some tests just require more, don't fail because they do so.
2018-09-12 13:00:07 +00:00
Alexandru Fazakas 375c9ee792 Undo/redo, search tests, test library and more 2018-08-28 12:35:46 +00:00
Alexandru Fazakas e126170bf9 test: copy-files: Fix copy-files test
In order for the tests to work in parallel, we need the file/directory
names not to collide.

This patch fixes the namy for the copy-files test, now all file-operations
tests should be able to work in parallel.
2018-07-20 16:58:37 +03:00
Alexandru Fazakas a54c98973f test: Add trash-or-delete test
This patch adds trash_or_delete synchronous alternative and a test
including both of these functionalities.
2018-07-20 16:58:37 +03:00
Alexandru Fazakas 2727c82900 test: Add copy operations unit test
This patch adds both a sync alternative to the copy operations and a
test for it.
2018-07-20 16:58:33 +03:00
Alexandru Fazakas 1be08bd3a0 test: dir-has-files: Clean up files
We should clean up files/directories after using them for testing.

This patch deletes all create files after using them for the dir-has-files
test.
2018-07-20 12:57:25 +03:00
Ernestas Kulik 609bf585fe tests: Remove git conflict indicator from build file
Oops.
2018-07-19 13:23:21 +03:00
Ernestas Kulik 2f8e300d3d tests: Use GMainLoop in search engine test
This removes the need for a display.
2018-07-19 13:20:38 +03:00
Alexandru Fazakas ab31018cda test: Add file-operations-move test
This patch includes the addition of the sync alternative to the
file-operations-move function and a test for it.
2018-07-16 18:51:44 +00:00
Alexandru Fazakas 93fb7954fb test: Remove useless macro definition
This definition in the dir_has_files unit test is not used,
so it should be removed.
2018-05-18 14:56:34 +00:00
Alexandru Fazakas bfc3aebe04 test: Add dir_has_files unit test
In this patch we added an unit test with 3 simple tests for the
dir_has_files.

https://gitlab.gnome.org/GNOME/nautilus/issues/224
2018-05-18 14:47:36 +00:00
Ernestas Kulik f3be754974 tests: directory-async: Use GMainLoop
Using the GTK+ main loop doesn’t make a lot of sense in this case.
2018-05-18 14:39:27 +00:00
Ernestas Kulik cfa26f0cfe build: Set a couple env vars when running tests
This will save some time/thinking when running tests manually.
G_TEST_BUILDDIR and G_TEST_SRCDIR will be useful if
g_test_build_filename() is ever used, since our primary build mode is
outside the source directory, which would break the function.
2018-05-18 14:05:53 +00:00
António Fernandes 694e4396c7 file: Remove link info attribute
Leftovers from NautilusLink removal.
2018-05-14 00:17:08 +01:00
Alexandru Fazakas 89e362ae13 test: Add file-utilities unit test
File utilities operations need to be tested thoroughly everytime
we make changes to make sure they're fine to use further.

This patch introduces an unit test file for the
nautilus_file_selection_equal.
2018-04-04 12:10:05 +03:00
Alexandru Fazakas 95ecfc8ea0 general: Remove include guards in favor of pragma once
The traditional include guards are not as easy to handle
and require extra thought into the names.

Pragma once is an easier, more contributor friendly approach.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294

general: Remove include guards in favor of pragma once

The traditional include guards are not as easy to handle
and require extra thought into the names.

Pragma once is an easier, more contributor friendly approach.

Closes https://gitlab.gnome.org/GNOME/nautilus/issues/294
2018-03-19 14:43:38 +02:00
Ernestas Kulik 510a8303dd build: make all tests optional
This can help cut down on link times a bit when working on things.
2018-03-16 06:22:36 +02:00
Ernestas Kulik 9e8f138999 general: fix old-style function declarations
Parameterless function declarations imply indeterminate parameter count,
while the implementations take no arguments.
2018-03-01 08:37:49 +00:00
Carlos Soriano 12601e9204 tests: Split between display and displayless
Some tests require gtk_init, which requires a display and therefore
cannot be part of the tests to be ran in the GitLab CI.

Split those so we can pass an option to meson to only test the
displayless tests for GitLab CI.
2018-01-06 01:17:29 +01:00
Ernestas Kulik 6bc3255fea tests: remove obsolete test
test-eel-background hasn’t been built forever and the code it tests is
long gone.
2018-01-05 23:33:53 +02:00
Ernestas Kulik 22075a4c3c tests: update common filename prefix test
61ac48bdc0 changed the way the prefix is
computed, thus breaking some of the tests. This commit removes
irrelevant tests and updates broken cases.
2018-01-05 23:24:58 +02:00
Ernestas Kulik 983892a656 build: general cleanups
This commit does the following:
  * Canonicalize the style:
    * Use two-space indentations.
    * Un-Autotools-ify option names.
    * Don’t align arguments, simply increase indentation.
    * Don’t add a space before opening parenthesis in calls.
  * Remove unused variables.
  * Remove unused dependencies.
  * Remove config.h.meson.
  * Optimize dependencies.
  * Use disabler functionality for libselinux dependency, to save lines.
2018-01-02 12:51:32 +02:00
Ernestas Kulik 74dd9c9f72 general: remove desktop support 2018-01-02 12:51:32 +02:00
Ernestas Kulik 61ac48bdc0 file-utilities: rework common prefix computation
Currently, the process for getting the common prefix of a list of file
names is a tad too greedy:
    1. Find the common prefix of all the strings.
    2. Strip the extension from the prefix.
    3. Strip trailing punctuation.

Step 2 may strip dots if there’s trailing whitespace and step 3 may
strip useful punctuation (e.g. parentheses). This commit reworks the
process as such:
    1. Strip the extension from all the file names.
    2. Find the common prefix of all the strings.
    3. Trim trailing whitespace.

Fixes #174.
2017-12-23 17:38:17 +02:00
Alexandru Pandelea 6eb160fbbc Revert "search-engine: fix search providers handling"
This reverts commit 37693c4279.

The patch was pushed by accident.
2017-08-17 11:29:41 +01:00
Alexandru Pandelea 37693c4279 search-engine: fix search providers handling
When starting the search providers, some provider might finish
before all providers are started, so a wrong value of providers_running
will be used, making Nautilus crash.

To fix this, keep a queue of the started providers and whenever the
value of the finised/running providers is needed, check the status of
each provider.

https://bugzilla.gnome.org/show_bug.cgi?id=785723
2017-08-15 21:42:15 +01:00
Ernestas Kulik 857a90c29b autotools: kill it
We’re moving to Meson this cycle, so this is losing some deadweight.

https://bugzilla.gnome.org/show_bug.cgi?id=780366
2017-03-22 17:18:29 +02:00
Jan Tojnar 5488240840 tests: Fix directory extensions points
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
2017-02-24 14:30:21 +01:00
Ernestas Kulik ed5652c89a general: add support for Meson
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
2017-02-24 00:24:27 +02:00
Ernestas Kulik 728300331d general: drop git.mk
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
2017-02-24 00:24:27 +02:00
Carlos Soriano 52d960542b general: run uncrustify
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
2016-08-29 18:37:10 +02:00
Carlos Soriano 4cafccd828 general: add uncrustify script
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
2016-08-29 18:37:10 +02:00
Emmanuele Bassi 9b674dc6ec tests: Fix build failure caused by C99 use
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) {
2016-07-10 13:46:24 +01:00
Neil Herald ca0e00b6b3 files-view: change "New Folder /w Selection" to offer a name
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
2016-07-10 08:30:48 +01:00
Carlos Soriano 7e24f1b2a2 general: merge libnautilus-private to src
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
2016-04-25 16:31:42 +02:00
Carlos Soriano ff6ccbaf40 search: done loading signal only if not restarting engine
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.
2015-07-22 13:02:04 +02:00
Carlos Soriano 192d2e2fcc operations: implement new design
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.
2015-07-17 00:45:39 +02:00
Cosimo Cecchi e816485d52 eel: remove unused EelEditableLabel
This was only used for in-place renaming inside the canvas container,
which does not exist any more. Remove it.
2015-05-23 12:14:32 -07:00
Cosimo Cecchi cbc37d3ecd Don't mention FSF address
Use the website instead.

https://bugzilla.gnome.org/show_bug.cgi?id=721518
2014-02-17 14:41:43 -08:00
Daniel Mustieles e314fbcc99 Updated FSF's address 2014-01-31 14:13:48 +01:00
Andrés G. Aragoneses 9473dd41c1 build: stop using INCLUDES, deprecated by automake 1.7
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>
2013-06-18 11:30:31 +02:00
Cosimo Cecchi 2b29ab5699 test-search-engine: test cancellation and NautilusSearchEngineModel
Add some code in the search engine test to verify cancellation and
NautilusSearchEngine model work properly.
2012-10-18 15:07:19 -04:00
Cosimo Cecchi 7666f83777 search: remove unused hits-subtracted signal
Since this is never emitted, keeping the code around just makes it more
complicated.
2012-10-15 10:47:32 -04:00
William Jon McCann 0ab374ea0b Use git.mk 2012-09-17 18:07:25 -04:00
William Jon McCann 292314dd32 Update directory async test case 2012-08-08 15:55:29 -04:00
William Jon McCann 79869fd920 Collect results from both search providers
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
2012-07-18 10:57:32 -04:00
Cosimo Cecchi 44b695b9af file-operations: first pass at passing on success information
We want to know if a file operation failed for some reason, so that we
don't add it in the redo queue.
2012-01-20 22:14:01 -05:00
Cosimo Cecchi c590280477 test: don't use deprecated gtk_vbox_new() 2011-10-18 11:28:08 -04:00
Cosimo Cecchi 04975e6cbc all: don't call g_thread_init()
GLib does that for us now.
2011-10-18 11:28:08 -04:00
Cosimo Cecchi a0f8947383 progress-info: split progress information notify into a new manager 2011-02-03 19:38:35 -05:00
Cosimo Cecchi 393df7a83c build: simplify configure script
Also, don't support old exif/exempi APIs anymore.
2010-10-30 16:29:14 +02:00
Cosimo Cecchi 66cd22c908 background: refactor code into NautilusDesktopBackground
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.
2010-10-09 15:41:41 +02:00
Cosimo Cecchi 931644a649 [test] remove test-eel-image-scrolled
It only increases compilation time
2010-08-19 16:52:45 +02:00
Cosimo Cecchi 9c9c619ae2 [test] remove eel-pixbuf-scale test 2010-08-19 16:35:27 +02:00
Cosimo Cecchi 41b7e9fe4d [eel] remove unused eel-xml-extensions. 2010-07-25 19:35:42 +02:00
Cosimo Cecchi 1ad357964e [eel] remove unused EelLabeledImage 2010-07-25 19:35:35 +02:00
Cosimo Cecchi 6feed0a28d [eel] remove unused EelImageTable 2010-07-25 19:35:31 +02:00
Alexander Larsson ca1c74b6df Remove last users of eel_preferences and eel_gconf 2010-07-23 12:22:56 +02:00
Alexander Larsson 9318df841a Convert show-hidden-files to gsettings and merge it with show-backup-files 2010-07-23 12:22:54 +02:00
Cosimo Cecchi d9f80b3f40 [test] GSEAL test-eel-image-table. 2010-06-11 13:25:22 +02:00
Cosimo Cecchi 86d41c1415 Split WARNING_CFLAGS into its own variable.
So that we can use e.g. LIBNAUTILUS_EXTENSIONS_CFLAGS when compiling the
gir information.
2010-05-20 14:34:00 +02:00
Alexander Larsson 37be3809bc Remove all traces of former nautilus metadata code 2009-06-23 21:43:52 +02:00
Cosimo Cecchi c308f7f3e9 Remove other deprecated GTK+ symbols
There were still some references to deprecated GTK+ symbols in some
files, or in some comments. Let's drop them all.
2009-04-22 00:38:43 +02:00
Cosimo Cecchi b695c97018 Remove deprecated GDK/GTK+ symbols
Remove all uses of deprecated GDK and GTK+ symbols, replacing them
with the currently supported equivalents.
Based on a patch from Tal Benavidor (#565038).
2009-04-21 15:06:23 +02:00
Cosimo Cecchi 27e3e64028 remove obsolete test.
2009-02-24  Cosimo Cecchi  <cosimoc@gnome.org>

	* test/test-eel-widgets.c: remove obsolete test.

svn path=/trunk/; revision=15016
2009-02-24 22:47:19 +00:00
Cosimo Cecchi 4e4cbea644 remove unneeded and obsolete snippets of autofoo.
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
2009-02-21 11:51:49 +00:00
Alexander Larsson 77deda90ce Added. Added. Added. Added. Added. Added. Added. Import eel tests
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
2008-12-15 18:14:31 +00:00
Alexander Larsson cf740f7f9b Require trunk eel. Drop libgnome* and librsvg deps.
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
2008-10-07 19:49:14 +00:00
Cosimo Cecchi 0dcbcb7324 Use gtk_show_uri instead of gnome_help
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
2008-10-06 09:40:38 +00:00
Christian Neumair 974ad6ae24 Strip extensions using eel_filename_strip_extension(). Fixes #309510.
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
2008-09-01 10:24:12 +00:00
Søren Sandmann 063e25efac Revert last commit as we do still need to deal with uris.
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
2008-05-31 03:34:36 +00:00
Søren Sandmann 1b1ae3c811 Update for new eel API Require SVN version of eel
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
2008-05-31 02:19:14 +00:00
Alexander Larsson ec94256ed1 Initialize threads (#515031)
2008-02-08  Alexander Larsson  <alexl@redhat.com>

        * test/test-nautilus-search-engine.c:
        (main):
	Initialize threads (#515031)


svn path=/trunk/; revision=13708
2008-02-08 08:15:45 +00:00
Alexander Larsson 12b8cc103f Don't include deprectated headers
2007-12-03  Alexander Larsson  <alexl@redhat.com>

	* test/test.h: 
	Don't include deprectated headers



svn path=/trunk/; revision=13472
2007-12-03 10:38:42 +00:00
Alexander Larsson 469047a2a5 Merge gio-branch
svn path=/trunk/; revision=13464
2007-11-30 14:51:10 +00:00
Christian Persch ee2c880e61 Use pango ellipsisation instead of truncating the strings. Bug #410113.
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
2007-07-24 15:21:21 +00:00
Christian Persch 8e00ed171c Update svn:ignore and remove .cvsignore files
svn path=/trunk/; revision=12678
2006-12-31 17:15:07 +00:00
Alexander Larsson 54b31824b4 Sleep shorter, for more torture
2006-11-02  Alexander Larsson  <alexl@redhat.com>

	* test/file-torture.py (main):
	Sleep shorter, for more torture
2006-11-02 18:23:13 +00:00