[gnumeric] Enable double-clicking of functions in the function selector in paste mode
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Enable double-clicking of functions in the function selector in paste mode
- Date: Tue, 20 Jul 2010 19:33:58 +0000 (UTC)
commit b1b35cd0c4b02092a1575ca9d64aa5f7e4751348
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Tue Jul 20 13:34:47 2010 -0600
Enable double-clicking of functions in the function selector in paste mode
2010-07-20 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-function-select.c (cb_dialog_function_row_activated):
consider the current mode
(dialog_function_select_init): connect cb_dialog_function_row_activated
also in paste mode
src/dialogs/ChangeLog | 7 +++++++
src/dialogs/dialog-function-select.c | 15 ++++++++++++---
2 files changed, 19 insertions(+), 3 deletions(-)
---
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index b33f995..67e3634 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,5 +1,12 @@
2010-07-20 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * dialog-function-select.c (cb_dialog_function_row_activated):
+ consider the current mode
+ (dialog_function_select_init): connect cb_dialog_function_row_activated
+ also in paste mode
+
+2010-07-20 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* dialog-function-select.c (FunctionSelectState): new fields
(cb_dialog_function_select_paste_clicked): new
(cb_dialog_function_row_activated): handle paste button
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index b1db286..c59e54c 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -415,9 +415,18 @@ static void
cb_dialog_function_row_activated (GtkTreeView *tree_view,
GtkTreePath *path,
GtkTreeViewColumn *column,
- gpointer user_data)
+ FunctionSelectState *state)
{
- cb_dialog_function_select_ok_clicked (NULL, user_data);
+ switch (state->mode) {
+ case GURU_MODE:
+ cb_dialog_function_select_ok_clicked (NULL, state);
+ return;
+ case PASTE_MODE:
+ cb_dialog_function_select_paste_clicked (NULL, state);
+ return;
+ default:
+ return;
+ }
}
static gint
@@ -1229,7 +1238,7 @@ dialog_function_select_init (FunctionSelectState *state)
"activate",
G_CALLBACK (dialog_function_select_search),
state);
- if (state->mode == GURU_MODE)
+ if (state->mode != HELP_MODE)
g_signal_connect (G_OBJECT (state->treeview),
"row-activated",
G_CALLBACK (cb_dialog_function_row_activated),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]