summaryrefslogtreecommitdiff
path: root/gtk/gtkbookmarksmanager.c
Commit message (Collapse)AuthorAgeFilesLines
* gtkbookmarksmanager: Use GTK+ 3.0's bookmarks fileBastien Nocera2018-02-151-1/+5
| | | | | | | | | There's no reason to use a separate file until the format of the file changes though, as this just means that GTK+ 3.x and GTK+ 4.x applications would end up showing different bookmarks in the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=793425
* Drop the Big GDK LockEmmanuele Bassi2018-02-031-3/+0
| | | | | | | | | | | | | | | | 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
* build: Enable -Wswitch-enum and -Wswitch-defaultBenjamin Otte2017-10-061-0/+7
| | | | | | | | | | | | | | | | | | | This patch makes that work using 1 of 2 options: 1. Add all missing enums to the switch statement or 2. Cast the switch argument to a uint to avoid having to do that (mostly for GdkEventType). I even found a bug while doing that: clearing a GtkImage with a surface did not notify thae surface property. The reason for enabling this flag even though it is tedious at times is that it is very useful when adding values to an enum, because it makes GTK immediately warn about all the switch statements where this enum is relevant. And I expect changes to enums to be frequent during the GTK4 development cycle.
* gtk: Update path references from gtk-3.0 to gtk-4.0Rico Tzschichholz2016-10-231-1/+1
|
* Fix the licensing blurb of GtkBookmarksManagerEmmanuele Bassi2015-11-191-3/+3
| | | | | | | | Copy-pasta from GPL instead of LGPL. Also, there is no GNU Lesser General Public License version 2; either it's the GNU Library General Public License version 2, or it's the GNU Lesser General Public License version 2.1.
* gtkbookmarksmanager: don't allow non valid utf8 in bookmarksCarlos Soriano2015-09-251-1/+1
| | | | | | | In case some client send to us a non valid utf8 string, don't screw up the bookmarks file and just return. https://bugzilla.gnome.org/show_bug.cgi?id=755215
* Code cleanupMatthias Clasen2015-07-311-9/+5
| | | | | | 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.
* Avoid a redundant strlenMatthias Clasen2014-06-281-1/+1
| | | | | The GString knows perfectly well how long it is. Pointed out in https://bugzilla.gnome.org/show_bug.cgi?id=731158
* Changed obsolete FSF portal addresses to web addressAndika Triwidada2014-01-121-2/+1
| | | | Fixed https://bugzilla.gnome.org/show_bug.cgi?id=721530
* GtkBookmarksManager: Refactor duplicate set error code and localise error ↵Timothy Arceri2013-05-301-31/+18
| | | | | | strings https://bugzilla.gnome.org/show_bug.cgi?id=593079
* Fix build on C89 compilersChun-wei Fan2013-05-281-1/+2
| | | | | | -Avoid defining variables in the middle of the block -Include fallback-c89.c in gtkrevealer.c in place of math.h as fallback-c89.c includes math.h itself, and is needed for round()
* GtkBookmarksManager: Only save if we have data to saveColin Walters2013-05-091-1/+2
| | | | Otherwise we write an empty file, which is lame.
* GtkBookmarksManager: Ensure parent directory exists when savingColin Walters2013-05-091-1/+14
| | | | Otherwise we fail when the user doesn't have ~/.config yet.
* Apply custom names to XDG dirs if possibleCosimo Cecchi2013-01-211-0/+10
| | | | And make it possible to rename them
* Add API to GtkBookmarksManager for built-in bookmarksCosimo Cecchi2013-01-211-0/+61
| | | | I.e. those that are added automatically from XDG dirs.
* Mark a function as staticCosimo Cecchi2013-01-211-1/+1
|
* Allow not setting a changed callback on GtkBookmarksManagerFederico Mena Quintero2012-12-051-3/+2
|
* Oops, reorder the bookmarks list correctlyFederico Mena Quintero2012-10-201-6/+27
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Implement bookmark reordering, at least the coreFederico Mena Quintero2012-09-111-0/+49
| | | | | | The drag-and-drop part is missing; that still needs de-nautilus-ifying. Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Factor out code to find a bookmark in the list of bookmarksFederico Mena Quintero2012-09-111-57/+53
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Fix compilationFederico Mena Quintero2012-09-031-3/+3
|
* Cancel and disconnect from the bookmarks monitor when doneFederico Mena Quintero2012-09-031-3/+8
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Read the legacy bookmarks fileFederico Mena Quintero2012-09-031-1/+25
| | | | Signed-off-by: Federico Mena Quintero <federico@gnome.org>
* Split out a GtkBookmarksManager from gtkfilesystem.[ch]Federico Mena Quintero2012-09-031-0/+431
We had the bookmarks machinery in GtkFileSystem for historical reasons. Now, we'll keep this separately. This will allow us to make the bookmarks machinery public if needed in the future. Signed-off-by: Federico Mena Quintero <federico@gnome.org> Conflicts: gtk/Makefile.am