summaryrefslogtreecommitdiff
path: root/gtk/gtkbookmarksmanagerprivate.h
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-09-10 13:11:03 +0200
committerTimm Bäder <mail@baedert.org>2019-09-11 08:12:31 +0200
commitce72154913c420f6d002b2ae2bbb8c15a3a8331e (patch)
tree5c4269b3147a36e1ffb5eebc2fcbf060f99933ce /gtk/gtkbookmarksmanagerprivate.h
parented11f2a9e40f8722e6f7153417055241e243a235 (diff)
downloadgtk+-ce72154913c420f6d002b2ae2bbb8c15a3a8331e.tar.gz
Rename gtkbookmarkmanager.h to gtkbookmarksmanagerprivate.h
It's a private type, so gets a private header file name.
Diffstat (limited to 'gtk/gtkbookmarksmanagerprivate.h')
-rw-r--r--gtk/gtkbookmarksmanagerprivate.h87
1 files changed, 87 insertions, 0 deletions
diff --git a/gtk/gtkbookmarksmanagerprivate.h b/gtk/gtkbookmarksmanagerprivate.h
new file mode 100644
index 0000000000..b876511a98
--- /dev/null
+++ b/gtk/gtkbookmarksmanagerprivate.h
@@ -0,0 +1,87 @@
+/* -*- Mode: C; c-file-style: "gnu"; tab-width: 8 -*- */
+/* GTK - The GIMP Toolkit
+ * gtkbookmarksmanager.h: Utilities to manage and monitor ~/.gtk-bookmarks
+ * Copyright (C) 2003, Red Hat, Inc.
+ * Copyright (C) 2007-2008 Carlos Garnacho
+ * Copyright (C) 2011 Suse
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of the
+ * License, or (at your option) any later version.
+ *
+ * This program 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 Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public License
+ * along with this program; if not, see <http://www.gnu.org/licenses/>.
+ *
+ * Authors: Federico Mena Quintero <federico@gnome.org>
+ */
+
+#ifndef __GTK_BOOKMARKS_MANAGER_H__
+#define __GTK_BOOKMARKS_MANAGER_H__
+
+#include <gio/gio.h>
+
+typedef void (* GtkBookmarksChangedFunc) (gpointer data);
+
+typedef struct
+{
+ /* This list contains GtkBookmark structs */
+ GSList *bookmarks;
+
+ GFileMonitor *bookmarks_monitor;
+ gulong bookmarks_monitor_changed_id;
+
+ gpointer changed_func_data;
+ GtkBookmarksChangedFunc changed_func;
+} GtkBookmarksManager;
+
+typedef struct
+{
+ GFile *file;
+ gchar *label;
+} GtkBookmark;
+
+GtkBookmarksManager *_gtk_bookmarks_manager_new (GtkBookmarksChangedFunc changed_func,
+ gpointer changed_func_data);
+
+
+void _gtk_bookmarks_manager_free (GtkBookmarksManager *manager);
+
+GSList *_gtk_bookmarks_manager_list_bookmarks (GtkBookmarksManager *manager);
+
+gboolean _gtk_bookmarks_manager_insert_bookmark (GtkBookmarksManager *manager,
+ GFile *file,
+ gint position,
+ GError **error);
+
+gboolean _gtk_bookmarks_manager_remove_bookmark (GtkBookmarksManager *manager,
+ GFile *file,
+ GError **error);
+
+gboolean _gtk_bookmarks_manager_reorder_bookmark (GtkBookmarksManager *manager,
+ GFile *file,
+ gint new_position,
+ GError **error);
+
+gboolean _gtk_bookmarks_manager_has_bookmark (GtkBookmarksManager *manager,
+ GFile *file);
+
+gchar * _gtk_bookmarks_manager_get_bookmark_label (GtkBookmarksManager *manager,
+ GFile *file);
+
+gboolean _gtk_bookmarks_manager_set_bookmark_label (GtkBookmarksManager *manager,
+ GFile *file,
+ const gchar *label,
+ GError **error);
+
+gboolean _gtk_bookmarks_manager_get_is_builtin (GtkBookmarksManager *manager,
+ GFile *file);
+
+gboolean _gtk_bookmarks_manager_get_is_xdg_dir_builtin (GUserDirectory xdg_type);
+
+#endif /* __GTK_BOOKMARKS_MANAGER_H__ */