1 /* gdict-common.h - shared code between application and applet 2 * 3 * This file is part of GNOME Dictionary 4 * 5 * Copyright (C) 2005 Emmanuele Bassi 6 * 7 * This program 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 10 * the License, or (at your option) any later version. 11 * 12 * This program 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 21 #ifndef __GDICT_COMMON_H__ 22 #define __GDICT_COMMON_H__ 23 24 #include <gtk/gtk.h> 25 26 G_BEGIN_DECLS 27 28 gchar * gdict_get_data_dir (void) G_GNUC_MALLOC; 29 gchar * gdict_get_old_data_dir (void) G_GNUC_MALLOC; 30 gchar * gdict_get_config_dir (void) G_GNUC_MALLOC; 31 32 gboolean gdict_create_data_dir (void); 33 gboolean gdict_create_config_dir (void); 34 35 void gdict_show_error_dialog (GtkWindow *parent, 36 const gchar *message, 37 const gchar *detail); 38 void gdict_show_gerror_dialog (GtkWindow *parent, 39 const gchar *message, 40 GError *error); 41 42 gboolean gdict_is_devel_build (void); 43 44 G_END_DECLS 45 46 #endif /* __GDICT_COMMON_H__ */ 47