From 4f7b4d81e757bfed1b42b888207a0fdf6fae8533 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Mon, 10 Jun 2013 15:21:10 -0400 Subject: 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 --- shell/e-shell-window.h | 5 ----- 1 file changed, 5 deletions(-) (limited to 'shell/e-shell-window.h') 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. */ -- cgit v1.2.3