1 /* Eye Of Gnome - Error Message Area 2 * 3 * Copyright (C) 2007 The Free Software Foundation 4 * 5 * Author: Lucas Rocha <lucasr@gnome.org> 6 * 7 * Based on gedit code (gedit/gedit-message-area.h) by: 8 * - Paolo Maggi <paolo@gnome.org> 9 * 10 * This program is free software; you can redistribute it and/or modify 11 * it under the terms of the GNU General Public License as published by 12 * the Free Software Foundation; either version 2 of the License, or 13 * (at your option) any later version. 14 * 15 * This program is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU General Public License for more details. 19 * 20 * You should have received a copy of the GNU General Public License along 21 * with this program; if not, write to the Free Software Foundation, Inc., 22 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 23 */ 24 25 #ifndef __EOG_ERROR_MESSAGE_AREA__ 26 #define __EOG_ERROR_MESSAGE_AREA__ 27 28 #include <glib.h> 29 #include <gtk/gtk.h> 30 #include <gio/gio.h> 31 32 /** 33 * EogErrorMessageAreaResponseType: 34 * @EOG_ERROR_MESSAGE_AREA_RESPONSE_NONE: Returned if the message area has no response id, 35 * or if the message area gets programmatically hidden or destroyed 36 * @EOG_ERROR_MESSAGE_AREA_RESPONSE_CANCEL: Returned by CANCEL button in the message area 37 * @EOG_ERROR_MESSAGE_AREA_RESPONSE_RELOAD: Returned by RELOAD button in the message area 38 * @EOG_ERROR_MESSAGE_AREA_RESPONSE_SAVEAS: Returned by SAVE AS button in the message area 39 * 40 */ 41 typedef enum 42 { 43 EOG_ERROR_MESSAGE_AREA_RESPONSE_NONE = 0, 44 EOG_ERROR_MESSAGE_AREA_RESPONSE_CANCEL = 1, 45 EOG_ERROR_MESSAGE_AREA_RESPONSE_RELOAD = 2, 46 EOG_ERROR_MESSAGE_AREA_RESPONSE_SAVEAS = 3, 47 EOG_ERROR_MESSAGE_AREA_RESPONSE_OPEN_WITH_EVINCE = 4 48 } EogErrorMessageAreaResponseType; 49 50 G_GNUC_INTERNAL 51 GtkWidget *eog_image_load_error_message_area_new (const gchar *caption, 52 const GError *error); 53 54 G_GNUC_INTERNAL 55 GtkWidget *eog_image_save_error_message_area_new (const gchar *caption, 56 const GError *error); 57 58 G_GNUC_INTERNAL 59 GtkWidget *eog_no_images_error_message_area_new (GFile *file); 60 61 G_GNUC_INTERNAL 62 GtkWidget *eog_multipage_error_message_area_new (void); 63 64 #endif /* __EOG_ERROR_MESSAGE_AREA__ */ 65