Commit Graph

21 Commits

Author SHA1 Message Date
19e6ef7b32 remove proto
2004-07-20  JP Rosevear  <jpr@novell.com>

	* e-source-selector.h: remove proto

	* e-source-selector.c (selection_func): don't force the item to be
	checked
	(cell_toggled_callback): allow the cell to be untoggled even if
	its primary
	(init): set the pixbuf renderable
	(e_source_selector_set_toggle_selection): no longer necessary

svn path=/trunk/; revision=26682
2004-07-20 16:36:43 +00:00
38f4f2cd20 Add a call to e_source_selector_set_select_new here so that we can select
2004-06-24  Rodney Dawes  <dobey@novell.com>

	* gui/calendar-component.c (create_component_view):
	* gui/tasks-component.c (create_component_view):
	Add a call to e_source_selector_set_select_new here so that we can
	select new sources when we create them

2004-06-24  Rodney Dawes  <dobey@novell.com>

	* e-source-selector.[ch]: Add new "select_new" property to
	private structure of the ESourceSelector
	(rebuild_cb): Add code to select the new source, and cause the
	selection_changed signal to get emitted, if we select new sources
	(init): Don't select new sources by default
	(e_source_selector_set_select_new): Add function to set whether or not
	we want to select new sources when we add them

svn path=/trunk/; revision=26498
2004-06-24 17:22:40 +00:00
aee2630d06 Add preconditions. Make sure garbage or NULL data doesn't get used.
2004-06-22  Hans Petter Jansson  <hpj@ximian.com>

	* misc/e-source-selector.c (e_source_selector_peek_primary_selection):
	Add preconditions. Make sure garbage or NULL data doesn't get used.

svn path=/trunk/; revision=26454
2004-06-22 19:12:13 +00:00
8bf6b27754 fix a path leak and maek the code more structured.
2004-06-16  Not Zed  <NotZed@Ximian.com>

        * e-source-selector.c (cell_toggled_callback): fix a path leak and
        maek the code more structured.
        (e_source_selector_set_toggle_selection): set the mode on whether
        you can toggle the currnet selection or not.
        (cell_toggled_callback): implement set_toggle_selection behaviour.

svn path=/trunk/; revision=26361
2004-06-16 06:58:21 +00:00
229b9765d3 (pixbuf_cell_data_func): fix the appearance a little.
svn path=/trunk/; revision=26316
2004-06-11 18:20:45 +00:00
a27609a6b3 (pixbuf_cell_data_func): clean up warnings. (double bad larry).
svn path=/trunk/; revision=26315
2004-06-11 18:07:54 +00:00
a5cbaf1e09 (pixbuf_cell_data_func): actually initialize the pixbuf (bad larry).
svn path=/trunk/; revision=26314
2004-06-11 18:06:25 +00:00
ef03909b15 make the source selector use a colock block instead of setting the
2004-06-11  Larry Ewing  <lewing@ximian.com>

	* misc/e-source-selector.c: make the source selector use a colock
	block instead of setting the foreground to indicate the source
	color.

svn path=/trunk/; revision=26313
2004-06-11 18:01:25 +00:00
7e9fd7e251 if the source is primary, don't allow it to be un-selected
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
2004-01-24 05:36:53 +00:00
e6b238108c set a primary selection if there is one before the rebuild
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
2004-01-21 03:04:08 +00:00
f375cfac08 provide parent iter in/out arg (test_collapse_row_callback): use priv
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
2004-01-20 22:56:38 +00:00
dc50178156 util routine to clear the row reference to the saved primary selection
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
2004-01-20 21:24:54 +00:00
254104e312 check if the collapsing node has its child selected, if so take a row
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
2004-01-20 19:16:41 +00:00
3c4559b613 create the data structure for rebuilding the model (free_rebuild_data):
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
2004-01-19 19:28:34 +00:00
3db4f804fd (init): Set the mode on the text cell
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
2003-12-02 20:31:02 +00:00
9b6e4f3e85 list the signal args properl
2003-12-01  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (class_init): list the signal args properl

svn path=/trunk/; revision=23542
2003-12-01 22:01:14 +00:00
ccdc51ce37 use find_source_iter and get the selection from the right spot
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
2003-11-16 17:21:31 +00:00
e1b06f3408 (e_source_selector_new): Expand all the
nodes.

svn path=/trunk/; revision=23276
2003-11-11 02:06:48 +00:00
5e343da080 fill_popup_menu signal has 2 arguments.
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
2003-10-28 18:56:34 +00:00
66318ca6b0 added "fill_popup_menu" signal, to allow the addition of new items to the
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
2003-10-28 18:15:37 +00:00
0fb08f3ff8 Merge new-ui-branch to the trunk.
svn path=/trunk/; revision=22964
2003-10-21 18:28:34 +00:00