Commit Graph

20204 Commits

Author SHA1 Message Date
Federico Mena Quintero
b7ca7b7688 Remove superfluous NULL check
Now that _gtk_file_chooser_uri_has_prefix() deals with NULL prefix lists,
we can remove all such checks.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-25 12:14:24 -05:00
Federico Mena Quintero
4776c9bcc3 Don't use C++ style comments
We like it here in the 1990s, thank you very much.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-25 12:14:24 -05:00
Federico Mena Quintero
d2f5fbbf4e s/in_root/in_roots everywhere, as we support multiple roots
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-25 12:14:24 -05:00
Federico Mena Quintero
39986f06ab Allow NULL prefixes in _gtk_file_chooser_uri_has_prefix()
This allows us to just call that function with whatever root_uris we
have, instead of manually comparing the root_uris for NULL every time.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-25 12:14:23 -05:00
Federico Mena Quintero
7201584fbe Do uri_has_prefix() without allocations
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-25 12:14:23 -05:00
Christian Hammond
7f3b373cde Show the roots in the sidebar.
Roots will be shown only if:

1) They're not the user's Desktop or Home directories (which would already
   be listed otherwise).
2) It's not the URI of an existing volume.
3) The parent volume isn't already a root.
4) The root actually does exist (preventing non-browseable roots, like "ftp:")
2010-08-25 12:14:23 -05:00
Christian Hammond
077ce84578 Add support for multiple roots.
This introduces support for multiple roots on the file chooser. Instead
of rooting to a single URI, there can now be several roots, which will be
taken into account when selecting files, typing custom file paths, or showing
parts of the UI.

This makes it possible to, for example, limit the file chooser to the user's
home directory and memory stick.
2010-08-25 12:14:22 -05:00
Christian Hammond
620d340574 Validate the results in gtk_file_chooser_get_files. 2010-08-25 12:14:22 -05:00
Christian Hammond
64b78616ad Display an icon for the virtual root button. 2010-08-25 12:14:22 -05:00
Christian Hammond
67f25a6302 Prevent access to old locations when using a non-existant root URI. 2010-08-25 12:14:22 -05:00
Christian Hammond
04ff399163 Make GtkFileChooserButton work with root URI.
GtkFileChooserButton now understands root URIs and only displays entries
in the list that would be shown in the file chooser.
2010-08-25 12:14:22 -05:00
Christian Hammond
07e5ab29d1 Filter the path bar and auto-completion results.
This changes the path bar to only show those folders accessible within
the root URI. If a particular folder has been set as the root URI, it will
appear as the top-most button in the path bar, much like the File System
does.

This also hides the scroll buttons in the Path Bar when no buttons are set
(in the case of an invalid root URI) and hides the left scroll button if the
first shown folder is the very first folder in the path bar.
2010-08-25 12:06:26 -05:00
Christian Hammond
a45150b199 Keep the list of custom shortcuts in a list and rebuild it on root_uri change.
The old custom shortcut code assumed that the entry would be added to the
sidebar and never removed programatically within that instance of the file
chooser. That, clearly, doesn't work when dynamically changing the root URIs.

We now maintain a list of added custom shortcuts and add/remove these based
on the root URI whenever the root changes.
2010-08-25 12:06:25 -05:00
Christian Hammond
0b3f2e4f4d Make the local_only property wrap root_uri.
Root URI and Local Only properties are very similar, so this change combines
them into one concept. A root URI of "file://" is now the same as the old
Local Only. The old Local Only property remains, and we may even want to keep
it around indefinitely, but it just simply wraps a root URI of "file://".

The set_local_only and set_root_uri functions have been merged, and improved
logic for setting the current folder on root URI/local-only property changes
has been added.
2010-08-25 12:06:25 -05:00
Christian Hammond
165fd11686 Filter and restore the Recently Used list on root URI switching.
The Recently Used list only shows matches that are within the root URI.
The entry in the sidebar is available at all times, as recently used items
can be on remote URIs.
2010-08-25 12:06:25 -05:00
Christian Hammond
43cb734cfe Update the sidebar entries based on the root URI.
The sidebar generation code has been made more flexible so that it can be
run more than once, instead of assuming it will only ever be run once.

Various sidebar entries are now dependent on the type of root. Search, for
example, only shows up with a file:-based root.

When deciding whether a volume can be added, the root URI is checked to make
sure the volume resides within that root.
2010-08-25 12:06:25 -05:00
Christian Hammond
eb2e90e976 Add the concept of rooting the filechooser to a specific URI.
The only UI elements (shortcuts, bookmarks, special folders, etc.) that will
show up are ones within the root URI.

At this point, we have the UI filtering out the special sidebar entries
that are not within the root URI, and we have some API calls set up for
specifying the root URI.

