diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 17:39:48 +0000 |
commit | 3ade071f273aaa973e44bf95d6b1d4913a18f03b (patch) | |
tree | e2f99d267ae18427645404f215b984afbe73098d /src/nautilus-bookmark.h | |
parent | Initial commit. (diff) | |
download | nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.tar.xz nautilus-3ade071f273aaa973e44bf95d6b1d4913a18f03b.zip |
Adding upstream version 43.2.upstream/43.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/nautilus-bookmark.h | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/src/nautilus-bookmark.h b/src/nautilus-bookmark.h new file mode 100644 index 0000000..6bf3852 --- /dev/null +++ b/src/nautilus-bookmark.h @@ -0,0 +1,54 @@ + +/* nautilus-bookmark.h - implementation of individual bookmarks. + * + * Copyright (C) 1999, 2000 Eazel, Inc. + * Copyright (C) 2011, Red Hat, Inc. + * + * The Gnome Library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * The Gnome Library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public + * License along with the Gnome Library; see the file COPYING.LIB. If not, + * see <http://www.gnu.org/licenses/>. + * + * Authors: John Sullivan <sullivan@eazel.com> + * Cosimo Cecchi <cosimoc@redhat.com> + */ + +#pragma once + +#include <gtk/gtk.h> +#include <gio/gio.h> + +G_BEGIN_DECLS + +#define NAUTILUS_TYPE_BOOKMARK nautilus_bookmark_get_type() + +G_DECLARE_FINAL_TYPE (NautilusBookmark, nautilus_bookmark, NAUTILUS, BOOKMARK, GObject) + +NautilusBookmark * nautilus_bookmark_new (GFile *location, + const char *custom_name); +const char * nautilus_bookmark_get_name (NautilusBookmark *bookmark); +GFile * nautilus_bookmark_get_location (NautilusBookmark *bookmark); +char * nautilus_bookmark_get_uri (NautilusBookmark *bookmark); +GIcon * nautilus_bookmark_get_icon (NautilusBookmark *bookmark); +GIcon * nautilus_bookmark_get_symbolic_icon (NautilusBookmark *bookmark); +gboolean nautilus_bookmark_get_xdg_type (NautilusBookmark *bookmark, + GUserDirectory *directory); +gboolean nautilus_bookmark_get_is_builtin (NautilusBookmark *bookmark); +gboolean nautilus_bookmark_get_has_custom_name (NautilusBookmark *bookmark); +int nautilus_bookmark_compare_with (gconstpointer a, + gconstpointer b); + +void nautilus_bookmark_set_scroll_pos (NautilusBookmark *bookmark, + const char *uri); +char * nautilus_bookmark_get_scroll_pos (NautilusBookmark *bookmark); + +G_END_DECLS |