[gnumeric] Permit double-clicking of functions in the function selector.
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Permit double-clicking of functions in the function selector.
- Date: Sat, 17 Jul 2010 06:41:30 +0000 (UTC)
commit b7a0b9ca61c5f38290c5d14ff10f934ca1ed30a4
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date: Sat Jul 17 00:41:42 2010 -0600
Permit double-clicking of functions in the function selector.
2010-07-17 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-function-select.c (cb_dialog_function_row_activated): new
(dialog_function_select_init): connect cb_dialog_function_row_activated
NEWS | 7 +++++--
src/dialogs/ChangeLog | 5 +++++
src/dialogs/dialog-function-select.c | 17 +++++++++++++++--
3 files changed, 25 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index 49909a5..a762fdd 100644
--- a/NEWS
+++ b/NEWS
@@ -29,11 +29,14 @@ Andreas:
* Add menu item to wrap SORT around an existing range.
* Show the number of rows filtered by the auto filter. [#346002]
* Improve function tooltips. [#623322]
- * Improve expression entry range selection. [#80725][#624288][#624289][#624581]
+ * Improve expression entry range selection.
+ [#80725][#624288][#624289][#624581]
* Add preference setting to disable the extension check for the
configurable text exporter. [#594151]
- * Add optional marker to indicate that a cell contains an expression. [#55124]
+ * Add optional marker to indicate that a cell contains an expression.
+ [#55124]
* Add merge and unmerge items to the cell context menu.
+ * Permit double-clicking of functions in the function selector.
Jean:
* Fix strong/weak cursor display. [#623241]
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index cdaf55c..1a76867 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2010-07-17 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+ * dialog-function-select.c (cb_dialog_function_row_activated): new
+ (dialog_function_select_init): connect cb_dialog_function_row_activated
+
2010-07-15 Andreas J. Guelzow <aguelzow pyrshep ca>
* dialog-workbook-attr.c (attr_dialog_init_cell_marker_page): new
diff --git a/src/dialogs/dialog-function-select.c b/src/dialogs/dialog-function-select.c
index a615298..367eb73 100644
--- a/src/dialogs/dialog-function-select.c
+++ b/src/dialogs/dialog-function-select.c
@@ -364,6 +364,15 @@ cb_dialog_function_select_ok_clicked (G_GNUC_UNUSED GtkWidget *button,
return;
}
+static void
+cb_dialog_function_row_activated (GtkTreeView *tree_view,
+ GtkTreePath *path,
+ GtkTreeViewColumn *column,
+ gpointer user_data)
+{
+ cb_dialog_function_select_ok_clicked (NULL, user_data);
+}
+
static gint
dialog_function_select_by_name (gconstpointer _a, gconstpointer _b)
{
@@ -1072,6 +1081,7 @@ dialog_function_select_init (FunctionSelectState *state)
g_object_set_data (G_OBJECT (state->dialog), FUNCTION_SELECT_DIALOG_KEY,
state);
+ help_mode = (state->formula_guru_key == NULL);
/* Set-up combo box */
state->cb = GTK_COMBO_BOX
@@ -1173,6 +1183,11 @@ dialog_function_select_init (FunctionSelectState *state)
"activate",
G_CALLBACK (dialog_function_select_search),
state);
+ if (!help_mode)
+ g_signal_connect (G_OBJECT (state->treeview),
+ "row-activated",
+ G_CALLBACK (cb_dialog_function_row_activated),
+ state);
gtk_paned_set_position (GTK_PANED (glade_xml_get_widget
(state->gui, "vpaned1")), 300);
@@ -1212,8 +1227,6 @@ dialog_function_select_init (FunctionSelectState *state)
"state", state,
(GDestroyNotify) cb_dialog_function_select_destroy);
- help_mode = (state->formula_guru_key == NULL);
-
gtk_widget_set_visible (close_button, help_mode);
gtk_widget_set_visible (glade_xml_get_widget
(state->gui, "help_button"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]