From 3fafb26dd126ef1bbb4563619e5060cf02ad0d9e Mon Sep 17 00:00:00 2001 From: Tavmjong Bah Date: Thu, 13 May 2010 10:37:58 +0200 Subject: Add ability to set icons to insensitive. Used to disable "Justify" button for non-flowed text in text-tool toolbar. (bzr r9408) --- src/ege-select-one-action.h | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/ege-select-one-action.h') diff --git a/src/ege-select-one-action.h b/src/ege-select-one-action.h index aa20d55a7..36943b978 100644 --- a/src/ege-select-one-action.h +++ b/src/ege-select-one-action.h @@ -145,6 +145,13 @@ void ege_select_one_action_set_active_text( EgeSelectOneAction* action, gchar co */ void ege_select_one_action_set_active( EgeSelectOneAction* action, gint val ); +//void ege_select_one_action_set_sensitive( EgeSelectOneAction *action, gint val, gboolean sensitive ); + +/** + * Update sensitive parameters. + * @param action The action to update. + */ +void ege_select_one_action_update_sensitive( EgeSelectOneAction *action ); /** * Returns the column used for the display label. @@ -198,6 +205,22 @@ gint ege_select_one_action_get_tooltip_column( EgeSelectOneAction* action ); void ege_select_one_action_set_tooltip_column( EgeSelectOneAction* action, gint col ); +/** + * Returns the column used for tracking sensitivity. + * + * @param action The action to fetch the sensitive column for. + */ +gint ege_select_one_action_get_sensitive_column( EgeSelectOneAction* action ); + +/** + * Sets the column used for sensitivity (if any). + * + * @param action The action to set the sensitive column for. + * @param col column to use. + */ +void ege_select_one_action_set_sensitive_column( EgeSelectOneAction* action, gint col ); + + /** * Sets a hint to be used in determining the display form. * This is the XForms style 'appearance' hint: "full", "compact", "minimal". -- cgit v1.2.3