From fe8eabe6d710b846ab9d2d95dcf60ed3de9e51ba Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Wed, 7 Apr 2010 15:00:05 -0500 Subject: Utility function to hide widgets when in Express mode Express mode requires a reduced preferences dialog. Many options in the current preferences dialog are pure, unadulterated crack. So we need an easy way to hide them, to simplify the dialog and reduce its size. Here we add a function that takes a GConf key, reads a list of strings from that key, and hides the widgets whose names are those strings. This gives us an easy way to experiment with what widgets should be hidden in the preferences dialog, without needing to recompile all the time. Signed-off-by: Federico Mena Quintero --- shell/e-shell-utils.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'shell/e-shell-utils.h') diff --git a/shell/e-shell-utils.h b/shell/e-shell-utils.h index 428d49a836..6e8b83c973 100644 --- a/shell/e-shell-utils.h +++ b/shell/e-shell-utils.h @@ -50,6 +50,10 @@ guint e_shell_utils_import_uris (EShell *shell, gchar **uris, gboolean preview); +void e_shell_hide_widgets_for_express_mode (EShell *shell, + GtkBuilder *builder, + const char *key_with_widget_names); + G_END_DECLS #endif /* E_SHELL_UTILS_H */ -- cgit v1.2.3