Future changes will limit browsing within the root URI, limit search
results, and other such fixes.
2010-08-25 12:05:54 -05:00
Sergey Orlov
7868c0b588 bgo#614006 - GtkFileSystemModel - Make sure to generate node IDs are valid for new files
When a file was inserted during the period that the editable row was
active, the node IDs would not get updated correctly.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-24 17:11:03 -05:00
krishnababu k
e733403292 Corrected string occurrence calendar 2010-08-19 21:29:40 +05:30
Sandeep Shedmake
3d80072fd7 fixed incorrect spelling of 'calender'; corrected to 'calendar' 2010-08-19 21:13:12 +05:30
Yinghua Wang
9c658aa85f Update Simplified Chinese UI translation. 2010-08-11 22:51:26 +08:00
Yinghua Wang
5ef8839152 Update Simplified Chinese property nicks translation. 2010-08-11 22:47:00 +08:00
Andika Triwidada
3d51b15f5c Updated Indonesian translation 2010-08-06 16:01:12 +07:00
Andika Triwidada
295d851a1d Updated Indonesian translation 2010-08-06 15:37:44 +07:00
Gheyret Tohti
fd89e30889 Added Uyghur translation 2010-08-03 14:37:55 +02:00
Nils-Christoph Fiedler
0ad538acbf Added Uyghur translation 2010-08-03 14:33:58 +02:00
Sahran
5161c021cc Added Uyghur translation 2010-08-03 14:33:46 +02:00
Fridrich Štrba
232372df88 Fix 32-bit Windows build using mingw-w64 toolchain 2010-08-03 03:03:06 +02:00
Xandru Armesto
d1dba78ccc Updated asturian translation 2010-07-28 13:34:48 +02:00
Xandru Armesto
98a96d5f37 Updated asturian translation 2010-07-28 13:19:33 +02:00
Xandru Armesto
2daa7462de Updated asturian translation 2010-07-28 13:01:08 +02:00
Petr Kovar
55ac829e31 Fix Czech translation
Partially fixes bug #606564, thanks goes to Vladimir Burian & Marek Cernocky
2010-07-11 18:59:07 +02:00
Tor Lillqvist
765f8344cd Generate correct grab broken event for WM_KILLFOCUS
WM_KILLFOCUS means that a keyboard grab (not a pointer grab), if any,
has been broken. I don't think this bug has matterd much as gtk
generates a grab-broken-event signal for both keybord and pointer
grabs being broken anyway.
2010-06-22 21:30:13 +03:00
Benjamin Otte
ac3797dfc1 Can't select file on file browser after changing sort order
The row values are 1-indexed not 0-indexed, this has to be taken into
account when producing the new_order array.

https://bugzilla.gnome.org/show_bug.cgi?id=621414
(cherry picked from commit a8e3ce6bb4)
2010-06-16 10:03:14 -04:00
Leonid Kanter
98356b1b89 Updated Russian translation from Yuri Myasoedov 2010-06-15 20:13:01 +03:00
Claudio Saavedra
d98600cfc8 Fix typo in docs for GtkFileChooser
Reported by Martin Olsson in
https://bugzilla.gnome.org/show_bug.cgi?id=621479
2010-06-14 17:38:58 +03:00
John (J5) Palmieri
b99b2f0dc6 annotate gtk_color_selection_get_current_color color param as out 2010-06-10 14:54:30 -04:00
Cody Russell
4cf1f2c55c Bug 608218 - GtkOffscreenWindow causes bad window with GtkEntry
We now exit early from gdk_window_register_dnd() to avoid crashing if the
window type is GDK_WINDOW_OFFSCREEN and does not support dnd operations.
This makes it possible to use any dnd-enabled widgets, such as GtkEntry,
within a GtkOffscreenWindow.
2010-06-01 18:52:45 -05:00
Johan Dahlin
6360710b2b [gtktreeview] Add a couple of annotations 2010-05-31 12:13:51 -03:00
Matej Urbančič
74c3e21352 Updated Slovenian translation 2010-05-30 08:43:40 +02:00
Matej Urbančič
c9fb28dd85 Updated Slovenian translation 2010-05-30 08:42:45 +02:00
Matthias Clasen
3743af0ce9 Make the !xkb build survive a little longer
This fixes bug 619114.
(cherry picked from commit eff1fe2500)
2010-05-21 12:18:22 -04:00
Mike Gorse
5d6ebcc177 Implement action interface for gailcell.
Bug #580889.
2010-05-21 10:40:46 -04:00
Marek Kasik
6e4d98c0c7 Update list of US Letter locales
Sync paper size fallbacks with the latest 1.8.1 CLDR table (#618000).
2010-05-21 12:14:04 +02:00
Mattias Põldaru
eadfb65bbb Estonian translation updated 2010-05-20 15:02:56 +03:00
Jan Arne Petersen
84f88bbb1d GtkRange: Redraw if GtkRange is a GtkScale and value is drawn.
* gtk/gtkrange.c: (gtk_range_adjustment_value_change):
Queue the draw also if the range is a scale and the value is drawn,
fixing bug #533946 (Markus Brinkmann), when two HScales use one
adjustment.
2010-05-18 08:55:39 +02:00
Matthias Clasen
f0cfc970ed Another attempt to handle pngs changing int types
(cherry picked from commit 006d5718fa)
2010-05-17 18:55:36 -04:00
Fran Diéguez
d50eaf64f8 Updated Galician translations 2010-05-17 19:15:17 +02:00
Fran Diéguez
71b1b5d80c Updated Galician translations 2010-05-17 19:13:26 +02:00
Fran Diéguez
4719264422 Updated Galician translations 2010-05-17 19:12:28 +02:00