evolution r35613 - trunk/plugins/attachment-reminder
- From: jjohnny svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution r35613 - trunk/plugins/attachment-reminder
- Date: Mon, 9 Jun 2008 09:23:01 +0000 (UTC)
Author: jjohnny
Date: Mon Jun 9 09:23:00 2008
New Revision: 35613
URL: http://svn.gnome.org/viewvc/evolution?rev=35613&view=rev
Log:
Attachment Reminder : Fixes Bug #208943. Add attachment button added.
Modified:
trunk/plugins/attachment-reminder/ChangeLog
trunk/plugins/attachment-reminder/attachment-reminder.c
trunk/plugins/attachment-reminder/org-gnome-attachment-reminder.error.xml
Modified: trunk/plugins/attachment-reminder/attachment-reminder.c
==============================================================================
--- trunk/plugins/attachment-reminder/attachment-reminder.c (original)
+++ trunk/plugins/attachment-reminder/attachment-reminder.c Mon Jun 9 09:23:00 2008
@@ -44,6 +44,7 @@
#include "widgets/misc/e-attachment-bar.h"
#include "composer/e-msg-composer.h"
+#include "composer/e-composer-actions.h"
#define GCONF_KEY_ATTACH_REMINDER_CLUES "/apps/evolution/mail/attachment_reminder_clues"
#define SIGNATURE "-- "
@@ -116,22 +117,27 @@
static gboolean
ask_for_missing_attachment (EPlugin *ep, GtkWindow *window)
{
- GtkWidget *mbox, *check = NULL;
+ GtkWidget *check = NULL;
+ GtkDialog *dialog = NULL;
gint response;
- mbox = e_error_new(window, "org.gnome.evolution.plugins.attachment_reminder:attachment-reminder", NULL);
+ dialog = (GtkDialog*)e_error_new(window, "org.gnome.evolution.plugins.attachment_reminder:attachment-reminder", NULL);
+ /*Check buttons*/
check = gtk_check_button_new_with_mnemonic (_("_Do not show this message again."));
gtk_container_set_border_width((GtkContainer *)check, 12);
- gtk_box_pack_start ((GtkBox *)((GtkDialog *) mbox)->vbox, check, TRUE, TRUE, 0);
+ gtk_box_pack_start ((GtkBox *)dialog->vbox, check, TRUE, TRUE, 0);
gtk_widget_show (check);
- response = gtk_dialog_run ((GtkDialog *) mbox);
+ response = gtk_dialog_run ((GtkDialog *) dialog);
if (gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(check)))
e_plugin_enable (ep, FALSE);
- gtk_widget_destroy(mbox);
+ gtk_widget_destroy((GtkWidget *)dialog);
+
+ if (response == GTK_RESPONSE_OK)
+ gtk_action_activate (E_COMPOSER_ACTION_ATTACH (window));
return response == GTK_RESPONSE_YES;
}
Modified: trunk/plugins/attachment-reminder/org-gnome-attachment-reminder.error.xml
==============================================================================
--- trunk/plugins/attachment-reminder/org-gnome-attachment-reminder.error.xml (original)
+++ trunk/plugins/attachment-reminder/org-gnome-attachment-reminder.error.xml Mon Jun 9 09:23:00 2008
@@ -5,6 +5,7 @@
<_title>Attachment Reminder</_title>
<_primary>Message has no attachments</_primary>
<_secondary>Evolution has found some keywords that suggest that this message should contain an attachment, but cannot find one.</_secondary>
+ <button response="GTK_RESPONSE_OK" _label="_Add attachment..."/>
<button stock="gtk-cancel" response="GTK_RESPONSE_CANCEL" _label="_Edit Message"/>
<button response="GTK_RESPONSE_YES" _label="_Send"></button>
</error>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]