diff options
author | Gordon N. Squash <[email protected]> | 2020-07-25 12:09:39 -0400 |
---|---|---|
committer | raveit65 <[email protected]> | 2022-07-21 19:33:49 +0200 |
commit | f8ba5e8d2b3850ea7e21954d1bb8f09eb7af77d6 (patch) | |
tree | cfb67807dbe741cd9fefa442aa8d1c8e386df71f /src/caja-bookmarks-sidebar.h | |
parent | 0f5a28c1d4f5da7fe8d30f1c763809342d69fe7b (diff) | |
download | caja-f8ba5e8d2b3850ea7e21954d1bb8f09eb7af77d6.tar.bz2 caja-f8ba5e8d2b3850ea7e21954d1bb8f09eb7af77d6.tar.xz |
Add a "Bookmarks" sidebar to Caja
Added a "Bookmarks" sidebar to Caja which displays a list of the user's own
bookmarks. Single-clicking any bookmark in the list directs Caja to that
bookmark; middle-clicking on the bookmark directs Caja to open the bookmark
in a new tab.
Diffstat (limited to 'src/caja-bookmarks-sidebar.h')
-rw-r--r-- | src/caja-bookmarks-sidebar.h | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/src/caja-bookmarks-sidebar.h b/src/caja-bookmarks-sidebar.h new file mode 100644 index 00000000..53f29f21 --- /dev/null +++ b/src/caja-bookmarks-sidebar.h @@ -0,0 +1,57 @@ +/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ + +/* + * Caja: Bookmarks sidebar + * + * Copyright (C) 2020 Gordon N. Squash. + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License as + * published by the Free Software Foundation; either version 2 of the + * License, or (at your option) any later version. + * + * This 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 + * General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this library; if not, write to the Free Software + * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA. + * + * Authors: Gordon N. Squash + * + * Based largely on the Caja Places sidebar and the Caja History sidebar. + * + */ +#ifndef _CAJA_BOOKMARKS_SIDEBAR_H +#define _CAJA_BOOKMARKS_SIDEBAR_H + +#include <gtk/gtk.h> + +#include <libcaja-private/caja-view.h> +#include <libcaja-private/caja-window-info.h> +#include <libcaja-private/caja-bookmark.h> + +#include "caja-bookmark-list.h" + +#define CAJA_BOOKMARKS_SIDEBAR_ID "bookmarks" + +#define CAJA_TYPE_BOOKMARKS_SIDEBAR caja_bookmarks_sidebar_get_type() +#define CAJA_BOOKMARKS_SIDEBAR(obj) \ + (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_BOOKMARKS_SIDEBAR, CajaBookmarksSidebar)) + +typedef struct +{ + GtkScrolledWindow parent; + GtkTreeView *tree_view; + CajaWindowInfo *window; + + char *current_uri; + CajaBookmarkList *bookmarks; +} CajaBookmarksSidebar; + +GType caja_bookmarks_sidebar_get_type (void); +void caja_bookmarks_sidebar_register (void); + +#endif |