summaryrefslogtreecommitdiff
path: root/gtk/gtkfilesystem.c
Commit message (Collapse)AuthorAgeFilesLines
* marshallers: ensure g_cclosure_marshal_VOID__VOIDv is usedChristian Hergert2019-05-291-1/+1
| | | | | | | If we set c_marshaller manually, then g_signal_newv() will not setup a va_marshaller for us. However, if we provide c_marshaller as NULL, it will setup both the c_marshaller (to g_cclosure_marshal_VOID__VOID) and va_marshaller (to g_cclosure_marshal_VOID__VOIDv) for us.
* Drop the Big GDK LockEmmanuele Bassi2018-02-031-13/+1
| | | | | | | | | | | | | | | | GDK has a lock to mark critical sections inside the backends. Additionally, code that would re-enter into the GTK main loop was supposed to hold the lock. Back in the Good Old Days™ this was guaranteed to kind of work only on the X11 backend, and would cause a neat explosion on any other GDK backend. During GTK+ 3.x we deprecated the API to enter and leave the critical sections, and now we can remove all the internal uses of the lock, since external API that uses GTK+ 4.x won't be able to hold the GDK lock. https://bugzilla.gnome.org/show_bug.cgi?id=793124
* filesystem: Drop surface-based APIsMatthias Clasen2017-11-081-126/+0
| | | | These are no longer used.
* filesystem: Add GIcon gettersMatthias Clasen2017-11-081-6/+46
| | | | | We want to move away from surfaces, and instead pass GIcons and GdkTextures around.
* gtkfilesystem: Improve heuristics to detect remote filesystemOndrej Holy2016-06-281-19/+2
| | | | | | | | | Use G_FILE_ATTRIBUTE_FILESYSTEM_REMOTE to detect remote filesystems instead of hardcoded list of filesystem types. Bump required GLib version accordingly. https://bugzilla.gnome.org/show_bug.cgi?id=767965
* Chain up in state_flags_changedBenjamin Otte2015-12-021-24/+0
| | | | | When introducing handlers for state_flags_changed in the node transitions, chaining up was forgotten.
* css: Query icon theme from style, not from settingsBenjamin Otte2015-12-021-8/+10
| | | | | No need to look at the settings when the CSS has a property for the icon theme.
* gtkfilesystem: protect against null filesystem typeCarlos Soriano2015-10-081-1/+4
| | | | | | The filesystem:type attribute could be NULL, then g_strv_contains will crash if that happens. Just don't call it if the attribute is not set.
* Intern all signal names beforehandMatthias Clasen2015-09-121-1/+2
| | | | This avoids pointless allocations
* GtkFileSystem: Add to the list of remote filesystemsRoss Lagerwall2015-09-101-0/+2
| | | | | | Add afp and google-drive to the list of remote filesystems. https://bugzilla.gnome.org/show_bug.cgi?id=754746
* file system: Add an api to get a GIconMatthias Clasen2015-09-041-14/+17
| | | | | Using prerendered surfaces is not working well when it comes to state changes, so make the GIcon available.
* Code cleanupMatthias Clasen2015-07-311-4/+2
| | | | | | Use g_slist_free_full more consistently. This commit just converts the obvious cases where g_slist_forall is directly followed by g_slist_free.
* Add a helper function for remote locationsMatthias Clasen2015-07-271-0/+31
| | | | | | | Add a helper function that says whether a location should be considered remote. To determine this, we look at the filesystem type reported by gvfs, and say 'remote' for sftp, webdav, ftp, nfs and cifs.
* Remove an unused variableMatthias Clasen2014-10-031-2/+0
|
* Fix various compiler warningsMatthias Clasen2014-09-051-1/+1
| | | | Mostly missing declarations and missing statics.
* GktFileSystem: Support rendering symbolic iconsMatthias Clasen2014-07-231-13/+73
|
* docs: use apostrophe in *'llWilliam Jon McCann2014-02-071-1/+1
|
* docs: use proper quotesWilliam Jon McCann2014-02-051-1/+1
|
* filechooser: Don't crash if invalid thumbnails existBenjamin Otte2013-12-071-3/+6
| | | | | | | | Failing to load a thumbnail returns a NULL pixbuf. Since the hidpi patches this wasn't checked when creating the surface. Result: assertion failure. https://bugzilla.gnome.org/show_bug.cgi?id=719977
* gtk: Use new macros for defining private dataEmmanuele Bassi2013-07-091-7/+2
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=702996
* File chooser: Convert icons to using cairo_surface_twip/window-scales2Alexander Larsson2013-07-031-28/+40
|
* Merge branch 'places-sidebar' into masterFederico Mena Quintero2013-04-111-433/+0
|\ | | | | | | | | | | This lands the GtkPlacesSidebar widget. It is used in GtkFileChooserDefault, and it can also be used by third-party applications.
| * Merge branch 'origin/master' into places-sidebarFederico Mena Quintero2013-02-271-1/+1
| |\
| * | Remove the bookmarking bits from GtkFileSystemFederico Mena Quintero2012-09-031-433/+0
| | | | | | | | | | | | | | | | | | | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org> Conflicts: gtk/gtkfilesystem.c
* | | filechooser: Rename _gtk_file_is_path_not_local() to _gtk_file_has_native_path()Federico Mena Quintero2013-03-051-6/+5
| | | | | | | | | | | | | | | | | | Negatives in names of boolean functions are confusing. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* | | filechooser: Show FUSE mounted locations in shortcutsTimothy Arceri2013-03-051-0/+14
| |/ |/| | | | | | | | | | | Since FUSE locations can be handled safely by applications show these mounted locations regardless of whether gtk_file_chooser_set_local_only() is set to TRUE https://bugzilla.gnome.org/show_bug.cgi?id=586367
* | Fix deprecations for GtkIconInfoJasper St. Pierre2013-02-151-1/+1
|/
* Migrate to XDG config dir for bookmarksWilliam Jon McCann2012-04-301-9/+42
| | | | | | | Will read from old location if new location isn't found but will write it out to the new location. https://bugzilla.gnome.org/show_bug.cgi?id=646631
* Change FSF AddressJavier Jardón2012-02-271-6/+5
|
* filechooserentry: Move _gtk_file_system_parse()Benjamin Otte2011-12-161-140/+0
| | | | | It's very specific to the file chooser entry, so it's better kept there. It's also not used anywhere else in the code.
* gtkfolder: RemoveBenjamin Otte2011-12-161-489/+0
| | | | It's not used anymore. And new code should of course use gio.
* bgo#514843 - [filechooser] Deal with corrupted .gtk-bookmarks gracefullyJohn Ralls2011-09-121-4/+9
| | | | We weren't checking for the lines in that file being valid UTF-8 strings.
* Allow resolving absolute paths even if there is no base_folderFederico Mena Quintero2011-07-011-2/+15
| | | | | This lets us do proper completion in GtkFileChooserEntry even when no base folder has been set. Completion for relative paths won't work, as usual, as expected.
* Ensure we always grab the gdk lock in async callbacksAlexander Larsson2011-03-281-0/+3
| | | | | | Async callbacks are delivered in idles, so we need to make sure we get the gdk lock before calling any gdk/gtk stuff. This was missing in a few places.
* Initialize private structureJonh Wendell2010-09-301-1/+5
|
* Use GtkFooPrivate instead GtkFooPrivJavier Jardón2010-08-271-27/+27
|
* gtk/gtkfilesystem: Do not use GET_PRIVATE macro all the timeJavier Jardón2010-08-261-77/+41
| | | | Use a private pointer instead
* gtk/: fully remove gtkalias hacksJavier Jardón2010-07-101-2/+0
| | | | https://bugzilla.gnome.org/show_bug.cgi?id=623845
* Fix file chooser refcounting issuesMatthias Clasen2010-03-081-1/+23
| | | | This was reported in bug 600992.
* Don't do completion in the middle of an incomplete hostnameFederico Mena Quintero2009-01-211-1/+32
| | | | | | | | | | | | | | | | | | | | | | | | | | Fix completion so it doesn't pop up for every character in a URI hostname: * gtk/gtkfilechooser.h (GtkFileChooserError): Add a GTK_FILE_CHOOSER_ERROR_INCOMPLETE_HOSTNAME. * gtk/gtkfilesystem.c (_gtk_file_system_parse): Return an "incomplete hostname" error if the user has not typed a full hostname yet in an URI. * gtk/gtkfilechooserentry.c (append_common_prefix): If we get an incomplete hostname, just don't pop up an error, since that is a transient state and the user doesn't need to be notified about it. (refresh_current_folder_and_file_part): Don't revert to showing the base folder if we have an incomplete hostname. (reload_current_folder): Handle the passed folder being NULL, even if we must force a reload. Also, reload the folder if we didn't have a cancellable for it (i.e. we hadn't started to load it before). Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=22157
* bgo545980 - parse URIs in GtkFileChooserEntryFederico Mena Quintero2009-01-211-1/+24
| | | | | | | | | | | | | | | | 2009-01-15 Federico Mena Quintero <federico@novell.com> http://bugzilla.gnome.org/show_bug.cgi?id=545980 - GtkFileChooserEntry should handle URIs * gtk/gtkfilesystem.c (_gtk_file_system_parse): Detect URI schemes and parse the full URI. (has_uri_scheme): New function, stolen from the old gtkfilesystemgnomevfs.c. Signed-off-by: Federico Mena Quintero <federico@novell.com> svn path=/trunk/; revision=22154
* Mask G_FILE_TYPE_SHORTCUT as a directory (#561494)Tomas Bzatek2008-12-151-1/+2
| | | | | | | | | | | 2008-12-15 Tomas Bzatek <tbzatek@redhat.com> * gtk/gtkfilechooserdefault.c: (list_row_activated): * gtk/gtkfilesystem.c: (_gtk_file_info_consider_as_directory): Mask G_FILE_TYPE_SHORTCUT as a directory (#561494) svn path=/trunk/; revision=21906
* Privately export this method. It classifies directories and mountables theMatthias Clasen2008-12-141-0/+15
| | | | | | | | | | | | | | | | | | | * gtk/gtkfilesystem.[hc] (_gtk_file_info_consider_as_directory): Privately export this method. It classifies directories and mountables the same. * gtk/gtkfilesystem.c (enclosing_volume_mount_cb): Silently drop G_IO_ERROR_ALREADY_MOUNTED error for gvfs backends without visible mounts. * gtk/gtkfilesystemmodel.c: * gtk/gtkfilechooserbutton.c: * gtk/gtkfilechooserentry.c: * gtk/gtkfilechooserdefault.c: Use the new function instead of direct checks for G_FILE_TYPE_DIRECTORY throughout. svn path=/trunk/; revision=21898
* Filter out shadow mountsMatthias Clasen2008-12-011-2/+43
| | | | svn path=/trunk/; revision=21838
* Bug 528320 - Incorrect icons displayed for files with custom mimetypeAlexander Larsson2008-10-231-0/+8
| | | | | | | | | | | | | | | | | 2008-10-23 Alexander Larsson <alexl@redhat.com> Bug 528320 - Incorrect icons displayed for files with custom mimetype icons * gtk/gtkfilesystem.c: (_gtk_file_info_render_icon): Fall back on default file icon if there was no icon or it was not found in the theme. This goes with the corresponding change in glib to not add the fallback icon, but is useful in other cases too. svn path=/trunk/; revision=21702
* Bug 554702 – gtkfilesystem leaks GErrorChristian Persch2008-10-081-3/+9
| | | | | | | Also fixes some "format not a string literal and no format arguments" warnings. svn path=/trunk/; revision=21611
* Bug 554701 – filechooser spams console with useless warningsChristian Persch2008-10-021-1/+3
| | | | svn path=/trunk/; revision=21571
* use the correct gi18n header. Fixes bug #553000.Frederic Crozat2008-09-221-1/+1
| | | | | | | | | | 2008-09-22 Frederic Crozat <fcrozat@mandriva.com> * gtk/gtkfilesystem.c: use the correct gi18n header. Fixes bug #553000. svn path=/trunk/; revision=21486
* Don't free a GFile. Reported by Sebastien BacherMatthias Clasen2008-07-161-1/+1
| | | | | | | | | * gtk/gtkfilesystem.c (_gtk_file_system_set_bookmark_label): Don't free a GFile. Reported by Sebastien Bacher svn path=/trunk/; revision=20843
* include the two needed headers instead of <gtk/gtk.h>.Michael Natterer2008-07-071-1/+2
| | | | | | | | | | 2008-07-07 Michael Natterer <mitch@imendio.com> * gtk/gtkfilesystem.c: include the two needed headers instead of <gtk/gtk.h>. svn path=/trunk/; revision=20804