aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/component
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-09-07 08:33:57 +0800
committerChris Toshok <toshok@src.gnome.org>2001-09-07 08:33:57 +0800
commit79d3756857257531993dc16b83a68e2ba4ed444b (patch)
treefa028eb8fc0c582b00927fb660c438cdaa1c2926 /addressbook/gui/component
parentcc50420bf04f13fb7c3697bf524ed7772bfe6601 (diff)
downloadgsoc2013-evolution-79d3756857257531993dc16b83a68e2ba4ed444b.tar.gz
gsoc2013-evolution-79d3756857257531993dc16b83a68e2ba4ed444b.tar.zst
gsoc2013-evolution-79d3756857257531993dc16b83a68e2ba4ed444b.zip
add -DEVOLUTION_IMAGESDIR.
2001-09-06 Chris Toshok <toshok@ximian.com> * gui/component/Makefile.am (INCLUDES): add -DEVOLUTION_IMAGESDIR. * gui/widgets/e-addressbook-view.c (card_deleted_cb): remove status messages from here. (e_addressbook_view_delete_selection): same. * gui/widgets/e-addressbook-model.c (sequence_complete): emit a NULL status message along with the stop_state_changed. The null status message will clear the status bar for this view. * gui/component/addressbook.c (set_status_message): use the EvolutionActivityClient stuff. * backend/pas/pas-backend-ldap.c (view_destroy): remove status message for abandoning a search. (ldap_op_process_current): wrap status messages in _(). (ldap_op_process): same. (create_card_handler): same, and remove the notify_status for "" and add a notify_complete call after the card is added. (remove_card_handler): same. (modify_card_handler): same. (poll_ldap): wrap status messages with _(), and remove the "Search Complete" message. (ldap_search_handler): wrap status message. * backend/pas/pas-backend-file.c (pas_backend_file_search): use _() on status messages, and make sure the last notify_* called is notify_complete. svn path=/trunk/; revision=12663
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r--addressbook/gui/component/Makefile.am4
-rw-r--r--addressbook/gui/component/addressbook.c37
2 files changed, 26 insertions, 15 deletions
diff --git a/addressbook/gui/component/Makefile.am b/addressbook/gui/component/Makefile.am
index 29d3663f56..68138c8390 100644
--- a/addressbook/gui/component/Makefile.am
+++ b/addressbook/gui/component/Makefile.am
@@ -20,7 +20,9 @@ INCLUDES = \
-DEVOLUTION_GLADEDIR=\""$(gladedir)"\" \
-DEVOLUTION_ICONSDIR=\""$(iconsdir)"\" \
-DEVOLUTION_LOCALEDIR=\""$(localedir)"\" \
- -DCAMEL_PROVIDERDIR=\""$(providerdir)"\"
+ -DCAMEL_PROVIDERDIR=\""$(providerdir)"\" \
+ -DEVOLUTION_IMAGESDIR=\""$(datadir)"/images/evolution\"
+
bin_PROGRAMS = \
evolution-addressbook
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c
index 9cc11635d8..c2a1ca4631 100644
--- a/addressbook/gui/component/addressbook.c
+++ b/addressbook/gui/component/addressbook.c
@@ -28,10 +28,12 @@
#include "select-names/e-select-names-manager.h"
#include "evolution-shell-component-utils.h"
+#include "evolution-activity-client.h"
#include "e-contact-editor.h"
#include "e-contact-save-as.h"
#include "addressbook-config.h"
#include "addressbook.h"
+#include "addressbook-component.h"
#include "addressbook/gui/search/e-addressbook-search-dialog.h"
#include "addressbook/gui/widgets/e-addressbook-view.h"
#include "addressbook/gui/widgets/e-addressbook-util.h"
@@ -41,6 +43,10 @@
#include <widgets/misc/e-search-bar.h>
#include <widgets/misc/e-filter-bar.h>
+/* This is used for the addressbook status bar */
+#define EVOLUTION_CONTACTS_PROGRESS_IMAGE "evolution-contacts-mini.png"
+static GdkPixbuf *progress_icon[2] = { NULL, NULL };
+
#define d(x)
#define PROPERTY_FOLDER_URI "folder_uri"
@@ -51,6 +57,7 @@ typedef struct {
EAddressbookView *view;
ESearchBar *search;
GtkWidget *vbox;
+ EvolutionActivityClient *activity;
BonoboControl *control;
BonoboPropertyBag *properties;
char *uri;
@@ -779,27 +786,29 @@ retrieve_shell_view_interface_from_control (BonoboControl *control)
static void
set_status_message (EAddressbookView *eav, const char *message, AddressbookView *view)
{
- CORBA_Environment ev;
- GNOME_Evolution_ShellView shell_view_interface;
- CORBA_exception_init (&ev);
-
- shell_view_interface = retrieve_shell_view_interface_from_control (view->control);
- if (!shell_view_interface) {
- CORBA_exception_free (&ev);
- return;
+ if (!message || !*message) {
+ if (view->activity) {
+ gtk_object_unref (GTK_OBJECT (view->activity));
+ view->activity = NULL;
+ }
}
+ else if (!view->activity) {
+ int display;
+ char *clientid = g_strdup_printf ("%p", view);
- if (message == NULL || message[0] == 0) {
- GNOME_Evolution_ShellView_unsetMessage (shell_view_interface, &ev);
+ if (progress_icon[0] == NULL)
+ progress_icon[0] = gdk_pixbuf_new_from_file (EVOLUTION_IMAGESDIR "/" EVOLUTION_CONTACTS_PROGRESS_IMAGE);
+
+ view->activity = evolution_activity_client_new (addressbook_component_get_shell_client(), clientid,
+ progress_icon, message, TRUE, &display);
+
+ g_free (clientid);
}
else {
- GNOME_Evolution_ShellView_setMessage (shell_view_interface,
- message,
- e_addressbook_view_can_stop (view->view), &ev);
+ evolution_activity_client_update (view->activity, message, -1.0);
}
- CORBA_exception_free (&ev);
}
static void