1 2 /* 3 * Nautilus 4 * 5 * Copyright (C) 2011, Red Hat, Inc. 6 * 7 * Nautilus is free software; you can redistribute it and/or 8 * modify it under the terms of the GNU General Public License as 9 * published by the Free Software Foundation; either version 2 of the 10 * License, or (at your option) any later version. 11 * 12 * Nautilus is distributed in the hope that it will be useful, 13 * but WITHOUT ANY WARRANTY; without even the implied warranty of 14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 15 * General Public License for more details. 16 * 17 * You should have received a copy of the GNU General Public License 18 * along with this program; if not, see <http://www.gnu.org/licenses/>. 19 * 20 * Author: Cosimo Cecchi <cosimoc@redhat.com> 21 * 22 */ 23 24 #pragma once 25 26 #include <gtk/gtk.h> 27 #include <libhandy-1/handy.h> 28 29 #include "nautilus-window-slot.h" 30 31 G_BEGIN_DECLS 32 33 #define NAUTILUS_TYPE_TOOLBAR nautilus_toolbar_get_type() 34 35 G_DECLARE_FINAL_TYPE (NautilusToolbar, nautilus_toolbar, NAUTILUS, TOOLBAR, HdyHeaderBar) 36 37 GtkWidget *nautilus_toolbar_new (void); 38 39 GtkWidget *nautilus_toolbar_get_path_bar (NautilusToolbar *self); 40 GtkWidget *nautilus_toolbar_get_location_entry (NautilusToolbar *self); 41 42 void nautilus_toolbar_set_show_location_entry (NautilusToolbar *self, 43 gboolean show_location_entry); 44 45 void nautilus_toolbar_set_active_slot (NautilusToolbar *toolbar, 46 NautilusWindowSlot *slot); 47 48 gboolean nautilus_toolbar_is_menu_visible (NautilusToolbar *toolbar); 49 50 gboolean nautilus_toolbar_is_operations_button_active (NautilusToolbar *toolbar); 51 52 void nautilus_toolbar_on_window_constructed (NautilusToolbar *toolbar); 53 54 void nautilus_toolbar_set_window_slot (NautilusToolbar *self, 55 NautilusWindowSlot *window_slot); 56 G_END_DECLS 57