From 84ba2f958fff42f41a23726b304fe9545db135c4 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 21 Mar 2010 17:24:42 -0400 Subject: Move "section" documentation out of header files. --- shell/e-shell-utils.h | 6 ------ 1 file changed, 6 deletions(-) (limited to 'shell/e-shell-utils.h') diff --git a/shell/e-shell-utils.h b/shell/e-shell-utils.h index e705ded2e5..428d49a836 100644 --- a/shell/e-shell-utils.h +++ b/shell/e-shell-utils.h @@ -19,12 +19,6 @@ * */ -/** - * SECTION: e-shell-utils - * @short_description: high-level utilities with shell integration - * @include: shell/e-shell-utils.h - **/ - #ifndef E_SHELL_UTILS_H #define E_SHELL_UTILS_H -- cgit v1.2.3 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 From 0b07840e26f7c793939ec8226695ffca19aa1bfb Mon Sep 17 00:00:00 2001 From: Federico Mena Quintero Date: Mon, 26 Apr 2010 18:13:24 -0500 Subject: Don't use gconf to store the names of widgets to hide That was just for development. Now we hardcode the lists of widgets. Signed-off-by: Federico Mena Quintero --- shell/e-shell-utils.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'shell/e-shell-utils.h') diff --git a/shell/e-shell-utils.h b/shell/e-shell-utils.h index 6e8b83c973..e552cc2e19 100644 --- a/shell/e-shell-utils.h +++ b/shell/e-shell-utils.h @@ -52,7 +52,8 @@ guint e_shell_utils_import_uris (EShell *shell, void e_shell_hide_widgets_for_express_mode (EShell *shell, GtkBuilder *builder, - const char *key_with_widget_names); + const char *widget_name, + ...) G_GNUC_NULL_TERMINATED; G_END_DECLS -- cgit v1.2.3 From 96538878911586a9e9ca26b81e1916c04e538980 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Tue, 25 May 2010 10:15:32 -0400 Subject: Coding style and whitespace cleanup. --- shell/e-shell-utils.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/e-shell-utils.h') diff --git a/shell/e-shell-utils.h b/shell/e-shell-utils.h index e552cc2e19..1b7202a5c5 100644 --- a/shell/e-shell-utils.h +++ b/shell/e-shell-utils.h @@ -52,7 +52,7 @@ guint e_shell_utils_import_uris (EShell *shell, void e_shell_hide_widgets_for_express_mode (EShell *shell, GtkBuilder *builder, - const char *widget_name, + const gchar *widget_name, ...) G_GNUC_NULL_TERMINATED; G_END_DECLS -- cgit v1.2.3