Connect "Exit" menu item finally.
* e-msg-composer.c (exit_cb): Connect "Exit" menu item finally. svn path=/trunk/; revision=2549
This commit is contained in:
@ -2,6 +2,7 @@
|
|||||||
|
|
||||||
* e-msg-composer.c (e_msg_composer_set_headers):
|
* e-msg-composer.c (e_msg_composer_set_headers):
|
||||||
(e_msg_composer_set_body_text): new functions
|
(e_msg_composer_set_body_text): new functions
|
||||||
|
(exit_cb): Connect "Exit" menu item finally.
|
||||||
|
|
||||||
* e-msg-composer-hdrs.c: const poisoning
|
* e-msg-composer-hdrs.c: const poisoning
|
||||||
(e_msg_composer_hdrs_set_subject):
|
(e_msg_composer_hdrs_set_subject):
|
||||||
|
@ -276,6 +276,26 @@ send_cb (GtkWidget *widget,
|
|||||||
gtk_signal_emit (GTK_OBJECT (data), signals[SEND]);
|
gtk_signal_emit (GTK_OBJECT (data), signals[SEND]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
exit_dialog_cb (int reply, gpointer data)
|
||||||
|
{
|
||||||
|
if (reply == 0)
|
||||||
|
gtk_widget_destroy (GTK_WIDGET (data));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
exit_cb (GtkWidget *widget, gpointer data)
|
||||||
|
{
|
||||||
|
EMsgComposer *composer = E_MSG_COMPOSER (data);
|
||||||
|
GtkWindow *parent =
|
||||||
|
GTK_WINDOW (gtk_widget_get_ancestor (GTK_WIDGET (data),
|
||||||
|
GTK_TYPE_WINDOW));
|
||||||
|
|
||||||
|
gnome_ok_cancel_dialog_parented ("Discard this message?",
|
||||||
|
exit_dialog_cb, composer, parent);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
menu_view_attachments_activate_cb (GtkWidget *widget,
|
menu_view_attachments_activate_cb (GtkWidget *widget,
|
||||||
gpointer data)
|
gpointer data)
|
||||||
@ -383,7 +403,7 @@ static GnomeUIInfo file_tree[] = {
|
|||||||
GNOMEUIINFO_ITEM_STOCK (N_("Send"), N_("Send the message"),
|
GNOMEUIINFO_ITEM_STOCK (N_("Send"), N_("Send the message"),
|
||||||
send_cb, GNOME_STOCK_MENU_MAIL_SND),
|
send_cb, GNOME_STOCK_MENU_MAIL_SND),
|
||||||
GNOMEUIINFO_SEPARATOR,
|
GNOMEUIINFO_SEPARATOR,
|
||||||
GNOMEUIINFO_MENU_EXIT_ITEM (NULL, NULL),
|
GNOMEUIINFO_MENU_EXIT_ITEM (exit_cb, NULL),
|
||||||
GNOMEUIINFO_END
|
GNOMEUIINFO_END
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user