1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */ 2 3 /* 4 * Nemo 5 * 6 * Copyright (C) 2011, Red Hat, Inc. 7 * 8 * Nemo is free software; you can redistribute it and/or 9 * modify it under the terms of the GNU General Public License as 10 * published by the Free Software Foundation; either version 2 of the 11 * License, or (at your option) any later version. 12 * 13 * Nemo is distributed in the hope that it will be useful, 14 * but WITHOUT ANY WARRANTY; without even the implied warranty of 15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 16 * General Public License for more details. 17 * 18 * You should have received a copy of the GNU General Public License 19 * along with this program; if not, write to the Free Software 20 * Foundation, Inc., 51 Franklin Street, Suite 500, MA 02110-1335, USA. 21 * 22 * Author: Cosimo Cecchi <cosimoc@redhat.com> 23 * 24 */ 25 26 #ifndef __NEMO_TOOLBAR_H__ 27 #define __NEMO_TOOLBAR_H__ 28 29 #include <gtk/gtk.h> 30 31 #define NEMO_TYPE_TOOLBAR nemo_toolbar_get_type() 32 #define NEMO_TOOLBAR(obj) \ 33 (G_TYPE_CHECK_INSTANCE_CAST ((obj), NEMO_TYPE_TOOLBAR, NemoToolbar)) 34 #define NEMO_TOOLBAR_CLASS(klass) \ 35 (G_TYPE_CHECK_CLASS_CAST ((klass), NEMO_TYPE_TOOLBAR, NemoToolbarClass)) 36 #define NEMO_IS_TOOLBAR(obj) \ 37 (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NEMO_TYPE_TOOLBAR)) 38 #define NEMO_IS_TOOLBAR_CLASS(klass) \ 39 (G_TYPE_CHECK_CLASS_TYPE ((klass), NEMO_TYPE_TOOLBAR)) 40 #define NEMO_TOOLBAR_GET_CLASS(obj) \ 41 (G_TYPE_INSTANCE_GET_CLASS ((obj), NEMO_TYPE_TOOLBAR, NemoToolbarClass)) 42 43 typedef struct _NemoToolbar NemoToolbar; 44 typedef struct _NemoToolbarPriv NemoToolbarPriv; 45 typedef struct _NemoToolbarClass NemoToolbarClass; 46 47 typedef enum { 48 NEMO_TOOLBAR_MODE_PATH_BAR, 49 NEMO_TOOLBAR_MODE_LOCATION_BAR, 50 } NemoToolbarMode; 51 52 struct _NemoToolbar { 53 GtkBox parent; 54 55 /* private */ 56 NemoToolbarPriv *priv; 57 }; 58 59 struct _NemoToolbarClass { 60 GtkBoxClass parent_class; 61 }; 62 63 GType nemo_toolbar_get_type (void); 64 65 GtkWidget *nemo_toolbar_new (GtkActionGroup *action_group); 66 67 gboolean nemo_toolbar_get_show_location_entry (NemoToolbar *self); 68 GtkWidget *nemo_toolbar_get_path_bar (NemoToolbar *self); 69 GtkWidget *nemo_toolbar_get_location_bar (NemoToolbar *self); 70 71 void nemo_toolbar_set_show_main_bar (NemoToolbar *self, 72 gboolean show_main_bar); 73 void nemo_toolbar_set_show_location_entry (NemoToolbar *self, 74 gboolean show_location_entry); 75 76 #endif /* __NEMO_TOOLBAR_H__ */ 77