summaryrefslogtreecommitdiff
path: root/src/caja-navigation-window-slot.h
diff options
context:
space:
mode:
authorPerberos <[email protected]>2011-12-01 22:24:23 -0300
committerPerberos <[email protected]>2011-12-01 22:24:23 -0300
commit0e004c696b0e68b2cff37a4c3315b022a35eaf43 (patch)
tree43261e815529cb9518ed7be37af13b846af8b26b /src/caja-navigation-window-slot.h
downloadcaja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.bz2
caja-0e004c696b0e68b2cff37a4c3315b022a35eaf43.tar.xz
moving from https://github.com/perberos/mate-desktop-environment
Diffstat (limited to 'src/caja-navigation-window-slot.h')
-rw-r--r--src/caja-navigation-window-slot.h78
1 files changed, 78 insertions, 0 deletions
diff --git a/src/caja-navigation-window-slot.h b/src/caja-navigation-window-slot.h
new file mode 100644
index 00000000..f8cfbec8
--- /dev/null
+++ b/src/caja-navigation-window-slot.h
@@ -0,0 +1,78 @@
+/* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*-
+
+ caja-navigation-window-slot.h: Caja navigation window slot
+
+ Copyright (C) 2008 Free Software Foundation, Inc.
+
+ This program 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 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
+ General Public License for more details.
+
+ You should have received a copy of the GNU General Public
+ License along with this program; if not, write to the
+ Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ Boston, MA 02111-1307, USA.
+
+ Author: Christian Neumair <[email protected]>
+*/
+
+#ifndef CAJA_NAVIGATION_WINDOW_SLOT_H
+#define CAJA_NAVIGATION_WINDOW_SLOT_H
+
+#include "caja-window-slot.h"
+
+typedef struct CajaNavigationWindowSlot CajaNavigationWindowSlot;
+typedef struct CajaNavigationWindowSlotClass CajaNavigationWindowSlotClass;
+
+
+#define CAJA_TYPE_NAVIGATION_WINDOW_SLOT (caja_navigation_window_slot_get_type())
+#define CAJA_NAVIGATION_WINDOW_SLOT_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), CAJA_NAVIGATION_WINDOW_SLOT_CLASS, CajaNavigationWindowSlotClass))
+#define CAJA_NAVIGATION_WINDOW_SLOT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), CAJA_TYPE_NAVIGATION_WINDOW_SLOT, CajaNavigationWindowSlot))
+#define CAJA_IS_NAVIGATION_WINDOW_SLOT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), CAJA_TYPE_NAVIGATION_WINDOW_SLOT))
+#define CAJA_IS_NAVIGATION_WINDOW_SLOT_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), CAJA_TYPE_NAVIGATION_WINDOW_SLOT))
+#define CAJA_NAVIGATION_WINDOW_SLOT_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), CAJA_TYPE_NAVIGATION_WINDOW_SLOT, CajaNavigationWindowSlotClass))
+
+typedef enum
+{
+ CAJA_BAR_PATH,
+ CAJA_BAR_NAVIGATION,
+ CAJA_BAR_SEARCH
+} CajaBarMode;
+
+struct CajaNavigationWindowSlot
+{
+ CajaWindowSlot parent;
+
+ CajaBarMode bar_mode;
+ GtkTreeModel *viewer_model;
+ int num_viewers;
+
+ /* Back/Forward chain, and history list.
+ * The data in these lists are CajaBookmark pointers.
+ */
+ GList *back_list, *forward_list;
+
+ /* Current views stuff */
+ GList *sidebar_panels;
+};
+
+struct CajaNavigationWindowSlotClass
+{
+ CajaWindowSlotClass parent;
+};
+
+GType caja_navigation_window_slot_get_type (void);
+
+gboolean caja_navigation_window_slot_should_close_with_mount (CajaNavigationWindowSlot *slot,
+ GMount *mount);
+
+void caja_navigation_window_slot_clear_forward_list (CajaNavigationWindowSlot *slot);
+void caja_navigation_window_slot_clear_back_list (CajaNavigationWindowSlot *slot);
+
+#endif /* CAJA_NAVIGATION_WINDOW_SLOT_H */