From 4e98233a4d7f8e06736b716c92a04f7e0709e16e Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Wed, 24 Jan 2001 00:56:21 +0000 Subject: Fix the logic for updating the shortuct labels when the display names of the corresponding folders change, so that it doesn't crash. I have removed the redundant "folder_updated" signal on `ELocalStorage' and changed EStorage so that it emits "updated_folder" automatically when any of the folders changes its properties. svn path=/trunk/; revision=7770 --- shell/e-local-storage.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'shell/e-local-storage.c') diff --git a/shell/e-local-storage.c b/shell/e-local-storage.c index 2ab98555da..a149e21fca 100644 --- a/shell/e-local-storage.c +++ b/shell/e-local-storage.c @@ -69,13 +69,6 @@ struct _ELocalStoragePrivate { EvolutionLocalStorage *bonobo_interface; }; -enum { - FOLDER_UPDATED, - LAST_SIGNAL -}; - -static guint signals[LAST_SIGNAL] = { 0 }; - /* Utility functions. */ @@ -555,8 +548,6 @@ bonobo_interface_update_folder_cb (EvolutionLocalStorage *bonobo_local_storage, e_folder_set_name (folder, display_name); e_folder_set_highlighted (folder, highlighted); - - gtk_signal_emit (GTK_OBJECT (local_storage), signals[FOLDER_UPDATED], path); } @@ -577,17 +568,6 @@ class_init (ELocalStorageClass *class) storage_class->get_name = impl_get_name; storage_class->async_create_folder = impl_async_create_folder; storage_class->async_remove_folder = impl_async_remove_folder; - - signals[FOLDER_UPDATED] = - gtk_signal_new ("folder_updated", - GTK_RUN_LAST, - object_class->type, - GTK_SIGNAL_OFFSET (ELocalStorageClass, folder_updated), - gtk_marshal_NONE__STRING, - GTK_TYPE_NONE, 1, - GTK_TYPE_STRING); - - gtk_object_class_add_signals (object_class, signals, LAST_SIGNAL); } static void -- cgit v1.2.3