[gnumeric] minor fixes to function help browser
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] minor fixes to function help browser
- Date: Wed, 9 Jun 2010 08:13:18 +0000 (UTC)
commit 05c8ac731d774f4591fc6421caeba863f4ee0676
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Wed Jun 9 02:14:14 2010 -0600
minor fixes to function help browser
2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-function-select.c (dialog_function_select_init):
change the dialog title to reflect help mode
(dialog_function_select): use a differnt key in help mode to
avoid confusion
src/dialogs/ChangeLog | 7 +++++++
src/dialogs/dialog-function-select.c | 11 +++++++++--
2 files changed, 16 insertions(+), 2 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index b46d039..556c14d 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,12 @@
2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * dialog-function-select.c (dialog_function_select_init):
+ change the dialog title to reflect help mode
+ (dialog_function_select): use a differnt key in help mode to
+ avoid confusion
+
+2010-06-09 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* function-select.glade: add close button
* dialog-function-select.c (dialog_function_select_init):
show and hide the appropriate widgets depending on whether
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index be8040e..17a9ee4 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -48,6 +48,7 @@
#define F2(func,s) dgettext ((func)->textdomain->str, (s))
#define FUNCTION_SELECT_KEY "function-selector-dialog"
+#define FUNCTION_SELECT_HELP_KEY "function-selector-dialog-help-mode"
#define FUNCTION_SELECT_DIALOG_KEY "function-selector-dialog"
typedef struct {
@@ -1163,6 +1164,9 @@ dialog_function_select_init (FunctionSelectState *state)
(state->gui, "title_label"),
!help_mode);
gtk_combo_box_set_active (state->cb, help_mode ? 2 : 0);
+ if (help_mode)
+ gtk_window_set_title (GTK_WINDOW (state->dialog),
+ _("Gnumeric Function Help Browser"));
}
void
@@ -1171,9 +1175,12 @@ dialog_function_select (WBCGtk *wbcg, char const *key)
FunctionSelectState* state;
GladeXML *gui;
+ gchar const *our_key = key ? FUNCTION_SELECT_KEY
+ : FUNCTION_SELECT_HELP_KEY;
+
g_return_if_fail (wbcg != NULL);
- if (gnumeric_dialog_raise_if_exists (wbcg, FUNCTION_SELECT_KEY))
+ if (gnumeric_dialog_raise_if_exists (wbcg, our_key))
return;
gui = gnm_glade_xml_new (GO_CMD_CONTEXT (wbcg),
"function-select.glade", NULL, NULL);
@@ -1191,7 +1198,7 @@ dialog_function_select (WBCGtk *wbcg, char const *key)
dialog_function_select_init (state);
gnumeric_keyed_dialog (state->wbcg, GTK_WINDOW (state->dialog),
- FUNCTION_SELECT_KEY);
+ our_key);
gtk_widget_show (state->dialog);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]