1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 2 /* 3 * resources.h 4 * Copyright (C) Naba Kumar <naba@gnome.org> 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14 * GNU General Public License for more details. 15 * 16 * You should have received a copy of the GNU General Public License 17 * along with this program; if not, write to the Free Software 18 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA 19 */ 20 #ifndef _RESOURCES_H_ 21 #define _RESOURCES_H_ 22 23 #include <gtk/gtk.h> 24 25 G_BEGIN_DECLS 26 27 GtkWidget* anjuta_res_lookup_widget (GtkWidget *widget, 28 const gchar *widget_name); 29 GtkWidget* anjuta_res_get_image (const gchar* filename); 30 GtkWidget* anjuta_res_get_image_sized (const gchar* filename, 31 gint width, gint height); 32 33 /* All the return strings MUST be freed */ 34 gchar* anjuta_res_get_pixmap_dir (void); 35 gchar* anjuta_res_get_data_dir (void); 36 gchar* anjuta_res_get_help_dir (void); 37 gchar* anjuta_res_get_help_dir_locale (const gchar* locale); 38 gchar* anjuta_res_get_doc_dir (void); 39 40 /* All the return strings MUST be freed */ 41 gchar* anjuta_res_get_pixmap_file (const gchar* pixfile); 42 gchar* anjuta_res_get_data_file (const gchar* pixfile); 43 gchar* anjuta_res_get_help_file (const gchar* helpfile); 44 gchar* anjuta_res_get_help_file_locale (const gchar* helpfile, 45 const gchar* locale); 46 gchar* anjuta_res_get_doc_file (const gchar* docfile); 47 48 /* System Help */ 49 void anjuta_res_help_search (const gchar * word); 50 51 /* URI handler -- wrapped over gnome_url_show() */ 52 void anjuta_res_url_show(const char *url); 53 54 G_END_DECLS 55 56 #endif /* _RESOURCES_H_ */ 57