diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2007-03-27 19:28:14 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@src.gnome.org> | 2007-03-27 19:28:14 +0800 |
commit | c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d (patch) | |
tree | c38e2d6abe33e2ea0564e36bc150897fc3fbb8fb /composer/e-msg-composer.c | |
parent | b835359be0b9d33022dee7c815ebde9194eee2cf (diff) | |
download | gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.tar.gz gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.tar.zst gsoc2013-evolution-c8d411ce2bc362cc76ad6d820e7397b3e8a01c3d.zip |
Don't mix declarations and code (#405495).
2007-03-27 Matthew Barnes <mbarnes@redhat.com>
* a11y/e-table/gal-a11y-e-cell-text.c:
* a11y/e-table/gal-a11y-e-cell-vbox.c:
* addressbook/gui/component/addressbook-component.c:
* addressbook/gui/component/addressbook-view.c:
* addressbook/gui/contact-editor/e-contact-editor.c:
* addressbook/gui/contact-editor/e-contact-quick-add.c:
* addressbook/gui/widgets/e-addressbook-view.c:
* addressbook/gui/widgets/eab-contact-display.c:
* addressbook/gui/widgets/gal-view-minicard.c:
* calendar/gui/alarm-notify/alarm-queue.c:
* calendar/gui/dialogs/comp-editor.c:
* calendar/gui/dialogs/event-page.c:
* calendar/gui/dialogs/memo-page.c:
* calendar/gui/dialogs/task-page.c:
* calendar/gui/e-cal-popup.c:
* calendar/gui/e-meeting-list-view.c:
* calendar/gui/e-tasks.c:
* calendar/gui/gnome-cal.c:
* composer/e-msg-composer.c:
* mail/em-folder-browser.c:
* mail/em-format.c:
* mail/em-popup.c:
* plugins/exchange-operations/exchange-account-setup.c:
* plugins/exchange-operations/exchange-calendar.c:
* plugins/exchange-operations/exchange-config-listener.c:
* plugins/exchange-operations/exchange-contacts.c:
* plugins/import-ics-attachments/icsimporter.c:
* widgets/misc/e-filter-bar.c:
* widgets/misc/e-multi-config-dialog.c:
* widgets/table/e-cell-checkbox.c:
* widgets/table/e-table-header-item.c:
Don't mix declarations and code (#405495).
svn path=/trunk/; revision=33324
Diffstat (limited to 'composer/e-msg-composer.c')
-rw-r--r-- | composer/e-msg-composer.c | 27 |
1 files changed, 12 insertions, 15 deletions
diff --git a/composer/e-msg-composer.c b/composer/e-msg-composer.c index 17a2af7b9e..6f06bd7e74 100644 --- a/composer/e-msg-composer.c +++ b/composer/e-msg-composer.c @@ -1737,13 +1737,11 @@ menu_file_save_cb (BonoboUIComponent *uic, void *data, const char *path) { - EMsgComposer *composer; + EMsgComposer *composer = E_MSG_COMPOSER (data); + EMsgComposerPrivate *p = composer->priv; CORBA_char *file_name; CORBA_Environment ev; - composer = E_MSG_COMPOSER (data); - EMsgComposerPrivate *p = composer->priv; - CORBA_exception_init (&ev); file_name = Bonobo_PersistFile_getCurrentFile (p->persist_file_interface, &ev); @@ -1914,11 +1912,9 @@ menu_edit_select_all_cb (BonoboUIComponent *uic, void *data, const char *path) static void menu_edit_delete_all_cb (BonoboUIComponent *uic, void *data, const char *path) { - CORBA_Environment ev; - EMsgComposer *composer; - - composer = E_MSG_COMPOSER (data); + EMsgComposer *composer = E_MSG_COMPOSER (data); EMsgComposerPrivate *p = composer->priv; + CORBA_Environment ev; CORBA_exception_init (&ev); @@ -2696,9 +2692,7 @@ update_auto_recipients (EMsgComposerHdrs *hdrs, int mode, const char *auto_addrs static void from_changed_cb (EMsgComposerHdrs *hdrs, void *data) { - EMsgComposer *composer; - - composer = E_MSG_COMPOSER (data); + EMsgComposer *composer = E_MSG_COMPOSER (data); EMsgComposerPrivate *p = composer->priv; if (hdrs->account) { @@ -3812,7 +3806,7 @@ create_composer (int visible_mask) GList *icon_list; BonoboControlFrame *control_frame; GtkWidget *html_widget = NULL; - gpointer servant;; + gpointer servant; BonoboObject *impl; EMsgComposerPrivate *p; @@ -4746,12 +4740,13 @@ EMsgComposer * e_msg_composer_new_redirect (CamelMimeMessage *message, const char *resent_from) { EMsgComposer *composer; + EMsgComposerPrivate *p; const char *subject; g_return_val_if_fail (CAMEL_IS_MIME_MESSAGE (message), NULL); composer = e_msg_composer_new_with_message (message); - EMsgComposerPrivate *p = composer->priv; + p = composer->priv; subject = camel_mime_message_get_subject (message); @@ -5116,11 +5111,13 @@ e_msg_composer_modify_header (EMsgComposer *composer, const char *name, void e_msg_composer_remove_header (EMsgComposer *composer, const char *name) { + EMsgComposerPrivate *p; + int i; + g_return_if_fail (E_IS_MSG_COMPOSER (composer)); g_return_if_fail (name != NULL); - int i; - EMsgComposerPrivate *p = composer->priv; + p = composer->priv; for (i = 0; i < p->extra_hdr_names->len; i++) { if (strcmp (p->extra_hdr_names->pdata[i], name) == 0) { |