Commit graph

18628 commits

Author SHA1 Message Date
Carlos Soriano
b3370181b6 directory: implement dump
For debugging purposes on gdb.
2015-12-11 23:03:02 +01:00
Carlos Soriano
ed16d51916 nautilus-places-view: fix leak 2015-12-11 23:03:02 +01:00
Carlos Soriano
f5b6b59d4d window-slot: use nautilus ref counting
So it's consistent with everywhere else.
2015-12-11 23:03:02 +01:00
Carlos Soriano
fd2685f838 window-slot: don't increase references on dispose...
It's clearly wrong. The TODO doesn't make it better :)
We are leaking few of GFiles already...
2015-12-11 23:00:18 +01:00
Carlos Soriano
864c815479 file: refactor eel-partition for better ownership management
Instead of a generic function to filter GLists, implement a simpler
and clearer filter function for file lists, since it was the only
use of that function.
In this way the ownership of files and directories are clearer
since it always returns a new allocated nautilus file list, and also
it always uses nautilus_file_ref instead of the generic g_object_ref
to match what we do everywhere else in nautilus, so it's not confusing
when breaking at nautilus_file_ref/unref for ref counting debugging.

This change fixes multiple leaks on nautilus files catched by valgrind.
2015-12-11 22:42:04 +01:00
Carlos Soriano
81c58a9c7a mime-actions: use explicit slot for opening locations
Even if we wanted to always use the active window as the default
action to open locations, seems gtk_get_active_windows doesn't work
as expected for us. Until we figure out the problem, pass explicitly
the target slot that the caller provides so users don't experience
the location opening in a different window than the expected.

https://bugzilla.gnome.org/show_bug.cgi?id=756499
2015-12-11 13:43:49 +01:00
Carlos Soriano
755c771058 nautilus-application: unset slot if new window created
If the new window flag is set, make sure that, whatever the caller
pass as target slot, we don't use it.

https://bugzilla.gnome.org/show_bug.cgi?id=756499
2015-12-11 13:43:49 +01:00
Georges Basile Stavracas Neto
e14c76bea5 placesview: update to upstream code
This commit updates the GtkPlacesView code
to match upstream's one. The gains:
- Better alignment of labels
- Measurement of available disk space
2015-12-11 02:03:07 -02:00
Reinout van Schouwen
0cea0c8dac Updated Dutch translation by Justin van Steijn and Nathan Follens 2015-12-08 22:59:29 +01:00
Cosimo Cecchi
3896e27b3d Add kudos to appdata file
As requested by Richard Hughes.
2015-12-07 14:11:54 -08:00
Dušan Kazik
1299f35f36 Updated Slovak translation 2015-12-06 12:19:41 +00:00
Iain Lane
846085ade9 canvas-container: consider margins when calculating icon bounding box
Shells can fix docks, panels and other similar things which reduce the
available space to draw on. This is called the canvas margin.

When positioning things relative to icons within containers we need to
adjust by this margin, otherwise they will be shifted away from the
target. Do this when we calculate the bounding box.

https://bugzilla.gnome.org/show_bug.cgi?id=759002
2015-12-04 14:48:53 +00:00
Daniel Mustieles
976dace612 Updated Spanish translation 2015-12-02 21:10:30 +01:00
Carlos Soriano
40bab95c3f file: fix previous commit
Conflict resolution in commit e6587b86b4 went wrong on my part.
2015-12-02 18:08:30 +01:00
Carlos Soriano
bfd0b4bf02 directory: assume recent as local
We were assuming trash and native_path as local, but not recent,
which is wrong.
So assume recent as local, with the benefit that we can use it
for mime type polling and remove some dead code now.
2015-12-02 18:03:52 +01:00
Sebastien Bacher
e6587b86b4 Don't trigger an int overflow on files' age computation
https://bugzilla.gnome.org/show_bug.cgi?id=758898
2015-12-02 11:55:43 +01:00
Gilles Dartiguelongue
450bf6bc93 Make libselinux dependency controllable by configure switch
https://bugzilla.gnome.org/show_bug.cgi?id=758632
2015-12-02 11:36:21 +01:00
Carlos Soriano
91d5990612 file: fix wrong date calculation
We were checking how many days ago the file was modified by
checking directly the current time with the file modification
time, which is wrong if the file was modified a few hours ago
but the day already passed.
What happened is that it was showing the time as in if it was
modified in the same day, instead of saying "Yesterday".

To fix it, check the time difference with the midnight time.

https://bugzilla.gnome.org/show_bug.cgi?id=757272
2015-12-02 11:19:37 +01:00
Baurzhan Muftakhidinov
ed100686f6 Updated Kazakh translation 2015-11-28 19:05:37 +00:00
Pedro Albuquerque
894ee34c6e Updated Portuguese translation 2015-11-28 09:05:03 +00:00
Carlos Soriano
c4e5cfd7fe files-view: fix leak and remove unneeded code 2015-11-27 18:11:41 +01:00
Carlos Soriano
4413816afc files-view: formatting fix 2015-11-27 18:11:30 +01:00
Carlos Soriano
a4d1583c1d files-view: don't hold a ref to the view on templates items
They shouldn't need to hold a ref to the whole view and makes
ownership management more complex.
2015-11-26 17:44:17 +01:00
Carlos Soriano
347369d18e files-view: unref action group
We were leaking it, causing that the view was not free if
there were some templates, since templates menu items were
holding a ref to the view and are only freed when the closure
of the action gets freed, which is the view action group.
This was making the view to get never finalized, and therefore
making all kind of problems afterwards.

