1 /* -*- Mode: C; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 8 -*- */ 2 3 /* 4 * Nemo 5 * 6 * Copyright (C) 2004 Red Hat, Inc. 7 * Copyright (C) 2003 Marco Pesenti Gritti 8 * 9 * Nemo is free software; you can redistribute it and/or 10 * modify it under the terms of the GNU General Public License as 11 * published by the Free Software Foundation; either version 2 of the 12 * License, or (at your option) any later version. 13 * 14 * Nemo is distributed in the hope that it will be useful, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 17 * General Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License 20 * along with this program; if not, write to the Free Software 21 * Foundation, Inc., 51 Franklin Street, Suite 500, MA 02110-1335, USA. 22 * 23 * 24 * Based on ephy-navigation-action.h from Epiphany 25 * 26 * Authors: Alexander Larsson <alexl@redhat.com> 27 * Marco Pesenti Gritti 28 * 29 */ 30 31 #ifndef NEMO_NAVIGATION_ACTION_H 32 #define NEMO_NAVIGATION_ACTION_H 33 34 #include <gtk/gtk.h> 35 36 #define NEMO_TYPE_NAVIGATION_ACTION (nemo_navigation_action_get_type ()) 37 #define NEMO_NAVIGATION_ACTION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_NAVIGATION_ACTION, NemoNavigationAction)) 38 #define NEMO_NAVIGATION_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_NAVIGATION_ACTION, NemoNavigationActionClass)) 39 #define NEMO_IS_NAVIGATION_ACTION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_NAVIGATION_ACTION)) 40 #define NEMO_IS_NAVIGATION_ACTION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((obj), NEMO_TYPE_NAVIGATION_ACTION)) 41 #define NEMO_NAVIGATION_ACTION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS((obj), NEMO_TYPE_NAVIGATION_ACTION, NemoNavigationActionClass)) 42 43 typedef struct _NemoNavigationAction NemoNavigationAction; 44 typedef struct _NemoNavigationActionClass NemoNavigationActionClass; 45 typedef struct NemoNavigationActionPrivate NemoNavigationActionPrivate; 46 47 typedef enum 48 { 49 NEMO_NAVIGATION_DIRECTION_BACK, 50 NEMO_NAVIGATION_DIRECTION_FORWARD, 51 NEMO_NAVIGATION_DIRECTION_UP, 52 NEMO_NAVIGATION_DIRECTION_RELOAD, 53 NEMO_NAVIGATION_DIRECTION_HOME, 54 NEMO_NAVIGATION_DIRECTION_COMPUTER, 55 NEMO_NAVIGATION_DIRECTION_EDIT, 56 57 } NemoNavigationDirection; 58 59 struct _NemoNavigationAction 60 { 61 GtkAction parent; 62 63 /*< private >*/ 64 NemoNavigationActionPrivate *priv; 65 }; 66 67 struct _NemoNavigationActionClass 68 { 69 GtkActionClass parent_class; 70 }; 71 72 GType nemo_navigation_action_get_type (void); 73 74 #endif 75