diff options
author | 4 <NotZed@Ximian.com> | 2001-10-24 10:56:06 +0800 |
---|---|---|
committer | Michael Zucci <zucchi@src.gnome.org> | 2001-10-24 10:56:06 +0800 |
commit | e4fa983be5e2c6a6496ba02f5391800ecee4575d (patch) | |
tree | 648176650d5c3f1e2b8dac2f225bc2ca89fe6069 /mail/folder-browser.h | |
parent | d6088ab1f0e058c35cab4ef247231ca07d456de4 (diff) | |
download | gsoc2013-evolution-e4fa983be5e2c6a6496ba02f5391800ecee4575d.tar.gz gsoc2013-evolution-e4fa983be5e2c6a6496ba02f5391800ecee4575d.tar.zst gsoc2013-evolution-e4fa983be5e2c6a6496ba02f5391800ecee4575d.zip |
all this crap just to make the print icon desensitive at the right time.
fix for #10346
2001-10-24 <NotZed@Ximian.com>
* message-browser.c (message_browser_message_loaded): Call
ui_message_loaded when we are.
* folder-browser-factory.c (control_activate): Freeze/thaw around
all updates.
(control_deactivate): Freeze/thaw around all updates.
* folder-browser.c (folder_browser_init): Setup a hashtable to
keep track of *our* sensitise state, so we can optimise pushes to
bonobo.
(folder_browser_finalise): Free hash here.
(folder_browser_set_message_preview): Call a ui_message_loaded,
even though it isn't, so it updates sensitivities right.
(done_message_selected): Call ui_message_loaded when it really is,
rather than the very fucked up idea of reversing the loaded_uid
check.
* folder-browser-ui.c (folder_browser_ui_set_selection_state):
Dont enable the message-enabled options if the message display is
hidden, e.g. print, view headers, etc.
(folder_browser_ui_rm_all): Forget sensitise state.
(fbui_sensitise_item): Sensitise items via a current-state table,
so we dont have to do bonobo calls every time.
(folder_browser_setup_property_menu): Call sensitise_item.
(folder_browser_ui_add_message):
(folder_browser_ui_add_global): Leave current set_prop "sensitive"
for the stop button, so it doesn't get lost by the stuff in
mail-mt.c
(fbui_real_sensitize_items): Removed.
(fbui_sensitize_timeout): Cleaned up, use sensitise_item to do
work.
(folder_browser_ui_message_loaded): Setup sensitive based on
preview_shown too.
(folder_browser_ui_set_selection_state): And here too.
svn path=/trunk/; revision=13972
Diffstat (limited to 'mail/folder-browser.h')
-rw-r--r-- | mail/folder-browser.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mail/folder-browser.h b/mail/folder-browser.h index f290587498..d5a494ce54 100644 --- a/mail/folder-browser.h +++ b/mail/folder-browser.h @@ -74,6 +74,7 @@ struct _FolderBrowser { FolderBrowserSelectionState selection_state; GSList *sensitize_changes; + GHashTable *sensitise_state; /* the last sent sensitise state, to avoid much bonobo overhead */ int sensitize_timeout_id; /* View collection and the menu handler object */ |