/*
* Claws Mail -- a GTK+ based, lightweight, and fast e-mail client
- * Copyright (C) 2007 The Claws Mail Team
+ * Copyright (C) 2007-2011 The Claws Mail Team
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
APPLYWINDOW_UNLOCK();
}
-static const GtkActionEntry apply_popup_actions[] =
+static GtkActionEntry apply_popup_actions[] =
{
{ "EditTags", NULL, "EditTags" },
{ "EditTags/Delete", NULL, N_("_Delete"), NULL, "Delete tag", G_CALLBACK(apply_popup_delete) },
APPLYWINDOW_UNLOCK();
apply_window_list_view_clear_tags(applywindow.taglist);
gtk_widget_hide(applywindow.window);
+ gtk_window_set_modal(GTK_WINDOW(applywindow.window), FALSE);
}
static void apply_window_close_cb(GtkWidget *widget,
gchar *new_tag = gtk_editable_get_chars(GTK_EDITABLE(applywindow.add_entry), 0, -1);
g_strstrip(new_tag);
if (new_tag && *new_tag) {
- gint id = tags_get_id_for_str(new_tag);
+ gint id;
FindTagInStore fis;
+ if (!(IS_NOT_RESERVED_TAG(new_tag))) {
+ alertpanel_error(_("You entered a reserved tag name, please choose another instead."));
+ g_free(new_tag);
+ return;
+ }
+ id = tags_get_id_for_str(new_tag);
APPLYWINDOW_LOCK();
if (id == -1) {
id = tags_add_tag(new_tag);