diff options
author | Antonio Xu <antonio.xu@sun.com> | 2003-08-29 13:57:25 +0800 |
---|---|---|
committer | Antonio Xu <anto@src.gnome.org> | 2003-08-29 13:57:25 +0800 |
commit | 685a1ce3cee46e6a18603d651c57b9f9c98ecaef (patch) | |
tree | bd1be9c37ba4ccea524087d3887afcdad480ec3c /composer/e-msg-composer-attachment.c | |
parent | a243925d75d2b688fa2da33020f1495d2ad2cba9 (diff) | |
download | gsoc2013-evolution-685a1ce3cee46e6a18603d651c57b9f9c98ecaef.tar.gz gsoc2013-evolution-685a1ce3cee46e6a18603d651c57b9f9c98ecaef.tar.zst gsoc2013-evolution-685a1ce3cee46e6a18603d651c57b9f9c98ecaef.zip |
Connect response signal to attachment properties dialog, fix bug #47950.
2003-08-29 Antonio Xu <antonio.xu@sun.com>
* e-msg-composer-attachment.c (): Connect response signal to
attachment properties dialog, fix bug #47950.
* Makefile.am (INCLUDES): add EVOLUTION_IMAGESDIR define
* e-msg-composer.c (create_composer): use EVOLUTION_IMAGESDIR
and composer icon name to get the path of composer icon.
[#47781]
svn path=/trunk/; revision=22411
Diffstat (limited to 'composer/e-msg-composer-attachment.c')
-rw-r--r-- | composer/e-msg-composer-attachment.c | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/composer/e-msg-composer-attachment.c b/composer/e-msg-composer-attachment.c index fb7fe46073..1c9e19b9ea 100644 --- a/composer/e-msg-composer-attachment.c +++ b/composer/e-msg-composer-attachment.c @@ -377,7 +377,15 @@ ok_cb (GtkWidget *widget, gpointer data) close_cb (widget, data); } - +static void +response_cb (GtkWidget *widget, gint response, gpointer data) +{ + if (response == GTK_RESPONSE_OK) + ok_cb (widget, data); + else + close_cb (widget, data); +} + void e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment, GtkWidget *parent) { @@ -438,9 +446,7 @@ e_msg_composer_attachment_edit (EMsgComposerAttachment *attachment, GtkWidget *p gtk_toggle_button_set_active (dialog_data->disposition_checkbox, disposition && !g_ascii_strcasecmp (disposition, "inline")); - connect_widget (editor_gui, "ok_button", "clicked", (GCallback)ok_cb, dialog_data); - connect_widget (editor_gui, "close_button", "clicked", (GCallback)close_cb, dialog_data); - + connect_widget (editor_gui, "dialog", "response", (GCallback)response_cb, dialog_data); #warning "signal connect while alive" /* make sure that when the composer gets hidden/closed that our windows also close */ parent = gtk_widget_get_toplevel (parent); |