Upcoming patch will also make template not hold a ref to the view,
even if the issue is fixed now, I think templates menu items holding
a reference to the view is wrong.
2015-11-26 17:44:17 +01:00
Carlos Soriano
7b0ba20f4b files-view: better memory management for widgets
We were leaking them refing and not unrefing.
ref sink them and unref them on finalize.
2015-11-26 17:44:14 +01:00
Gábor Kelemen
009e029a7f Updated Hungarian translation 2015-11-26 12:57:21 +00:00
Carlos Soriano
b2f0a9deaa files-view: clarify comment about delete-permanently 2015-11-26 00:41:23 +01:00
Carlos Soriano
0e5f6710df files-view: add setting for always show delete permanently
Maintenance is not that much as long as we don't show
it in any UI, and was requested by several people.

https://bugzilla.gnome.org/show_bug.cgi?id=757375
2015-11-26 00:41:23 +01:00
Carlos Soriano
0a86a73922 window-slot: remove wrong unref
Probably if didn't crash before because we are leaking elsewhere...
2015-11-26 00:41:23 +01:00
Carlos Soriano
97a2553ada window-slot: remove unneded unref 2015-11-26 00:41:23 +01:00
Carlos Soriano
77e51a3545 general: always use nautilus_file_ref
So we can debug ref counting issues more comfortably.
2015-11-26 00:41:23 +01:00
Carlos Soriano
9ef86be3b2 window-slot: remove duplicated assert 2015-11-26 00:41:23 +01:00
Carlos Soriano
90771f8641 window-slot: remove unneeded constant 2015-11-26 00:41:23 +01:00
Daniel Mustieles
3d1b018412 Updated Spanish translation 2015-11-24 15:21:58 +00:00
Jiri Grönroos
7d7f20c9bc Updated Finnish translation 2015-11-23 20:04:27 +00:00
Piotr Drąg
59df4314b5 Updated POTFILES.in 2015-11-23 20:46:30 +01:00
Carlos Soriano
a2345e4f04 configure: bump gtk min version for GtkShortcutsWindow 2015-11-23 11:54:54 +01:00
Felipe Borges
7621a5220b application: let GtkApplication load the appmenu
Since bgo#757826 introduced g_application_set_resource_base_path,
we don't need to use a GtkBuilder to load the appmenu.

GtkApplication automatically loads menus from the GtkBuilder resource
located at "gtk/menus.ui", relative to the application's resource
base path (see g_application_set_resource_base_path ()). The menu
with the ID "app-menu" is taken as the application's app menu.

https://bugzilla.gnome.org/show_bug.cgi?id=757946
2015-11-23 11:37:10 +01:00
Carlos Soriano
ff61b06f17 configure: bump gtk min version
For behave accordingly with gtkplacessidebar and gtkplacesview.
2015-11-23 11:33:44 +01:00
Carlos Soriano
93527eaac1 application: add app menu entry for shortcuts 2015-11-23 11:33:44 +01:00
Felipe Borges
74da171b96 application: add shortcuts help window
Use GTK+'s new shortcut window to document our shortcuts.
See: https://wiki.gnome.org/Initiatives/GnomeGoals/ShortcutWindows

https://bugzilla.gnome.org/show_bug.cgi?id=757826
2015-11-23 11:25:27 +01:00
Aurimas Černius
15f963d040 Updated Lithuanian translation 2015-11-20 21:09:20 +02:00
Yosef Or Boczko
d18ba67167 Updated Hebrew translation 2015-11-19 20:58:00 +02:00
Марко Костић
2002b7a1b6 Updated Serbian translation
(cherry picked from commit 9f8f4fb12e)
2015-11-18 18:19:18 +00:00
Efstathios Iosifidis
77b5a2f722 Updated Greek translation 2015-11-17 21:35:42 +00:00
Daniel Mustieles
399773d3dd Updated Spanish translation 2015-11-17 18:56:56 +01:00
GNOME Translation Robot
70097a5581 Updated Scottish Gaelic translation 2015-11-17 17:29:01 +00:00
Cosimo Cecchi
7078e48f73 mime-actions: fix indentation 2015-11-16 13:59:30 -08:00
Cosimo Cecchi
6692efdc66 mime-actions: print error in a g_warning() when not in a dialog
Make sure we don't eat errors without at least printing them on the
terminal.
2015-11-16 13:59:21 -08:00
Cosimo Cecchi
7317253e1b mime-actions: fix double free in error path
The "unhelpful error dialog" code already takes care of freeing the
activation parameters. Make sure it does not do that twice.
2015-11-16 13:59:12 -08:00