summaryrefslogtreecommitdiff
path: root/src/nautilus-bookmark.c
Commit message (Collapse)AuthorAgeFilesLines
* bookmark: Simplify broken bookmark icon logicAntónio Fernandes2022-07-021-39/+7
| | | | | There is no need to restore emblem functionlity here, because a warning icon works just fine. Let's cleanup.
* toolbar: Use popovers for history menusAntónio Fernandes2022-01-051-26/+0
| | | | GtkMenu is gone in GTK 4.
* general: Stop using GEmblemedIconAntónio Fernandes2021-12-311-0/+5
| | | | | | GTK 4 is not going to draw them anyway. Assume a temporary regression, to be fixed after the switch to GTK 4.
* bookmark: Use g_auto* macrosYi-Soo An2018-07-041-27/+12
| | | | | | According to the documentation, the variables with these macros are cleaned up in a way appropriate to its type when the variables go out of scope.
* bookmark: Clean up get_is_builtinAntónio Fernandes2018-01-041-6/+3
| | | | | | | Now that we don't check for icons on desktop, there is no need for a separate "if" block. Instead, make it closer to equivalent code in gtk/gtkbookmarksmanager.c
* bookmark: Actually drop unused includeAntónio Fernandes2018-01-031-1/+1
| | | | The wrong line was deleted in the previous commit eb3b172fe7d926168fc0027860e5d00889a561ad
* bookmark: Drop unused #includeAntónio Fernandes2018-01-031-1/+0
| | | | We used to check for NAUTILUS_PREFERENCES_SHOW_DESKTOP, but that was removed by commit 74dd9c9f72002d482c898a704bb5b95655e35e08
* general: remove desktop supportErnestas Kulik2018-01-021-2/+1
|
* nautilus.desktop: Remove saved-search leftoversCarlos Soriano2017-08-091-10/+2
| | | | | | It was removed long ago https://bugzilla.gnome.org/show_bug.cgi?id=771424
* general: quash some warningsErnestas Kulik2016-10-071-4/+4
| | | | | | | | | lineup-parameters: remove unused variable (fixed upstream) bookmark: cast away const modifier in nautilus_bookmark_compare_with() when using GLib macros file-operations: used correct enum in a function call https://bugzilla.gnome.org/show_bug.cgi?id=772586
* bookmark: port to G_DECLARE* type declarationsSirbu Lavinia Stefania2016-10-071-89/+86
| | | | | | | | | | | | | Currently we are using the old GObject class declarations, which have two problems. One problem is that we cannot use smart pointers like g_autoptr. The other problem is the boilerplate code generated that makes the code less readable, so harder to understand. To fix this use G_DECLARE* type. https://bugzilla.gnome.org/show_bug.cgi?id=771837
* general: run uncrustifyCarlos Soriano2016-08-291-543/+635
| | | | | | | | 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
* general: merge libnautilus-private to srcwip/csoriano/private-to-srcCarlos Soriano2016-04-251-0/+780
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Moved NautilusBookmark from src/ to libnautilus/, in anticipation of using it inJohn Sullivan2000-02-151-280/+0
| | | | History metaview.
* Added small icons to the Back and Forward context menus. Made window back andJohn Sullivan2000-02-151-0/+59
| | | | forward lists store NautilusBookmark pointers instead of just char *.
* Changed the icon factory interface in a few ways: 1) There's no longer aDarin Adler2000-02-011-7/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * libnautilus/nautilus-icon-factory.h: * libnautilus/nautilus-icon-factory.c: (nautilus_icon_factory_new): (nautilus_icon_factory_destroy): (nautilus_get_current_icon_factory): (nautilus_icon_factory_get_icon_for_file): (nautilus_icon_factory_set_theme): (nautilus_icon_factory_get_icon_by_name): (nautilus_icon_factory_get_pixbuf_for_icon): (nautilus_scalable_icon_ref): (nautilus_scalable_icon_unref): (nautilus_scalable_icon_get_name): (scalable_icon_get): (icon_set_possibly_free): (scalable_icon_new): Changed the icon factory interface in a few ways: 1) There's no longer a NautilusIconFactory object. There's just a single global icon factory. If we find that we need multiple factories, we can implement that later. 2) Instead of going straight from a file to a pixbuf, you get a scalable icon, and then get a pixbuf from that. This allows you to choose the icon and then get different-sized versions of it without going through the icon selection process over and over again. There's also a name for each icon which can be stored in the metafile so you can get the same icon again before you have full information on a file. * src/nautilus-bookmark.c: (nautilus_bookmark_get_pixmap_and_mask): * src/file-manager/fm-directory-view-list.c: (install_icon): * src/file-manager/fm-icons-controller.c: (fm_icons_controller_get_icon_image): Changed icon factory clients to use the new interface. Maybe after a while I'll add a convenience function that's as simple as the old interface was for the common case where you want to go straight to the pixbuf, but lets try it this way for a while. * libnautilus/nautilus-string.h: * libnautilus/nautilus-string.c: (nautilus_has_prefix): Added nautilus_has_prefix. This checks to see if a string has a particular prefix. It's both clearer to read and more efficient than Andy's typical trick of calling strstr. * libnautilus/nautilus-lib-self-check-functions.h: * libnautilus/nautilus-string.c: Added self-checks for nautilus-string.c. The tests uncovered a bug in nautilus_string_to_int that I fixed. * nautilus-glib-extensions.c: Just a stray new-line.
* Added icons to bookmarks menu & window; cleaned up some zoom code; fixed a fewJohn Sullivan2000-01-281-8/+50
| | | | storage leaks.
* Update copyright notices.Elliot Lee2000-01-031-1/+1
| | | | | | 2000-01-03 Elliot Lee <sopwith@redhat.com> Update copyright notices.
* Implemented save/restore bookmarks across sessions. Also changed implementationJohn Sullivan1999-12-311-9/+7
| | | | of NautilusBookmark to use gchar * instead of GString.
* Added nautilus_bookmark_copy and fixed g_return_if_fail compile problem.John Sullivan1999-12-291-0/+10
|
* Just improved the quantity and quality of g_return_if_fail calls.John Sullivan1999-12-291-3/+6
|
* Prevented "Add Bookmark" from adding multiple identical bookmarks; fixedJohn Sullivan1999-12-291-8/+46
| | | | | bug about window count; fixed bug where "Add Bookmark" would crash if a window had been closed previously.
* The bookmarks menu is now limping along. Add Bookmark works, and the items thatJohn Sullivan1999-12-201-0/+130
are added work properly. But Edit Bookmarks is still insensitive, so there's no way to remove items (except by quitting, because the items aren't yet saved and restored across sessions).