1 /* 2 * gedit-utils.h 3 * This file is part of gedit 4 * 5 * Copyright (C) 1998, 1999 Alex Roberts, Evan Lawrence 6 * Copyright (C) 2000, 2001 Chema Celorio, Paolo Maggi 7 * Copyright (C) 2002 - 2005 Paolo Maggi 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published by 11 * the Free Software Foundation; either version 2 of the License, or 12 * (at your option) any later version. 13 * 14 * This program 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 17 * GNU 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, see <http://www.gnu.org/licenses/>. 21 */ 22 23 #ifndef GEDIT_UTILS_H 24 #define GEDIT_UTILS_H 25 26 #include <gtksourceview/gtksource.h> 27 28 G_BEGIN_DECLS 29 30 gboolean gedit_utils_menu_position_under_tree_view (GtkTreeView *tree_view, 31 GdkRectangle *rect); 32 33 void gedit_utils_set_atk_name_description (GtkWidget *widget, 34 const gchar *name, 35 const gchar *description); 36 37 gchar *gedit_utils_location_get_dirname_for_display (GFile *location); 38 39 gboolean gedit_utils_is_valid_location (GFile *location); 40 41 gchar *gedit_utils_basename_for_display (GFile *location); 42 43 /* Turns data from a drop into a list of well formatted uris */ 44 gchar **gedit_utils_drop_get_uris (GtkSelectionData *selection_data); 45 46 gchar *gedit_utils_set_direct_save_filename (GdkDragContext *context); 47 48 GtkSourceCompressionType gedit_utils_get_compression_type_from_content_type (const gchar *content_type); 49 50 const gchar *gedit_utils_newline_type_to_string (GtkSourceNewlineType newline_type); 51 52 G_END_DECLS 53 54 #endif /* GEDIT_UTILS_H */ 55 56 /* ex:set ts=8 noet: */ 57