/* Evolution calendar - Send calendar component dialog * * Copyright (C) 1999-2008 Novell, Inc. (www.novell.com) * * Author: JP Rosevear <jpr@ximian.com> * * This program is free software; you can redistribute it and/or * modify it under the terms of version 2 of the GNU General Public * License as published by the Free Software Foundation. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ #ifdef HAVE_CONFIG_H #include <config.h> #endif #include <gtk/gtk.h> #include <glib/gi18n.h> #include <libgnomeui/gnome-uidefs.h> #include "delete-error.h" /** * delete_error_dialog: * * Shows any applicable error messages as the result of deleting and object * **/ void delete_error_dialog (GError *error, ECalComponentVType vtype) { GtkWidget *dialog; const char *str; const gchar *icon_name = NULL; if (!error) return; switch (error->code) { case E_CALENDAR_STATUS_CORBA_EXCEPTION: switch (vtype) { case E_CAL_COMPONENT_EVENT: str = _("The event could not be deleted due to a corba error"); break; case E_CAL_COMPONENT_TODO: str = _("The task could not be deleted due to a corba error"); break; case E_CAL_COMPONENT_JOURNAL: str = _("The memo could not be deleted due to a corba error"); break; default: str = _("The item could not be deleted due to a corba error"); break; } break; case E_CALENDAR_STATUS_PERMISSION_DENIED: switch (vtype) { case E_CAL_COMPONENT_EVENT: str = _("The event could not be deleted because permission was denied"); break; case E_CAL_COMPONENT_TODO: str = _("The task could not be deleted because permission was denied"); break; case E_CAL_COMPONENT_JOURNAL: str = _("The memo could not be deleted because permission was denied"); break; default: str = _("The item could not be deleted because permission was denied"); break; } break; case E_CALENDAR_STATUS_OTHER_ERROR: switch (vtype) { case E_CAL_COMPONENT_EVENT: str = _("The event could not be deleted due to an error"); break; case E_CAL_COMPONENT_TODO: str = _("The task could not be deleted due to an error"); break; case E_CAL_COMPONENT_JOURNAL: str = _("The memo could not be deleted due to an error"); break; default: str = _("The item could not be deleted due to an error"); break; } break; case E_CALENDAR_STATUS_OK: case E_CALENDAR_STATUS_OBJECT_NOT_FOUND: default: /* If not found, we don't care - its gone anyhow */ return; } dialog = gtk_message_dialog_new (NULL, GTK_DIALOG_MODAL, GTK_MESSAGE_ERROR, GTK_BUTTONS_OK, "%s", str); if (vtype == E_CAL_COMPONENT_EVENT) icon_name = "x-office-calendar"; else if (vtype == E_CAL_COMPONENT_TODO) icon_name = "stock_todo"; if (icon_name) gtk_window_set_icon_name (GTK_WINDOW (dialog), icon_name); gtk_dialog_run (GTK_DIALOG (dialog)); gtk_widget_destroy (dialog); } es/elliptic-6.5.3</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option> <option value='gnome-3.22'>gnome-3.22</option> <option value='gnome-3.24'>gnome-3.24</option> <option value='gnome-3.26'>gnome-3.26</option> <option value='gnome-3.28'>gnome-3.28</option> <option value='gnome-3.32'>gnome-3.32</option> <option value='gnome-3.36'>gnome-3.36</option> <option value='gstreamer'>gstreamer</option> <option value='gstreamer-1.16'>gstreamer-1.16</option> <option value='gstreamer0.10-removal'>gstreamer0.10-removal</option> <option value='main'>main</option> <option value='master'>master</option> <option value='mate-1.16'>mate-1.16</option> <option value='mate-1.18'>mate-1.18</option> <option value='mate-1.20'>mate-1.20</option> <option value='mate-1.22'>mate-1.22</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table> <table class='tabs'><tr><td> <a href='/~lantw44/cgit/freebsd-ports-gnome/about/?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>about</a><a href='/~lantw44/cgit/freebsd-ports-gnome/?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>summary</a><a href='/~lantw44/cgit/freebsd-ports-gnome/refs/?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>refs</a><a class='active' href='/~lantw44/cgit/freebsd-ports-gnome/log/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>log</a><a href='/~lantw44/cgit/freebsd-ports-gnome/tree/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>tree</a><a href='/~lantw44/cgit/freebsd-ports-gnome/commit/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>commit</a><a href='/~lantw44/cgit/freebsd-ports-gnome/diff/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>diff</a><a href='/~lantw44/cgit/freebsd-ports-gnome/stats/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/freebsd-ports-gnome/log/x11-toolkits/unique'> <input type='hidden' name='h' value='dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3'/><input type='hidden' name='id' value='ba870b9a93e78c3171ae18366d46160bd2eea2d9'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/~lantw44/cgit/freebsd-ports-gnome/log/?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>root</a>/<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11-toolkits?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>x11-toolkits</a>/<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9'>unique</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=ba870b9a93e78c3171ae18366d46160bd2eea2d9&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr> <tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/freebsd-ports-gnome/commit/x11-toolkits/unique?h=dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.3&id=2ef17bdc60d4e35e667b9be8b7710162bc8eeb9e'>Remove libintl.so.9 compatibility link that was added in r374303 to</a></td><td>tijl</td><td><span title='2016-12-09 03:52:19 +0800'>2016-12-09</span></td><td>1</td><td><span class='deletions'>-1</span>/<span class='insertions'>+1</span></td></tr>