diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2013-06-11 03:21:10 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2013-06-11 03:47:13 +0800 |
commit | 4f7b4d81e757bfed1b42b888207a0fdf6fae8533 (patch) | |
tree | 5c159ca51db5488c7e8c8cf1ab55fd48953ecf3d /shell/e-shell-window.h | |
parent | e51e1d6e4bbd6d33a841a87b15680c824adf8988 (diff) | |
download | gsoc2013-evolution-4f7b4d81e757bfed1b42b888207a0fdf6fae8533.tar.gz gsoc2013-evolution-4f7b4d81e757bfed1b42b888207a0fdf6fae8533.tar.zst gsoc2013-evolution-4f7b4d81e757bfed1b42b888207a0fdf6fae8533.zip |
Reimplement the main toolbar's "prefer-item" feature.
This fixes a bug in the old implementation where the application could
crash after a second shell window was created and destroyed, because a
signal handler with the destroyed shell window as the closure was left
connected.
But moreover this simplifies the implementation by using a property
binding plus transform function instead of juggling signal handlers,
and also adds code comments where things get a little tricky.
Removed (now unused) functions:
e_shell_window_get_toolbar_new_prefer_item
e_shell_window_set_toolbar_new_prefer_item
Diffstat (limited to 'shell/e-shell-window.h')
-rw-r--r-- | shell/e-shell-window.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/shell/e-shell-window.h b/shell/e-shell-window.h index abd940feb0..b96d2f6df5 100644 --- a/shell/e-shell-window.h +++ b/shell/e-shell-window.h @@ -134,11 +134,6 @@ gboolean e_shell_window_get_toolbar_visible void e_shell_window_set_toolbar_visible (EShellWindow *shell_window, gboolean toolbar_visible); -const gchar * e_shell_window_get_toolbar_new_prefer_item - (EShellWindow *shell_window); -void e_shell_window_set_toolbar_new_prefer_item - (EShellWindow *shell_window, - const gchar *prefer_item); /* These should be called from the shell backend's window_created() handler. */ |