Mercurial > pidgin.yaz
changeset 11245:5c15a709835f
[gaim-migrate @ 13413]
Remove the "don't prompt me anymore" checkbox on the "warning, you
have unread messages, are you sure you want to continue?" dialog.
I don't think the checkbox is a good idea because
1. There's no good/easy way to revert the preference
2. Lots of people will probably uncheck the preference out of
habit/because it annoyed them once, but this warning is a
REALLY good idea
committer: Tailor Script <tailor@pidgin.im>
author | Mark Doliner <mark@kingant.net> |
---|---|
date | Sat, 13 Aug 2005 00:33:48 +0000 |
parents | 6ee53c79d630 |
children | df67c09ade6e |
files | src/gtkconv.c |
diffstat | 1 files changed, 13 insertions(+), 21 deletions(-) [+] |
line wrap: on
line diff
--- a/src/gtkconv.c Sat Aug 13 00:09:22 2005 +0000 +++ b/src/gtkconv.c Sat Aug 13 00:33:48 2005 +0000 @@ -183,9 +183,6 @@ gtk_misc_set_alignment(GTK_MISC(label), 0, 0); gtk_box_pack_start(GTK_BOX(vbox), label, FALSE, FALSE, 0); - gaim_gtk_prefs_checkbox(_("Warn me when I close the window with unread messages"), - "/gaim/gtk/conversations/warn_on_unread_close", vbox); - /* Connect the signals. */ g_signal_connect(G_OBJECT(warn_close_dialog), "response", G_CALLBACK(do_close), win); @@ -199,27 +196,23 @@ close_win_cb(GtkWidget *w, GdkEventAny *e, gpointer d) { GaimConvWindow *win = (GaimConvWindow *)d; - - if (gaim_prefs_get_bool( - "/gaim/gtk/conversations/warn_on_unread_close")) + GList *l; + + /* If there are unread messages then show a warning dialog */ + for (l = gaim_conv_window_get_conversations(win); + l != NULL; l = l->next) { - GList *l; - for (l = gaim_conv_window_get_conversations(win); - l != NULL; l = l->next) + GaimConversation *conv = l->data; + if (gaim_conversation_get_type(conv) == GAIM_CONV_IM && + gaim_conversation_get_unseen(conv) == GAIM_UNSEEN_TEXT) { - GaimConversation *conv = l->data; - if (gaim_conversation_get_type(conv) - == GAIM_CONV_IM - && gaim_conversation_get_unseen(conv) - == GAIM_UNSEEN_TEXT) - { - build_warn_close_dialog(win); - gtk_widget_show_all(warn_close_dialog); - - return TRUE; - } + build_warn_close_dialog(win); + gtk_widget_show_all(warn_close_dialog); + + return TRUE; } } + gaim_conv_window_destroy(win); return TRUE; @@ -6242,7 +6235,6 @@ gaim_prefs_add_int("/gaim/gtk/conversations/font_size", 3); gaim_prefs_add_bool("/gaim/gtk/conversations/tabs", TRUE); gaim_prefs_add_int("/gaim/gtk/conversations/tab_side", GTK_POS_TOP); - gaim_prefs_add_bool("/gaim/gtk/conversations/warn_on_unread_close", TRUE); gaim_prefs_add_int("/gaim/gtk/conversations/scrollback_lines", 4000); /* Conversations -> Chat */