From bc80332460c353e391cd620f2cc51f7b56eef4de Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 26 Jan 2009 18:49:51 +0000 Subject: Miscellaneous stuff. svn path=/branches/kill-bonobo/; revision=37134 --- .../GNOME_Evolution_Addressbook.server.in.in | 136 --------------------- addressbook/gui/component/Makefile.am | 9 -- addressbook/gui/component/e-book-shell-content.c | 2 +- .../gui/component/e-book-shell-view-actions.c | 4 +- addressbook/gui/component/eab-composer-util.c | 19 +-- addressbook/gui/component/eab-composer-util.h | 9 +- 6 files changed, 7 insertions(+), 172 deletions(-) delete mode 100644 addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in (limited to 'addressbook/gui') diff --git a/addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in b/addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in deleted file mode 100644 index 823d5bd89f..0000000000 --- a/addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in +++ /dev/null @@ -1,136 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/addressbook/gui/component/Makefile.am b/addressbook/gui/component/Makefile.am index ad603bf9b4..52a99e4901 100644 --- a/addressbook/gui/component/Makefile.am +++ b/addressbook/gui/component/Makefile.am @@ -98,23 +98,14 @@ install-data-local: fi endif -server_in_files = GNOME_Evolution_Addressbook.server.in.in -server_DATA = $(server_in_files:.server.in.in=.server) -@EVO_SERVER_RULE@ -@INTLTOOL_SERVER_RULE@ - glade_DATA = \ ldap-config.glade -BUILT_SOURCES = $(server_DATA) -CLEANFILES = $(BUILT_SOURCES) - DISTCLEANFILES = $(schema_DATA) EXTRA_DIST = \ $(glade_DATA) \ $(schema_in_files) \ - $(server_in_files) \ openldap-extract.h dist-hook: diff --git a/addressbook/gui/component/e-book-shell-content.c b/addressbook/gui/component/e-book-shell-content.c index 52549f0122..8830c797e0 100644 --- a/addressbook/gui/component/e-book-shell-content.c +++ b/addressbook/gui/component/e-book-shell-content.c @@ -50,7 +50,7 @@ book_shell_content_send_message_cb (EBookShellContent *book_shell_content, { GList node = { destination, NULL, NULL }; - eab_send_message (&node, EAB_DISPOSITION_AS_TO); + eab_send_as_to (&node); } static void diff --git a/addressbook/gui/component/e-book-shell-view-actions.c b/addressbook/gui/component/e-book-shell-view-actions.c index 016563845b..36c04eaf6b 100644 --- a/addressbook/gui/component/e-book-shell-view-actions.c +++ b/addressbook/gui/component/e-book-shell-view-actions.c @@ -306,7 +306,7 @@ action_contact_forward_cb (GtkAction *action, iter->data = destination; } - eab_send_message (list, EAB_DISPOSITION_AS_ATTACHMENT); + eab_send_as_attachment (list); g_list_foreach (list, (GFunc) g_object_unref, NULL); g_list_free (list); } @@ -488,7 +488,7 @@ action_contact_send_message_cb (GtkAction *action, iter->data = destination; } - eab_send_message (list, EAB_DISPOSITION_AS_TO); + eab_send_as_to (list); g_list_foreach (list, (GFunc) g_object_unref, NULL); g_list_free (list); } diff --git a/addressbook/gui/component/eab-composer-util.c b/addressbook/gui/component/eab-composer-util.c index c69375a0b9..b7daa3dddc 100644 --- a/addressbook/gui/component/eab-composer-util.c +++ b/addressbook/gui/component/eab-composer-util.c @@ -27,7 +27,7 @@ #include "addressbook/util/eab-book-util.h" #include "addressbook/gui/widgets/eab-gui-util.h" -static void +void eab_send_as_to (GList *destinations) { EMsgComposer *composer; @@ -108,7 +108,7 @@ get_email (EContact *contact, EContactField field_id, gchar **to_free) return value; } -static void +void eab_send_as_attachment (GList *destinations) { EMsgComposer *composer; @@ -195,18 +195,3 @@ eab_send_as_attachment (GList *destinations) gtk_widget_show (GTK_WIDGET (composer)); } - -void -eab_send_message (GList *destinations, - EABDisposition disposition) -{ - switch (disposition) { - case EAB_DISPOSITION_AS_TO: - eab_send_as_to (destinations); - break; - - case EAB_DISPOSITION_AS_ATTACHMENT: - eab_send_as_attachment (destinations); - break; - } -} diff --git a/addressbook/gui/component/eab-composer-util.h b/addressbook/gui/component/eab-composer-util.h index 4e9ce581d0..ffee76b2b7 100644 --- a/addressbook/gui/component/eab-composer-util.h +++ b/addressbook/gui/component/eab-composer-util.h @@ -23,13 +23,8 @@ G_BEGIN_DECLS -typedef enum { - EAB_DISPOSITION_AS_ATTACHMENT, - EAB_DISPOSITION_AS_TO, -} EABDisposition; - -void eab_send_message (GList *destinations, - EABDisposition disposition); +void eab_send_as_to (GList *destinations); +void eab_send_as_attachment (GList *destinations); G_END_DECLS -- cgit v1.2.3