aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc/e-source-selector.c
Commit message (Collapse)AuthorAgeFilesLines
* if the source is primary, don't allow it to be un-selectedJP Rosevear2004-01-241-11/+14
| | | | | | | | | 2004-01-24 JP Rosevear <jpr@ximian.com> * e-source-selector.c (cell_toggled_callback): if the source is primary, don't allow it to be un-selected svn path=/trunk/; revision=24397
* set a primary selection if there is one before the rebuildJP Rosevear2004-01-211-6/+18
| | | | | | | | | | | | | 2004-01-20 JP Rosevear <jpr@ximian.com> * e-source-selector.c (rebuild_model): set a primary selection if there is one before the rebuild (e_source_selector_set_primary_selection): block the signals when clearing the tree selection to make the op atomic; emit the selection_changed signal if a hidden selection is not currently selectecd svn path=/trunk/; revision=24342
* provide parent iter in/out arg (test_collapse_row_callback): use privJP Rosevear2004-01-211-16/+45
| | | | | | | | | | | | | | | | 2004-01-20 JP Rosevear <jpr@ximian.com> * e-source-selector.c (find_source_iter): provide parent iter in/out arg (test_collapse_row_callback): use priv shortcut (e_source_selector_select_source): pass parent iter (e_source_selector_unselect_source): ditto (e_source_selector_peek_primary_selection): return the right thing if the primary selection is currently hidden (e_source_selector_set_primary_selection): set the primary selection properly if the source node is currently hidden svn path=/trunk/; revision=24337
* util routine to clear the row reference to the saved primary selectionJP Rosevear2004-01-211-43/+82
| | | | | | | | | | | | | | | | | | | | | | | 2004-01-20 JP Rosevear <jpr@ximian.com> * e-source-selector.c (clear_saved_primary_selection): util routine to clear the row reference to the saved primary selection (find_source_iter): unref the model data retrieved (rebuild_existing_cb): ditto (toggle_cell_data_func): ditto (text_cell_data_func): ditto (selection_func): ditto; clear the saved primary selection if something else is selected (cell_toggled_callback): ditto (test_collapse_row_callback): clear the toggled_last flag (row_expanded_callback): once we've restored the saved primary selection, clear it (selector_button_press_event): unref the model data (impl_dispose): use clear_saved_primary_selection (init): the store column holds object not pointer type (e_source_selector_peek_primary_selection): unref the model da svn path=/trunk/; revision=24334
* check if the collapsing node has its child selected, if so take a rowJP Rosevear2004-01-211-1/+65
| | | | | | | | | | | | | | 2004-01-20 JP Rosevear <jpr@ximian.com> * e-source-selector.c (test_collapse_row_callback): check if the collapsing node has its child selected, if so take a row reference to remember the selection (row_expanded_callback): check if the expanding node has the saved primary selection under it and re-select if so (init): listen for signals (impl_dispose): free the primary selection svn path=/trunk/; revision=24329
* create the data structure for rebuilding the model (free_rebuild_data):JP Rosevear2004-01-201-22/+174
| | | | | | | | | | | | | | | | | | | | | 2004-01-19 JP Rosevear <jpr@ximian.com> * e-source-selector.c (create_rebuild_data): create the data structure for rebuilding the model (free_rebuild_data): free it (rebuild_existing_cb): check for the sources that are still existing or deleted (rebuild_model): do incremental updates (selection_func): if the last thing we did was toggle, we don't actually want to highlight and if the source is not checked, check it (cell_toggled_callback): indicate that a toggle just occurred (init): initial toggled last to false (e_source_selector_set_primary_selection): set some preconditions Fixes #51787 svn path=/trunk/; revision=24312
* (init): Set the mode on the text cellEttore Perazzoli2003-12-031-0/+1
| | | | | | | | renderer to GTK_CELL_RENDERER_MODE_ACTIVATABLE so clicking on the text doesn't change the status of the checkbox. [Many thanks to Jonathan Blandford for telling me how to do this!] svn path=/trunk/; revision=23588
* list the signal args properlJP Rosevear2003-12-021-1/+1
| | | | | | | | 2003-12-01 JP Rosevear <jpr@ximian.com> * e-source-selector.c (class_init): list the signal args properl svn path=/trunk/; revision=23542
* use find_source_iter and get the selection from the right spotJP Rosevear2003-11-171-25/+57
| | | | | | | | | | | | | 2003-11-16 JP Rosevear <jpr@ximian.com> * e-source-selector.c (e_source_selector_set_primary_selection): use find_source_iter and get the selection from the right spot (find_source_iter): util function to find the iter given the source (e_source_selector_select_source): signal that the model changed (e_source_selector_unselect_source): ditto svn path=/trunk/; revision=23372
* (e_source_selector_new): Expand all theEttore Perazzoli2003-11-111-0/+2
| | | | | | nodes. svn path=/trunk/; revision=23276
* fill_popup_menu signal has 2 arguments.Rodrigo Moya2003-10-291-1/+1
| | | | | | | | | 2003-10-28 Rodrigo Moya <rodrigo@ximian.com> * e-source-selector.c (class_init): fill_popup_menu signal has 2 arguments. svn path=/trunk/; revision=23109
* added "fill_popup_menu" signal, to allow the addition of new items to theRodrigo Moya2003-10-291-1/+31
| | | | | | | | | | | | | 2003-10-28 Rodrigo Moya <rodrigo@ximian.com> * e-source-selector.[ch]: added "fill_popup_menu" signal, to allow the addition of new items to the popup menu. (class_init): create new signal. (init): connect to "button_press_event" for the tree view. (selector_button_press_event): callback for "button_press_event". (e_source_selector_selection_shown): use g_return_val_if_fail. svn path=/trunk/; revision=23106
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-221-0/+682
svn path=/trunk/; revision=22964