1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
3 /* nautilus-ui-utilities.h - helper functions for GtkUIManager stuff
5 Copyright (C) 2004 Red Hat, Inc.
7 The Gnome Library is free software; you can redistribute it and/or
8 modify it under the terms of the GNU Library 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.
12 The Gnome Library 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 Library General Public License for more details.
17 You should have received a copy of the GNU Library General Public
18 License along with the Gnome Library; see the file COPYING.LIB. If not,
19 write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20 Boston, MA 02111-1307, USA.
22 Authors: Alexander Larsson <alexl@redhat.com>
24 #ifndef NAUTILUS_UI_UTILITIES_H
25 #define NAUTILUS_UI_UTILITIES_H
27 #include <gtk/gtkuimanager.h>
28 #include <libnautilus-extension/nautilus-menu-item.h>
30 char * nautilus_get_ui_directory (void);
31 char * nautilus_ui_file (const char *partial_path
);
32 void nautilus_ui_unmerge_ui (GtkUIManager
*ui_manager
,
34 GtkActionGroup
**action_group
);
35 void nautilus_ui_prepare_merge_ui (GtkUIManager
*ui_manager
,
38 GtkActionGroup
**action_group
);
39 GtkAction
* nautilus_action_from_menu_item (NautilusMenuItem
*item
);
40 GtkAction
* nautilus_toolbar_action_from_menu_item (NautilusMenuItem
*item
);
41 const char *nautilus_ui_string_get (const char *filename
);
43 #endif /* NAUTILUS_UI_UTILITIES_H */