aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
Commit message (Collapse)AuthorAgeFilesLines
* comment fix from trent.Michael Zucci2004-03-161-2/+2
| | | | svn path=/trunk/; revision=25087
* change arg name (e_calendar_item_init): ditto (e_calendar_item_get_arg):JP Rosevear2004-03-163-14/+78
| | | | | | | | | | | | | | | | | 2004-03-15 JP Rosevear <jpr@ximian.com> * e-calendar-item.c (e_calendar_item_class_init): change arg name (e_calendar_item_init): ditto (e_calendar_item_get_arg): ditto (e_calendar_item_set_arg): ditto (e_calendar_item_preserve_day_selection): set the selection day to the given selection (e_calendar_item_set_first_month): use above to preserve selected day of week * e-calendar-item.h: change field name svn path=/trunk/; revision=25071
* move function about setup_bonobo_menus which requires it so its notTrent Lloyd2004-03-132-11/+16
| | | | | | | | | 2004-03-13 Trent Lloyd <lathiat@sixlabs.org> * e-search-bar.c (remove_bonobo_menus): move function about setup_bonobo_menus which requires it so its not implicitly defined svn path=/trunk/; revision=25055
* enlarge the text box to accomodate the time info in different locales.Kidd Wang2004-03-122-2/+5
| | | | | | | * e-dateedit.c: (create_children): enlarge the text box to accomodate the time info in different locales. svn path=/trunk/; revision=25041
* fixed ChangeLogJeffrey Stedfast2004-03-121-1/+1
| | | | svn path=/trunk/; revision=25033
* Fix for bug #55267.Jeffrey Stedfast2004-03-122-2/+2
| | | | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> Fix for bug #55267. * e-filter-bar.c (set_property): Use efb->setquery properly (set to TRUE before calling set_item_id and FLASE afterwards). Also setquery to TRUE before emitting the "search-activated" signal so that we don't run the callback for the signal we are emitting. svn path=/trunk/; revision=25032
* Use efb->setquery properly (set to TRUE before calling set_item_id andJeffrey Stedfast2004-03-123-9/+29
| | | | | | | | | | | 2004-03-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (set_property): Use efb->setquery properly (set to TRUE before calling set_item_id and FLASE afterwards). Also setquery to TRUE before emitting the "search-activated" signal so that we don't run the callback for the signal we are emitting. svn path=/trunk/; revision=25031
* Make the acces key Alt+O work.Harry Lu2004-03-101-1/+1
| | | | | | Patch by hao.sheng@sun.com svn path=/trunk/; revision=25004
* Emit the "search-activated" signal. Fixes bug #55054.Jeffrey Stedfast2004-03-032-0/+9
| | | | | | | | | 2004-03-02 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (set_property): Emit the "search-activated" signal. Fixes bug #55054. svn path=/trunk/; revision=24934
* Create the arrows in these widgets as GTK_SHADOW_NONE, since the defaultRodney Dawes2004-02-274-3/+13
| | | | | | | | | | | | | | 2004-02-26 Rodney Dawes <dobey@ximian.com> * e-cell-renderer-combo.c (ecrc_get_size): * e-dateedit.c (create_children): * e-dropdown-button.c (e_dropdown_button_construct): Create the arrows in these widgets as GTK_SHADOW_NONE, since the default arrow type in GTK+ 2.x is flat triangle arrows, and shadow types are generally ignored for arrows anyway, and so we don't look ugly with themes that handle shadow types on arrows correctly svn path=/trunk/; revision=24900
* don't reference uninitialized memoryJP Rosevear2004-02-272-4/+8
| | | | | | | | | 2004-02-26 JP Rosevear <jpr@ximian.com> * e-timezone-dialog/e-timezone-dialog.c (e_timezone_dialog_dispose): don't reference uninitialized memory svn path=/trunk/; revision=24892
* remove the right thingChristian Neumair2004-02-271-1/+1
| | | | | | | | 2004-02-26 Christian Neumair <chris@gnome-de.org> * e-search-bar.c (remove_bonobo_menus): remove the right thing svn path=/trunk/; revision=24889
* Before Update the bonobo ui component, remove it first.Bill Zhu2004-02-262-0/+8
| | | | | | | | | | | 2004-02-26 Bill Zhu <bill.zhu@sun.com> * e-search-bar.c (setup_bonobo_menus): Before Update the bonobo ui component, remove it first. Fixes #54788 svn path=/trunk/; revision=24881
* reset motion_row/motion_col if the model changes. See bug #54757.Not Zed2004-02-261-0/+2
| | | | | | | | | 2004-02-26 Not Zed <NotZed@Ximian.com> * e-table-item.c (eti_table_model_pre_change): reset motion_row/motion_col if the model changes. See bug #54757. svn path=/trunk/; revision=24878
* Change the shadow type for the arrows here, so that themes that do handleRodney Dawes2004-02-134-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | 2004-02-12 Rodney Dawes <dobey@ximian.com> * gal/widgets/gal-combo-box.c (gal_combo_box_init): Change the shadow type for the arrows here, so that themes that do handle the use of shadow types with arrows, draw things correctly, instead of following what the old default gtk+ did in 1.x 2004-02-12 Rodney Dawes <dobey@ximian.com> * e-cell-popup.c (ecp_draw): * e-cell-spin-button.c (ecsb_draw): * e-table-header-utils.c (e_table_header_draw_button): Change the shadow type for the arrows here, so that themes that do handle the use of shadow types with arrows, draw things correctly, instead of following what the old default gtk+ did in 1.x 2004-02-12 Rodney Dawes <dobey@ximian.com> * e-vscrolled-bar.c (e_vscrolled_bar_init): Change the shadow type for the arrows here, so that themes that do handle the use of shadow types with arrows, draw things correctly, instead of following what the old default gtk+ did in 1.x svn path=/trunk/; revision=24720
* Change the filename and section that we pass to gnome_help_display_desktopRodney Dawes2004-02-122-2/+8
| | | | | | | | | | 2004-02-11 Rodney Dawes <dobey@ximian.com> * e-multi-config-dialog.c (impl_response): Change the filename and section that we pass to gnome_help_display_desktop so that the help browser displays the documentation correctly svn path=/trunk/; revision=24708
* Add a Help button (impl_response): Handle the Help button and open theRodney Dawes2004-02-112-0/+20
| | | | | | | | | | | 2004-02-10 Rodney Dawes <dobey@ximian.com> * e-multi-config-dialog.c (init): Add a Help button (impl_response): Handle the Help button and open the documentation Fixes #30681 svn path=/trunk/; revision=24694
* Don't show the task label by defaultRodney Dawes2004-02-062-1/+4
| | | | | | | | 2004-02-05 Rodney Dawes <dobey@ximian.com> * e-task-bar.c: Don't show the task label by default svn path=/trunk/; revision=24636
* Moved here from shell/, since they are now used only by the components,Dan Winship2004-02-048-4/+1165
| | | | | | | | | | | | | | | * e-activity-handler.c: * e-activity-handler.h: * e-task-bar.c: * e-task-bar.h: * e-task-widget.c: * e-task-widget.h: Moved here from shell/, since they are now used only by the components, not the shell itself. * Makefile.am (widgetsinclude_HEADERS, libemiscwidgets_la_SOURCES): add new files svn path=/trunk/; revision=24586
* it's possible to get to this function without the EText ever beingChris Toshok2004-02-031-0/+7
| | | | | | | | | | | 2004-02-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_command): it's possible to get to this function without the EText ever being realized. Since we create the layout in realize(), let's just create it here too. Fixes crash bug 46165 (aka "The Bug with a million dups"). svn path=/trunk/; revision=24579
* set image_buf/image_buf_size here instead of in all callers. also emit theChris Toshok2004-02-032-16/+32
| | | | | | | | | | | | | | | | 2004-02-02 Chris Toshok <toshok@ximian.com> * e-image-chooser.c (set_image_from_data): set image_buf/image_buf_size here instead of in all callers. also emit the "changed" signal here. (image_drag_data_received_cb): remove the copying to image_buf and emitting of "changed" from here. (e_image_chooser_set_from_file): only g_free (data) here if set_image_from_data failed. (e_image_chooser_set_image_data): copy the image data we're passed before calling set_image_data. free it if rv == FALSE. svn path=/trunk/; revision=24577
* add an alignment around the image. This might not be enough. hrm.Chris Toshok2004-01-313-23/+83
| | | | | | | | | | | | | 2004-01-30 Chris Toshok <toshok@ximian.com> * e-image-chooser.c (e_image_chooser_init): add an alignment around the image. This might not be enough. hrm. (set_image_from_data): handle the case where there's no image (image_height == image_width == 0). (e_image_chooser_get_image_data): new function. (e_image_chooser_set_image_data): new function. svn path=/trunk/; revision=24552
* abstract out the drag and droppable image widget from the contact listChris Toshok2004-01-314-0/+554
| | | | | | | | | | | | | 2004-01-30 Chris Toshok <toshok@ximian.com> * e-image-chooser.[ch]: abstract out the drag and droppable image widget from the contact list editor and stick it here. There's some code for a "Browse..." button here but it's not enabled. * Makefile.am (widgetsinclude_HEADERS): add e-image-chooser.h. (libemiscwidgets_la_SOURCES): add e-image-chooser.c svn path=/trunk/; revision=24549
* Only save the search-bar state OR the filter-bar state - decided based onJeffrey Stedfast2004-01-312-51/+45
| | | | | | | | | | | | | | | 2004-01-30 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (get_property): Only save the search-bar state OR the filter-bar state - decided based on what the search is. If the search is an advanced search, then save the filter-bar state, otherwise save the search-bar state. (set_property): Only need to restore the first state we find (filter-bar vs search-bar). If we are restoring filter-bar state, set efb->setquery to TRUE and then set the item_id to E_FILTERBAR_ADVANCED_ID. svn path=/trunk/; revision=24542
* Same.Jeffrey Stedfast2004-01-293-3/+12
| | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (impl_get_property): Same. * e-filter-bar.c (get_property): Use g_value_set_string_take_ownership() instead of g_value_take_string() since we need snaps to work with glib-2.0 earlier than 2.3.x. svn path=/trunk/; revision=24507
* Added a new property "state" which is READ-WRITE so that we canJeffrey Stedfast2004-01-294-19/+204
| | | | | | | | | | | | | | | 2004-01-28 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c: Added a new property "state" which is READ-WRITE so that we can save/restore state in the mailer code if we want to. Sort of a work-in-progress toward fixing bug #53195. (class_init): Ported to use the GObject property stuff instead of the deprecated GtkArg stuff. (get_property): Ported from impl_get_arg(). (set_property): New object::set_property implementation to set the query state. svn path=/trunk/; revision=24502
* Use button->time for the mouse click event, so that the popup stays up onRodney Dawes2004-01-281-1/+1
| | | | | | | | | | | 2004-01-27 Rodney Dawes <dobey@ximian.com> * gal/e-text/e-text.c (popup_targets_received): Use button->time for the mouse click event, so that the popup stays up on button release Fixes #47548 svn path=/trunk/; revision=24483
* fix double free of the button event.Chris Toshok2004-01-281-1/+0
| | | | | | | | | 2004-01-27 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (popup_targets_received): fix double free of the button event. svn path=/trunk/; revision=24481
* print strikeout/underlineRadek Doulik2004-01-271-1/+30
| | | | | | | | | | 2004-01-27 Radek Doulik <rodo@ximian.com> * e-cell-text.c (ect_print): print strikeout/underline Fixes #32240 svn path=/trunk/; revision=24466
* if the source is primary, don't allow it to be un-selectedJP Rosevear2004-01-242-11/+19
| | | | | | | | | 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
* Be even more exactly like the GtkButton painting stuffRodney Dawes2004-01-212-9/+12
| | | | | | | | | | | 2004-01-20 Rodney Dawes <dobey@ximian.com> * e-combo-button.c (paint): Be even more exactly like the GtkButton painting stuff Fixes #52988 svn path=/trunk/; revision=24343
* set a primary selection if there is one before the rebuildJP Rosevear2004-01-212-6/+27
| | | | | | | | | | | | | 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-212-16/+57
| | | | | | | | | | | | | | | | 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-212-43/+101
| | | | | | | | | | | | | | | | | | | | | | | 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-212-1/+75
| | | | | | | | | | | | | | 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-202-22/+202
| | | | | | | | | | | | | | | | | | | | | 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
* Fix remaining usages of GTK_*EXPANDER* definesRodney Dawes2004-01-153-19/+23
| | | | | | | | 2004-01-14 Rodney Dawes <dobey@ximian.com> * e-expander.[ch]: Fix remaining usages of GTK_*EXPANDER* defines svn path=/trunk/; revision=24226
* Implemented #127527: the attachment bar is packed inside an EExpanderERDI Gergo2004-01-114-1/+1447
| | | | | | | | | 2003-12-02 ERDI Gergo <cactus@cactus.rulez.org> * e-msg-composer.c: Implemented #127527: the attachment bar is packed inside an EExpander svn path=/trunk/; revision=24146
* free event (e_text_do_popup): copy the event so we have good dataJP Rosevear2004-01-071-1/+2
| | | | | | | | | | | 2004-01-06 JP Rosevear <jpr@ximian.com> * gal/e-text/e-text.c (popup_targets_received): free event (e_text_do_popup): copy the event so we have good data Fixes #51956 svn path=/trunk/; revision=24071
* Fix for bug #46349Rodney Dawes2003-12-232-35/+74
| | | | | | | | | | | 2003-12-22 Rodney Dawes <dobey@ximian.com> Fix for bug #46349 * e-combo-button.c: Use the appropriate style painting for a button widget, since we are a button svn path=/trunk/; revision=24002
* call gdk_window_focus() so that keyboard works correctly.Harry Lu2003-12-182-1/+6
| | | | | | | | | 2003-12-18 Harry Lu <harry.lu@sun.com> * e-cell-date-edit.c: (e_cell_date_edit_do_popup): call gdk_window_focus() so that keyboard works correctly. svn path=/trunk/; revision=23975
* Fixed bug 51917, add atk support for ClickToAddYuedong Du2003-12-171-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-12-16 Yuedong Du <yuedong.du@sun.com> Fixed bug 51917, add atk support for ClickToAdd * gal/a11y/e-table/Makefile.am: add files. * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c: (gal_a11y_e_table_click_to_add_factory_get_accessible_type), (gal_a11y_e_table_click_to_add_factory_create_accessible), (gal_a11y_e_table_click_to_add_factory_class_init), (gal_a11y_e_table_click_to_add_factory_init), (gal_a11y_e_table_click_to_add_factory_get_type): factory for ClickToAdd * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.h: ditto * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c: (etcta_get_n_actions), (etcta_get_description), (etcta_action_get_name), (idle_do_action), (etcta_do_action), (atk_action_interface_init): a "click" action interface. (etcta_get_name), (etcta_get_n_children), (etcta_ref_child): create accessible according to which child is available. Either rect or row. (etcta_class_init), (etcta_init), (gal_a11y_e_table_click_to_add_get_type), (etcta_event): listen to canvas event, emit children-changed signal when it found rect/row was changed. (gal_a11y_e_table_click_to_add_new): * gal/a11y/e-table/gal-a11y-e-table-click-to-add.h: * gal/a11y/e-table/gal-a11y-e-table-item-factory.c: (gal_a11y_e_table_item_factory_create_accessible): * gal/a11y/e-table/gal-a11y-e-table.c: (init_child_item), (et_get_n_children), (et_ref_child): change the trick way to create a11y object for a table item. Because ClickToAdd is also a table item, previous way do not work for clicktoadd. * gal/e-table/e-table-click-to-add.c: (etcta_class_init): atk_register the new a11y factory. svn path=/trunk/; revision=23956
* Use e_source_equal() instead of comparing pointers. This allows user toHans Petter Jansson2003-12-172-8/+24
| | | | | | | | | | | | | | 2003-12-16 Hans Petter Jansson <hpj@ximian.com> * misc/e-source-option-menu.c (select_source_foreach_menu_item): Use e_source_equal() instead of comparing pointers. This allows user to pass in a source that was obtained from somewhere else. Set the matching internal source as "selected" instead of the one passed in. (select_source): Emit signal only if we found a match. Don't ref/unref anything, since the selected source will always be from our internal list. svn path=/trunk/; revision=23954
* NULL out priv->instance when we unref it. Bug #51713.Not Zed2003-12-102-1/+8
| | | | | | | | | 2003-12-10 Not Zed <NotZed@Ximian.com> * menus/gal-view-menus.c (remove_instance): NULL out priv->instance when we unref it. Bug #51713. svn path=/trunk/; revision=23895
* Fixed #50844Andrew Wu2003-12-082-2/+5
| | | | | | | | | | | 2003-12-08 Andrew Wu <yang.wu@sun.com> Fixed #50844 * gal/a11y/e-table/gal-a11y-e-cell-popup.c: * gal/a11y/e-table/gal-a11y-e-cell-popup.h: a11y impl. for e-cell-popup. svn path=/trunk/; revision=23670
* Remove hard coded disable deprecated flagsJP Rosevear2003-12-072-1/+4
| | | | | | | | 2003-12-06 JP Rosevear <jpr@ximian.com> * */Makefile.am: Remove hard coded disable deprecated flags svn path=/trunk/; revision=23658
* Fix for bugzilla bug #51624 and #51627.Harry Lu2003-12-054-13/+52
| | | | | | | | | | | | | | | | | | | | | | | | 2003-12-04 Harry Lu <harry.lu@sun.com> Fix for bugzilla bug #51624 and #51627. * e-calendar-item.c: (e_calendar_item_selection_add_days): set the date to the first day of the month so that user can use keyboard's arrow key to select a date. (e_calendar_item_set_selection_if_emission): only set selection_changed if emission is TRUE. * e-calendar.c: (e_calendar_init): add back the "clicked" handler so that user can use keyboard to click the button. (e_calendar_start_auto_move): no need to move since it is already handled by the clicked handler (e_calendar_on_prev_clicked), (e_calendar_on_next_clicked): move the month here. * e-dateedit.c: (e_date_edit_show_date_popup): use gdk_window_focus instead of gdk_keyboard_grab so that the focus won't lost if user click the button with keyboard. (hide_date_popup): no need to call gdk_keyboard_ungrab. svn path=/trunk/; revision=23642
* (init): Set the mode on the text cellEttore Perazzoli2003-12-032-0/+8
| | | | | | | | 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
* Fixed Bug 51252, 51254, 51255. add some code deal with key press event.Andrew Wu2003-12-023-7/+66
| | | | | | | | | | | | | | 2003-11-23 Andrew Wu <yang.wu@sun.com> Fixed Bug 51252, 51254, 51255. * gal/e-table/e-table-header-item.c: (ethi_event):add some code deal with key press event. * gal/e-table/e-table-header-item.h add a member "selected_col" for keyboard navigation. * gal/e-table/e-table.c (e_table_setup_header):make header can focus. svn path=/trunk/; revision=23572
* Fixes #51139Bolian Yin2003-12-021-2/+2
| | | | | | | | | | | | | 2003-12-02 Bolian Yin <bolian.yin@sun.com> Fixes #51139 * gal/a11y/gal-a11y-e-table-item: (gal_a11y_e_table_item_ref_selection) (gal_a11y_e_table_item_unref_selection): new functions. * gal/e-table/e-table-item.c : change the place of emitting ""selection_model_removed" signal. svn path=/trunk/; revision=23571
* a11y implementations for ECellText. new functions to support correspondingTim Wo2003-12-022-0/+195
| | | | | | | | | | | | | | | | | | | | 2003-12-02 Tim Wo <tim.wo@sun.com> * gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_text), (ect_get_character_at_offset), (ect_get_caret_offset), (ect_get_character_count), (ect_get_n_selections), (ect_get_selection), (ect_add_selection), (ect_remove_selection), (ect_set_selection), (ect_set_caret_offset), (ect_set_text_contents), (ect_insert_text), (ect_copy_text), (ect_delete_text), (ect_cut_text), (ect_paste_text), (ect_class_init): a11y implementations for ECellText. * gal/e-table/e-cell-text.c: (e_cell_text_set_selection), (e_cell_text_get_selection), (e_cell_text_copy_clipboard), (e_cell_text_paste_clipboard), (e_cell_text_delete_selection): new functions to support corresponding atk operations. * gal/e-table/e-cell-text.h: some APIs added to support atk operations. svn path=/trunk/; revision=23568
* list the signal args properlJP Rosevear2003-12-022-1/+5
| | | | | | | | 2003-12-01 JP Rosevear <jpr@ximian.com> * e-source-selector.c (class_init): list the signal args properl svn path=/trunk/; revision=23542
* Added test-source-option-menu executableÉRDI Gergo2003-12-011-1/+2
| | | | svn path=/trunk/; revision=23518
* canned the _clicked handlers as those make it impossible to move just oneERDI Gergo2003-12-012-22/+5
| | | | | | | | | 2003-11-30 ERDI Gergo <cactus@cactus.rulez.org> * e-calendar.c: canned the _clicked handlers as those make it impossible to move just one month at a time svn path=/trunk/; revision=23517
* Add NONE:POINTER.Ettore Perazzoli2003-12-014-8/+51
| | | | | | | | | | | | | * e-util-marshal.list: Add NONE:POINTER. * test-source-option-menu.c (source_selected_callback): New callback to test the "source_selected" signal. (on_idle_create_widget): Connect. * e-source-option-menu.c: Add "source_selected" signal. (select_source): Assume source != NULL and emit "source_selected". svn path=/trunk/; revision=23512
* New test.Ettore Perazzoli2003-12-015-1/+444
| | | | | | | | | * test-source-option-menu.c: New test. * e-source-option-menu.h: New. * e-source-option-menu.c: New. svn path=/trunk/; revision=23511
* renamespace and move to here build new filesMike Kestner2003-11-186-10/+1444
| | | | | | | | | | | | | | 2003-11-17 Mike Kestner <mkestner@ximian.com> * gal/widgets/gtk-combo* : renamespace and move to * gal/widgets/gal-combo* : here * gal/widgets/Makefile.am : build new files 2003-11-17 Mike Kestner <mkestner@ximian.com> * e-table-config.c : use new gal_combo_* namespace. svn path=/trunk/; revision=23402
* allow new lable with mnemonic (e_search_bar_construct): alter lable name.Charles Zhang2003-11-172-3/+8
| | | | | | | | | 2003-11-17 Charles Zhang <charles.zhang@sun.com> * e-search-bar.c(add_button): allow new lable with mnemonic (e_search_bar_construct): alter lable name. [50810] svn path=/trunk/; revision=23385
* use find_source_iter and get the selection from the right spotJP Rosevear2003-11-172-25/+66
| | | | | | | | | | | | | 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
* make source selector flags/libsJP Rosevear2003-11-153-6/+11
| | | | | | | | 2003-11-14 JP Rosevear <jpr@ximian.com> * configure.in: make source selector flags/libs svn path=/trunk/; revision=23366
* Fix for 50800 connect "e_cell_combo_list_button_press" to gtklist.Andrew Wu2003-11-141-3/+21
| | | | | | | | | | | | | 2003-11-14 Andrew Wu <yang.wu@sun.com> Fix for 50800 * gal/e-table/e-cell-combo.c (e_cell_combo_init): connect "e_cell_combo_list_button_press" to gtklist. (e_cell_combo_list_button_press): deal with the "click" event. (e_cell_combo_selection_changed): delete the action to selection changed. svn path=/trunk/; revision=23350
* Fix for 50681 send a event to the right cell to pop up something.Andrew Wu2003-11-141-0/+6
| | | | | | | | | 2003-11-12 Andrew Wu <yang.wu@sun.com> Fix for 50681 * gal/e-table/e-table-item.c (eti_event): send a event to the right cell to pop up something. svn path=/trunk/; revision=23349
* remove a declaration of a deleted func.Bolian Yin2003-11-132-2/+4
| | | | | | | | 2003-11-13 Bolian Yin <bolian.yin@sun.com> * e-calendar-item.c: remove a declaration of a deleted func. svn path=/trunk/; revision=23310
* a canvas item does not inherit from gtkwidgetJP Rosevear2003-11-132-19/+8
| | | | | | | | | 2003-11-12 JP Rosevear <jpr@ximian.com> * e-calendar-item.c (e_calendar_item_class_init): a canvas item does not inherit from gtkwidget svn path=/trunk/; revision=23298
* new files (gal-a11y-e-cell-tree.c/h) added adding 2 new functions to addTim Wo2003-11-122-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-11-03 Tim Wo <tim.wo@sun.com> * gal/a11y/e-table/Makefile.am: new files (gal-a11y-e-cell-tree.c/h) added * gal/a11y/e-table/gal-a11y-e-cell.h: adding 2 new functions to add or remove atk states * gal/a11y/e-table/gal-a11y-e-cell.c (eti_dispose): unref the state_set (eti_ref_state_set): new function (eti_class_init): create and initialize the state_set (eti_init): override the "ref_state_set" function in AtkObjectClass with "eti_ref_state_set" (gal_a11y_e_cell_add_state): adding a return value (gal_a11y_e_cell_remove_state): new function * gal/e-table/e-cell-tree.c: (e_cell_tree_class_init): register GalA11yECellText as the a11y implementation for ECellText. (e_cell_tree_view_get_subcell_view): new function to retrieve the cell_view of subcell in ECellTree * gal/e-table/e-cell-tree.h: adding 1 new function to retrieve the cell_view of subcell in ECellTree * gal/a11y/e-table/gal-a11y-e-cell-tree.c: new file. A11y implementation for ECellTree * gal/a11y/e-table/gal-a11y-e-cell-tree.h: new file. A11y implementation for ECellTree svn path=/trunk/; revision=23296
* Fixes #50538Bolian Yin2003-11-113-40/+61
| | | | | | | | | | | | 2003-11-11 Bolian Yin <bolian.yin@sun.com> Fixes #50538 * e-calendar-item: make e_calendar_item_normalize_date public func. add "selection_preview_changed" signal. move some definition of constants to .h svn path=/trunk/; revision=23284
* Fixes # 50480Bolian Yin2003-11-112-0/+30
| | | | | | | | | | 2003-11-11 Bolian Yin <bolian.yin@sun.com> Fixes # 50480 * e-table-item: add two signals: "selection_model_removed" and "selection_model_added" svn path=/trunk/; revision=23281
* (e_source_selector_new): Expand all theEttore Perazzoli2003-11-112-0/+7
| | | | | | nodes. svn path=/trunk/; revision=23276
* don't include toplevel libicalJP Rosevear2003-11-082-1/+4
| | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * e-timezone-dialog/Makefile.am: don't include toplevel libical svn path=/trunk/; revision=23228
* make sure the marshal stuff is in the sources and remove the built filesJP Rosevear2003-11-072-2/+10
| | | | | | | | | 2003-11-07 JP Rosevear <jpr@ximian.com> * Makefile.am: make sure the marshal stuff is in the sources and remove the built files when disting svn path=/trunk/; revision=23218
* Shush.JP Rosevear2003-11-071-0/+1
| | | | svn path=/trunk/; revision=23214
* Various changes to merge in evolution-data-server reliance.JP Rosevear2003-11-072-1/+5
| | | | svn path=/trunk/; revision=23206
* disable apply button when initial dialog. disable apply button afterCharles Zhang2003-11-032-0/+6
| | | | | | | | | | | 2003-10-13 Charles Zhang <charles.zhang@sun.com> * e-table-config.c (e_table_config_new): disable apply button when initial dialog. * e-table-header-item.c (apply_changes): disable apply button after applying changes. svn path=/trunk/; revision=23168
* new function to deal with grabing table cell focusTim Wo2003-11-031-0/+4
| | | | | | | | | | | | 2003-10-30 Tim Wo <tim.wo@sun.com> * gal/a11y/e-table/gal-a11y-e-cell.c (eti_grab_focus): new function to deal with grabing table cell focus (eti_atk_component_iface_init): Override "grab_focus" virtual function with eti_grab_focus of AtkComponent interface. (#50131) * gal/e-table/e-cell-text.c: (e_cell_text_class_init): register GalA11yECellText as the a11y implementation for ECellText. svn path=/trunk/; revision=23166
* shared object looks for wrong mo file"Suresh Chandrasekharan2003-11-034-4/+4
| | | | | | | | | 2003-10-28 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * Fix for "50258 libgal: shared object looks for wrong mo file" svn path=/trunk/; revision=23163
* fill_popup_menu signal has 2 arguments.Rodrigo Moya2003-10-292-1/+6
| | | | | | | | | 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-293-1/+42
| | | | | | | | | | | | | 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
* add new file for toggle cell a11y object. new a11y object toggle cellYuedong Du2003-10-281-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-26 Yuedong Du <yuedong.du@sun.com> * gal/a11y/e-table/Makefile.am: add new file for toggle cell a11y object. * gal/a11y/e-table/gal-a11y-e-cell-toggle.c: new a11y object toggle cell (gal_a11y_e_cell_toggle_get_type), (gal_a11y_e_cell_toggle_class_init), (toggle_cell_action), the implementation of toggle cell action. (gal_a11y_e_cell_toggle_new): * gal/a11y/e-table/gal-a11y-e-cell-toggle.h: ditto * gal/a11y/e-table/gal-a11y-e-cell.c: (_gal_a11y_e_cell_get_action_info), (_gal_a11y_e_cell_destroy_action_info), (gal_a11y_e_cell_add_action), (gal_a11y_e_cell_remove_action), (gal_a11y_e_cell_remove_action_by_name), (gal_a11y_e_cell_action_get_n_actions), (gal_a11y_e_cell_action_get_name), (gal_a11y_e_cell_action_get_description), (gal_a11y_e_cell_action_set_description), (gal_a11y_e_cell_action_get_keybinding), (idle_do_action), (gal_a11y_e_cell_action_do_action), (gal_a11y_e_cell_atk_action_interface_init), (gal_a11y_e_cell_type_add_action_interface), (gal_a11y_e_cell_add_state): helper functions for add a action, stealed from gailcell.c * gal/a11y/e-table/gal-a11y-e-cell.h: * gal/e-table/e-cell-toggle.c: (e_cell_toggle_class_init): register toggle's a11y object. svn path=/trunk/; revision=23095
* Fix for "50065 chinese locales Input method hangs after a task entry andSuresh Chandrasekharan2003-10-281-0/+3
| | | | | | | | | | * Fix for "50065 chinese locales Input method hangs after a task entry and new folder creation" * gal/e-table/e-cell-text.c: (ect_event) Added check to return if preedit_length == 0 and E_CELL_PREEDIT flag is set. svn path=/trunk/; revision=23093
* Allocate colors using gdk_colormap_alloc_color().Hans Petter Jansson2003-10-241-1/+4
| | | | | | | | | 2003-10-23 Hans Petter Jansson <hpj@ximian.com> * e-table-item.c (eti_get_cell_background_color): Allocate colors using gdk_colormap_alloc_color(). svn path=/trunk/; revision=23053
* Remove these (unused since 1.2)Dan Winship2003-10-223-268/+4
| | | | | | * e-bonobo-widget.[ch]: Remove these (unused since 1.2) svn path=/trunk/; revision=22978
* Merge new-ui-branch to the trunk.Ettore Perazzoli2003-10-225-0/+957
| | | | svn path=/trunk/; revision=22964
* Support for preedit in e-text widgets.Suresh Chandrasekharan2003-10-157-60/+376
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-14 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * Support for preedit in e-text widgets. * gal/gal/e-text/e-text.c: Added e_text_preedit_changed_cb and insert_preedit_text. * Modified the following functions. (e_text_draw) Calls insert_preedit_text also cursor pos @ the end of text->selection_start + text->preedit_len (e_text_event) Added hooks for preedit_cb (e_text_init) Inits text->preedit_len (e_text_retrieve_surrounding_cb) Removed printf (e_text_delete_surrounding_cb) Correct params for gtk_editable_delete_text to make it work. * gal/gal/e-text/e-text.h: Added preedit_len in struct _EText 2003-09-25 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * Fix for "44222 task summary entry widget not i18ned". The following files are changed. * gal/gal/e-table/e-cell-text.c: Lots of changes for i18n selection/input support. Added these functions for input method support. (e_cell_text_preedit_changed_cb) (e_cell_text_commit_cb) (e_cell_text_retrieve_surrounding_cb) (e_cell_text_delete_surrounding_cb) (layout_with_preedit) This function inserts the preedit string with the right attribs to the layout text. (build_attr_list) Creates the PangoAttrList with bold/stikeout/underline as applicable for the current ECellText. The following functions are modified. (ect_stop_editing): disconnect signal handlers when editing stops (ect_draw): Changes for including the preedit only to the currently selected row/col. Also display the cursor at the end of preedit text. (ect_event): Connects the IM callbacks to the key press event. Disconnect when not in editing mode. Also a special flag to see when Enter key pressed in preedit mode, the text is committed only not a new row is created. This woks in conjunction with the changes made in the eti_event in e-table-item.c file and e-cell.h. (ect_height): Changes due to parameters changing for generate_layout (ect_enter_edit): Initialization of im_context for a cell text and assoociated flags. (ect_max_width): Changes due to parameters changing for generate_layout. (ect_max_width_by_row): Changes due to parameters changing for generate_layout. (ect_show_tooltip): Changes due to parameters changing for generate_layout. (e_cell_text_construct): check whether paramters are NULL. (get_position_from_xy): Changes due to parameters changing for generate_layout. (_insert): Set the selection_start as the minimum of strlen(edit->text) and selection_start. Used to correct the preedit_string length which may have added to the selection_start. (e_cell_text_view_command): When inserting, if in the preedit mode do not delete the selection. (_selection_get): Set utf8 data instead of string data. (_selection_received): Take in UTF8_ATOM inaddition to GDK_SELECTION_TYPE_STRING. (e_cell_text_view_get_selection): Make utf8 data when acting as a selection source. * gal/e-table/e-cell-text.h : Included <gtk/gtkmenu.h> * gal/e-table/e-cell.h: Added enum E_CELL_PREEDIT to ECellFlags * gal/e-table/e-table-item.c: (eti_event) Changes for not committing the edited text as a seperate row in preedit mode. * gal/e-table/e-table.c: (table_canvas_focus_event_cb) To have proper im_context focus for the ecanvas holding the e-table. svn path=/trunk/; revision=22882
* add new files. set the right role. new file.Yuedong Du2003-10-113-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-10-11 Yuedong Du <yuedong.du@sun.com> * gal/a11y/e-table/Makefile.am: add new files. * gal/a11y/e-table/gal-a11y-e-cell.c: (gal_a11y_e_cell_construct): set the right role. * gal/a11y/e-table/gal-a11y-e-table-item-factory.c: new file. (gal_a11y_e_table_item_factory_get_accessible_type), (gal_a11y_e_table_item_factory_create_accessible), (gal_a11y_e_table_item_factory_class_init), (gal_a11y_e_table_item_factory_init), (gal_a11y_e_table_item_factory_get_type): factory for the table item a11y object. in create_accessible, we judge the type of widget then set correct role. * gal/a11y/e-table/gal-a11y-e-table-item-factory.h: ditto. * gal/a11y/e-table/gal-a11y-e-tree-factory.c: new file. (gal_a11y_e_tree_factory_get_accessible_type), (gal_a11y_e_tree_factory_create_accessible), (gal_a11y_e_tree_factory_class_init), (gal_a11y_e_tree_factory_init), (gal_a11y_e_tree_factory_get_type): factory for a11y object of etree. Mostly copyed from gal-a11y-e-table-factory.c. * gal/a11y/e-table/gal-a11y-e-tree-factory.h: ditto * gal/a11y/e-table/gal-a11y-e-tree.c: (init_child_item), (et_ref_accessible_at_point), (et_get_n_children), (et_ref_child), (et_class_init), (et_atk_component_iface_init), (et_init), (gal_a11y_e_tree_get_type), (gal_a11y_e_tree_new):a11y object for etree object, mostly copied from gal-a11y-e-table.c. init_child_item set correct role for the table item. * gal/a11y/e-table/gal-a11y-e-tree.h: ditto. * gal/e-table/e-table-item.c: (eti_class_init): register factory for table item a11y object. * gal/e-table/e-tree.c: (e_tree_get_item), (e_tree_class_init): add new access fuction to get the table item of etree. * gal/e-table/e-tree.h: ditto svn path=/trunk/; revision=22867
* process GTK_RESPONSE_DELETE_EVENT signal correctly. the same as aboveCharles Zhang2003-10-101-2/+3
| | | | | | | | | | | 2003-09-28 Charles Zhang <charles.zhang@sun.com> * e-table-config.c (do_sort_and_group_config_dialog): process GTK_RESPONSE_DELETE_EVENT signal correctly. * e-table-config.c (do_fields_config_dialog): the same as above [#48815] svn path=/trunk/; revision=22852
* INCLUDE path fixes for changes made to libical build.Jeffrey Stedfast2003-10-103-13/+26
| | | | | | | | | | | 2003-10-09 Jeffrey Stedfast <fejj@ximian.com> * e-timezone-dialog/Makefile.am: INCLUDE path fixes for changes made to libical build. * e-timezone-dialog.h: #include <libical/ical.h> svn path=/trunk/; revision=22841
* new, treeview renderer for combo cells new, GtkCellEditable for comboMike Kestner2003-10-016-0/+738
| | | | | | | | | | 2003-09-30 Mike Kestner <mkestner@ximian.com> * e-cell-renderer-combo.* : new, treeview renderer for combo cells * e-combo-cell-editable.* : new, GtkCellEditable for combo cells * Makefile.am : build the new files svn path=/trunk/; revision=22773
* Fixes #1245. ECalendar should be usable with the keyboardBolian Yin2003-09-226-53/+362
| | | | | | | | | | | | | | | | | | | | | | | | 2003-09-19 Bolian Yin <bolian.yin@sun.com> Fixes #1245. ECalendar should be usable with the keyboard *misc/e-calendar-item.c (e_calendar_item_focus): new func, focus handler. (e_calendar_item_key_press_event): new func, key press event handler (e_calendar_item_selection_add_days, e_calendar_item_stop_selecting): helpers. (e_calendar_item_ensure_days_visible, e_calendar_item_set_selection_if_emission): add the flag to control if we should emit e-calendar signals. (e_calendar_item_class_init): register focus handler. (e_calendar_item_event): add code for GDK_FOCUS_CHANGE and GDK_KEY_PRESS. *misc/e-calendar.c (e_calendar_focus): new func, focus handler (e_calendar_button_has_focus): new func, if prev/next button has focus. (e_calendar_on_next_clicked, e_calendar_on_prev_clicked): click signal handler for prev/next buttons. (e_calendar_set_focusable): set if the e-calendar is focusable *misc/e-dateedit.c (e_date_edit_show_date_popup, hide_date_popup): grab/ungrab gdk keyboard. svn path=/trunk/; revision=22632
* GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject.Tim Wo2003-09-121-0/+8
| | | | | | | | | | | | | 2003-09-08 Tim Wo <tim.wo@sun.com> * gal/a11y/e-text/gal-a11y-e-text-factory.h: GalA11yETextFactory should inherit from AtkObjectFactory not AtkObject. (#47097). * gal/a11y/e-text/gal-a11y-e-text.c (et_class_init): Set value for "component_parent_iface". (#47097) * gal/e-text/e-text.c (e_text_class_init): Added registration code for GalA11yETextFactory. (#47097) svn path=/trunk/; revision=22551
* new method to get the source model column for a specified available_modelMike Kestner2003-09-121-4/+14
| | | | | | | | | | | 2003-09-11 Mike Kestner <mkestner@ximian.com> * e-table-config.c (get_source_model_col_index): new method to get the source model column for a specified available_model idx. (create_global_store): save the source model index in a new col. (config_button_add): use the new index lookup function [48153]. svn path=/trunk/; revision=22536
* move scnt and gcnt initialization outside the for loop [43156].Mike Kestner2003-09-121-2/+2
| | | | | | | | | 2003-09-11 Mike Kestner <mkestner@ximian.com> * e-table-sort-info.c (e_table_sort_info_load_from_node): move scnt and gcnt initialization outside the for loop [43156]. svn path=/trunk/; revision=22532
* add e-table atk support to libgal a11y add atk registration forGilbert Fang2003-09-051-0/+8
| | | | | | | | | | 2003-09-05 Gilbert Fang <gilbert.fang@sun.com> * gal/a11y/Makefile.am: add e-table atk support to libgal a11y * gal/e-table/e-table.c: (e_table_class_init): add atk registration for GalA11yETable (#47780) svn path=/trunk/; revision=22466
* Fixes #15638.Hans Petter Jansson2003-08-282-3/+22
| | | | | | | | | | | 2003-08-27 Hans Petter Jansson <hpj@ximian.com> Fixes #15638. * misc/e-dateedit.c (rebuild_time_popup): Make 12-hour time format not be zero-padded. Right-align time labels so digits line up. svn path=/trunk/; revision=22394
* add dependency on a11y/widgets. a11y init. (e_calendar_item_bounds): newBolian Yin2003-08-273-1/+28
| | | | | | | | | | 2003-08-27 Bolian Yin <bolian.yin@sun.com> * misc/Makefile.am: add dependency on a11y/widgets. * misc/e-calendar-item.c (e_calendar_item_class_init): a11y init. (e_calendar_item_bounds): new func, impl the bounds virtual func. svn path=/trunk/; revision=22386
* ** For bug #47874.Harry Lu2003-08-263-0/+11
| | | | | | | | | | | | | 2003-08-25 Harry Lu <harry.lu@sun.com> ** For bug #47874. * e-table-specification.c (e_table_specification_load_from_file): check whether file exists before call xmlParseFile(). * e-table-state.c (e_table_state_load_from_file): ditto. * e-tree-table-adapter.c (open_file): ditto. svn path=/trunk/; revision=22358
* add an expander_style param (ect_draw): pass expander_style toMike Kestner2003-08-201-9/+56
| | | | | | | | | | | | 2003-08-19 Mike Kestner <mkestner@ximian.com> * e-cell-tree.c (draw_expander): add an expander_style param (ect_draw): pass expander_style to draw_expander (animate_expander): new timeout handler for expander animation (ect_event): on !retro clicks, draw a "semi" expander and start an animation handler to finish the animation. svn path=/trunk/; revision=22288
* extracted from ect_draw (draw_expander): new gtktreeview-like expanderMike Kestner2003-08-164-86/+207
| | | | | | | | | | | | | | | | | | 2003-08-15 Mike Kestner <mkestner@ximian.com> * e-cell-tree.c (draw_retro_expander): extracted from ect_draw (draw_expander): new gtktreeview-like expander drawing (ect_draw): draw lines and expanders based on retro_look style prop (adjust_event_position): extracted method from ect_event (event_in_expander): new checks for motion/clicks in expander (ect_event): handle prelight for new expanders * e-table-item.c (eti_init): init new motion col/row (eti_event): synthesize leave_notify events for cells and propogate existing motion events to the cells. * e-tree.c (e_tree_class_init): add retro_look and expander_size style props. svn path=/trunk/; revision=22251
* filter S-F10 key binding, and show popup menu. (popup_menu_placement_cb):Maxx Cao2003-08-131-4/+48
| | | | | | | | | | | 2003-08-10 Maxx Cao <maxx.cao@sun.com> * gal/e-text/e-text.c (e_text_event): filter S-F10 key binding, and show popup menu. (popup_menu_placement_cb): function added to adjust popup menu position.+ (popup_targets_received): show popup menu in different ways, according to whether it's invoked by mouse click or key binding. svn path=/trunk/; revision=22204
* actually chose the right color to+ composite over when caching the pixmap.Larry Ewing2003-08-131-23/+6
| | | | | | | 2003-08-12 Larry Ewing <lewing@ximian.com> * e-cell-toggle.c (check_cache): actually chose the right color to+ composite over when caching the pixmap. svn path=/trunk/; revision=22200
* map model_column to available model row by ignoring disabled columns.Mike Kestner2003-07-291-2/+7
| | | | | | | | | 2003-07-28 Mike Kestner <mkestner@ximian.com> * e-table-config (setup_fields): map model_column to available model row by ignoring disabled columns. svn path=/trunk/; revision=21993
* use EVO_MARSHAL_RULEDan Winship2003-07-242-12/+3
| | | | | | * Makefile.am: use EVO_MARSHAL_RULE svn path=/trunk/; revision=21916
* Remove this, since it claims to be deprecated, and nothing is actuallyDan Winship2003-07-234-443/+5
| | | | | | | | | * e-messagebox.c: Remove this, since it claims to be deprecated, and nothing is actually using it any more. * Makefile.am: Remove e-messagebox.[ch] svn path=/trunk/; revision=21900
* add missing e_text_copy_clipboard() prototypeDan Winship2003-07-231-0/+1
| | | | | | | * gal/e-text/e-text.h: add missing e_text_copy_clipboard() prototype svn path=/trunk/; revision=21899
* Create the pixbuf from empty.xpm rather than just callingDan Winship2003-07-232-1/+8
| | | | | | | | * e-combo-button.c (create_empty_pixmap_widget): Create the pixbuf from empty.xpm rather than just calling gdk_pixbuf_new(), which doesn't actually initialize the pixel data. svn path=/trunk/; revision=21898
* Added a handler for GtkWidget::mnemonic_activate().Federico Mena Quintero2003-07-143-0/+37
| | | | | | | | | | | 2003-07-11 Federico Mena Quintero <federico@ximian.com> * e-dateedit.c (e_date_edit_mnemonic_activate): Added a handler for GtkWidget::mnemonic_activate(). * e-url-entry.c (mnemonic_activate): Likewise. svn path=/trunk/; revision=21804
* Chain to the parent handler. Fixes #45236.Federico Mena Quintero2003-07-102-0/+6
| | | | | | | | 2003-07-09 Federico Mena Quintero <federico@ximian.com> * e-url-entry.c (destroy): Chain to the parent handler. Fixes #45236. svn path=/trunk/; revision=21782
* make sure we don't unref the sorter more than once.Chris Toshok2003-07-051-1/+4
| | | | | | | | | 2003-07-04 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (e_reflow_dispose): make sure we don't unref the sorter more than once. svn path=/trunk/; revision=21741
* unref the sorterDan Winship2003-07-011-1/+3
| | | | | | * gal/widgets/e-reflow.c (e_reflow_dispose): unref the sorter svn path=/trunk/; revision=21707
* Initialize some missing fields. Fixes "no handler with id" warnings at evoDan Winship2003-07-012-10/+7
| | | | | | | | | | | | * e-tree.c (e_tree_init): Initialize some missing fields. Fixes "no handler with id" warnings at evo shutdown (ETreePriv): remove unused table_rows_{inserted,deleted}_id (et_disconnect_from_etta): remove refs to them * e-table.c (e_table_drag_source_unset): free site->target_list if it's set. svn path=/trunk/; revision=21705
* Implement. (ect_print): Use same font heuristics as evo calendar, pick aHans Petter Jansson2003-06-241-2/+25
| | | | | | | | | | 2003-06-22 Hans Petter Jansson <hpj@ximian.com> * e-cell-text.c (get_font_for_size): Implement. (ect_print): Use same font heuristics as evo calendar, pick a font that fits. Correct baseline calculation. svn path=/trunk/; revision=21519
* fix string duplication and refcounting problems.Larry Ewing2003-06-242-5/+7
| | | | | | | | | | | | | | 2003-06-23 Larry Ewing <lewing@ximian.com> * gal-define-views-dialog.c (gdvd_button_new_dialog_callback): fix string duplication and refcounting problems. 2003-06-20 Larry Ewing <lewing@ximian.com> * gal-view-etable.c (config_changed): unref after g_object_get adds a ref. svn path=/trunk/; revision=21516
* (set_menu): Translate the text. [#45112]Ettore Perazzoli2003-06-232-1/+5
| | | | svn path=/trunk/; revision=21506
* set iso-2022-cn string to SimplifiedJeffrey Stedfast2003-06-201-1/+1
| | | | svn path=/trunk/; revision=21485
* Fix for #45082: GB18030 BIG5HKSCS and EUC-TW charsets not supported inSuresh Chandrasekharan2003-06-202-29/+30
| | | | | | | | | | | | | | | | | | | | 2003-06-18 Suresh Chandrasekharan <suresh.chandrasekharan@sun.com> * e-charset-picker.c: Fix for #45082: GB18030 BIG5HKSCS and EUC-TW charsets not supported in evolution mail 2003-06-17 Jeffrey Stedfast <fejj@ximian.com> * e-charset-picker.c (e_charset_picker_bonobo_ui_populate): Don't use the charset class in the menu label if it is 'Unknown'. (e_charset_picker_bonobo_ui_populate): For user-defined charsets, just use the name of the charset rather than "Unknown". (add_charset): Don't escape _'s anymore, this seems to not be needed int gtk2. (add_other_charset): g_strdup() the charset name. Fixes bug #43917. svn path=/trunk/; revision=21484
* remove extra ref, the count starts at one.Larry Ewing2003-06-193-3/+3
| | | | | | | | | | | | | | | 2003-06-19 Larry Ewing <lewing@ximian.com> * e-table-specification.c (e_table_specification_load_from_node): remove extra ref, the count starts at one. * e-table-utils.c (e_table_spec_to_full_header): add_column adds a reference, so drop the intial reference. * e-table.c (et_real_construct):remove extra ref, count starts at one. svn path=/trunk/; revision=21479
* accept event arg to be NULL.Bolian Yin2003-06-191-8/+14
| | | | | | | | 2003-06-19 Bolian Yin <bolian.yin@sun.com> * e-gui-utils.c (e_popup_menu): accept event arg to be NULL. svn path=/trunk/; revision=21472
* don't do the CURSOR_FIRST checks if cursor is NULL [43523]Mike Kestner2003-06-142-3/+3
| | | | | | | | | | | | | | 2003-06-13 Mike Kestner <mkestner@ximian.com> * e-tree.c (et_search_search): don't do the CURSOR_FIRST checks if cursor is NULL [43523] 2003-06-13 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_get_cell_background_color): update to an alt row color more consistent with gtktreeview. [44610] svn path=/trunk/; revision=21440
* missed the changelog entry last time.Larry Ewing2003-06-131-1/+2
| | | | svn path=/trunk/; revision=21432
* i2003-06-13 Larry Ewing <lewing@ximian.com>Larry Ewing2003-06-131-0/+5
| | | | | | * gal/widgets/e-canvas.c (e_canvas_dispose): unref the im_context. svn path=/trunk/; revision=21430
* Put the ChangeLog.pre-1-4 in the Makefiles.Ettore Perazzoli2003-06-132-1/+6
| | | | svn path=/trunk/; revision=21426
* guard against NULL strings don't add disabled column titles to the store.Mike Kestner2003-06-124-23/+9
| | | | | | | | | | | | | | 2003-06-12 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (generate_layout): guard against NULL strings * e-table-config.c (create_global_store): don't add disabled column titles to the store. [44258] * e-tree-table-adapter.c (e_t_t_a_node_set_expanded): don't warn if we're trying to collapse a node that's not visible. * e-tree.c (et_connect_to_etta): don't connect to row_inserted and row_deleted. [43893] svn path=/trunk/; revision=21424
* take ownership of the duplicate string.Larry Ewing2003-06-122-1/+5
| | | | | | | | | 2003-06-11 Larry Ewing <lewing@ximian.com> * e-search-bar.c (impl_get_property): take ownership of the duplicate string. svn path=/trunk/; revision=21417
* Roll over ChangeLogs.Ettore Perazzoli2003-06-104-2409/+2409
| | | | svn path=/trunk/; revision=21387
* Fixes #43775JP Rosevear2003-05-313-7/+43
| | | | | | | | | | | | | | | | | | | | | | 2003-05-29 JP Rosevear <jpr@ximian.com> Fixes #43775 * e-calendar-item.c (layout_set_day_text): calculate the day character correctly (e_calendar_item_draw_month): use it * e-dateedit.c (rebuild_time_popup): use e_utf8_strftime (e_date_edit_update_date_entry): ditto (e_date_edit_update_time_entry): ditto * e-calendar-item.c (layout_set_day_text): calculate the day character correctly (e_calendar_item_draw_month): use e_utf8_strftime and above (e_calendar_item_show_popup_menu): use e_utf8_strftime (e_calendar_item_recalc_sizes): use layout_set_day_text svn path=/trunk/; revision=21352
* bump libtool version for api addition new, utf8 in/outMike Kestner2003-05-291-26/+9
| | | | | | | | | | | | | | | 2003-05-28 Mike Kestner <mkestner@ximian.com> * configure.in : bump libtool version for api addition * gal/util/e-util.c (e_utf8_strftime): new, utf8 in/out (e_utf8_strftime_fix_am_pm): new, utf8 in/out 2003-05-28 Mike Kestner <mkestner@ximian.com> * e-cell-date.c (ecd_get_text): use e_utf8_strftime_fix_am_pm and remove locale to utf8 conversion at end. [43485] svn path=/trunk/; revision=21343
* to really fix 42952 use e_table_item_get_cell_geometry. Also a coupleEttore Perazzoli2003-05-221-4/+9
| | | | | | | | | | 2003-05-20 Ettore Perazzoli <ettore@ximian.com> * e-tree.c (tree_canvas_size_allocate): to really fix 42952 use e_table_item_get_cell_geometry. Also a couple valgrind and g_warning fixes related to this change from Mike. svn path=/trunk/; revision=21303
* Added HIG-appropriate spacing/ padding to the main hbox into which theAnna Marie Dirks2003-05-202-3/+9
| | | | | | | | | | 2003-05-19 Anna Marie Dirks <anna@ximian.com> * e-multi-config-dialog.c (init): Added HIG-appropriate spacing/ padding to the main hbox into which the icons and page widgets are packed. svn path=/trunk/; revision=21265
* revert a broken CLEAN_FILES change. [42478]Mike Kestner2003-05-201-3/+2
| | | | | | | | | | | | | | 2003-05-19 Mike Kestner <mkestner@ximian.com> * Makefile.am : revert a broken CLEAN_FILES change. [42478] 2003-05-19 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): don't call any line breaking or justification code if the width <= 0 since it's pointless and apparently pango likes to crash when you do. [43199] svn path=/trunk/; revision=21260
* HIG-ified the spacing, padding, alignment of this dialog. Fixes bug #41148Anna Marie Dirks2003-05-192-256/+287
| | | | | | | | | 2003-05-19 Anna Marie Dirks <anna@ximian.com> * e-timezone-dialog/e-timezone-dialog.glade: HIG-ified the spacing, padding, alignment of this dialog. Fixes bug #41148 svn path=/trunk/; revision=21253
* port to GtkDialog.Larry Ewing2003-05-192-35/+75
| | | | | | | | 2003-05-19 Larry Ewing <lewing@ximian.com> * e-charset-picker.c: port to GtkDialog. svn path=/trunk/; revision=21244
* block the signal that got us here until we're done to stop an infiniteMike Kestner2003-05-174-17/+9
| | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-16 Mike Kestner <mkestner@ximian.com> * gal-view-collection.c (view_changed): block the signal that got us here until we're done to stop an infinite recursion. Fixes 43153. 2003-05-16 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (invisible_finalize): kill (ect_stop_editing): destroy the invisible, not weak_unref (e_cell_text_view_get_invisible): don't weak_ref the invisible since we own its ref. 2003-05-16 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_event): fix a couple timer checks * e-tree-table-adapter.c (update_node): Traverse POST order so that the parent nodes are at the head of the prepended list. Don't restore expanded state to nodes that aren't in the tree any longer. Hopefully fixes #42856. svn path=/trunk/; revision=21229
* Added appropriate padding/spacing to the categories list dialog. Fixes theAnna Marie Dirks2003-05-171-155/+153
| | | | | | | | | | | | | | | 2003-05-16 Anna Marie Dirks <anna@ximian.com> * gal/widgets/e-categories.c: Added appropriate padding/spacing to the categories list dialog. Fixes the rest of #41217. * gal/widgets/e-categories-master-list-dialog.glade: HIG-ified this dialog. * gal/widgets/gal-categories.glade: HIG-ified this dialog (in terms of spacing/padding). Fixes most of bug #41217 svn path=/trunk/; revision=21228
* Make sure the galview.xml file exists before trying to parse it withJeffrey Stedfast2003-05-171-3/+7
| | | | | | | | | | 2003-05-16 Jeffrey Stedfast <fejj@ximian.com> * gal-view-collection.c (load_single_dir): Make sure the galview.xml file exists before trying to parse it with xmlParseFile() to avoid warning spewage from libxml2. svn path=/trunk/; revision=21219
* Disable debugging messages.Ettore Perazzoli2003-05-162-2/+2
| | | | | | | | * gal-view-collection.c (d): Disable debugging messages. * gal-view-instance.c (d): Disable debugging messages. svn path=/trunk/; revision=21198
* (tree_canvas_size_allocate): CallEttore Perazzoli2003-05-161-5/+5
| | | | | | | tree_canvas_reflow_idle() before deciding whether to move the adjustment, not afterwards. [#42952] svn path=/trunk/; revision=21197
* use weak refs not datasets. (e_tree_dispose): weak_unref the context.Mike Kestner2003-05-161-5/+15
| | | | | | | | | | 2003-05-14 Mike Kestner <mkestner@ximian.com> * e-tree-c (context_connect): use weak refs not datasets. (e_tree_dispose): weak_unref the context. Hopefully fixes 42617. svn path=/trunk/; revision=21195
* guard against multiple destroysJP Rosevear2003-05-154-10/+24
| | | | | | | | | | | | 2003-05-14 JP Rosevear <jpr@ximian.com> * e-combo-button.c (impl_destroy): guard against multiple destroys 2003-05-14 JP Rosevear <jpr@ximian.com> * menus/gal-view-menus.c (gvm_finalize): unref the component svn path=/trunk/; revision=21178
* gross hack to work around a post dispose event emission byMike Kestner2003-05-151-0/+3
| | | | | | | | | 2003-05-13 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_event): gross hack to work around a post dispose event emission by gtk2.0/canvas2.0 [#42622] svn path=/trunk/; revision=21174
* [ fixes several utf8/pango related problems, including bugs #41288,Chris Toshok2003-05-142-284/+391
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-05-13 Chris Toshok <toshok@ximian.com> [ fixes several utf8/pango related problems, including bugs #41288, #42596, #42604 ] * configure.in (GAL_CURRENT): bump to 3, per mkestner. (GAL_REVISION): drop to 0, per mkestner. * gal/e-text/e-text.c (reset_layout_attrs): we need to convert the start/end bounds of the object to byte indices for the attribute. (reset_layout): in the layout == NULL case don't create the layout then immediately set it again with the same text. also, we need to convert selection_start to a byte index before calling pango_layout_get_cursor_pos. (e_text_draw): remove some #ifdef 0'd code, move the calculation of our initial clip_rect below the xpos/ypos assignments so we don't duplicate the expression. Fix the selection drawing in the multiline case so that it actually works, instead of assuming that all ETexts only have 1 line *boggle*. (get_position_from_xy): this needs to return a utf8 offset. (e_text_copy_clipboard): convert sel_start/sel_end to byte indices before copying. (primary_get_cb): same. (paste_received): validate the input here, and drop the length parameter from e_text_insert. (next_word): convert from an utf8 offset on entry to this function, and return a utf8 offset when we're done. also, remove the call the g_unichar_validate. we validate at all points where text is inserted. (find_offset_into_line): new function used in the backward/forward line code. find the utf8 offset into a line (the number of utf8 characters from a prior \n or beginning of the string.) (_get_position): in general there are lots of changes here because text->selection_start/text->selection_end are utf8 offsets, not byte offsets. fix E_TEP_START_OF_LINE so that hitting Ctrl-a when you're at the beginning of a line doesn't take you to the beginning of the previous line. fix E_TEP_END_OF_LINE in an analogous fashion. for E_TEP_FORWARD_CHARACTER we just increment by 1. for E_TEP_BACKWARD_CHARACTER we just decrement by 1. for E_TEP_BACKWARD_WORD we drop the g_unichar_validate call and simplify things a bit. reimplement E_TEP_FORWARD_LINE/E_TEP_BACKWARD_LINE so they find the current offset into the line, then scan forward/backward for the next/prev line, and put us at the right offset on that line. fix E_TEP_SELECT_WORD so double clicking in the space between words doesn't select both words - if you double click on the trailing edge of the space, it selects the next word. leading edge selects the previous one. for E_TEP_SELECT_ALL use g_utf8_strlen. (e_text_insert): everything that calls this passes a \0 terminated string, so we assume it's \0 terminated (the old code did as well, with calls to strlen) and drop the length parameter. also make sure this is all utf8 happy. (capitalize): use g_utf8_offset_to_pointer instead of just adding text->text and start/end, and remove the validate call. also fix the call to e_text_model_delete and use e_text_model_insert_length instead of e_text_model_insert. (e_text_command): for E_TEP_INSERT, validate the input. for E_TEP_CAPS just use MAX instead of the neat little hack. also, fix the scrolling so that it scrolls properly in both X and Y directions (there are still some hiccups but it's much much better than previously). (e_text_commit_cb): validate the input here. * gal/e-text/e-text-model.c (struct _ETextModelPrivate): just use a GString here and get rid of MAX_LENGTH. (e_text_model_dispose): free GString. (e_text_model_real_validate_position): clean this up a bit. (e_text_model_real_get_text): return the contents of the GString. (e_text_model_real_get_text_length): use g_utf8_strlen here. (e_text_model_real_set_text): convert to GString (e_text_model_real_insert): just call e_text_model_insert_length here instead of duplicating the function. (e_text_model_real_insert_length): convert to utf8/gstring. i.e. convert @position and @length to a bytes and use g_string_insert_len. (e_text_model_real_delete): same, with g_string_erase. (e_text_model_get_text_length): use g_utf8_strlen (e_text_model_strdup_nth_object): convert the length of the object to bytes before copying. (e_text_model_get_nth_object_bounds): calculate start/end properly for u svn path=/trunk/; revision=21163
* (gal_view_menus_unmerge): Guard againstEttore Perazzoli2003-05-142-1/+7
| | | | | | the BonoboUIComponent not having a container to prevent a warning. svn path=/trunk/; revision=21155
* [#42628] Call emit_search_activated() instead of emit_query_changed().Ettore Perazzoli2003-05-142-1/+7
| | | | | | | | [#42628] * e-search-bar.c (search_now_verb_cb): Call emit_search_activated() instead of emit_query_changed(). svn path=/trunk/; revision=21154
* [ fixes bug #42177 ] remove the CAN_FOCUS flag.Chris Toshok2003-05-122-2/+5
| | | | | | | | | 2003-05-11 Chris Toshok <toshok@ximian.com> [ fixes bug #42177 ] * e-dateedit.c (e_date_edit_init): remove the CAN_FOCUS flag. svn path=/trunk/; revision=21146
* add null check for paths (find_prev_in_range): add null check for pathsMike Kestner2003-05-101-2/+2
| | | | | | | | | 2003-05-09 Mike Kestner <mkestner@ximian.com> * e-tree.c (find_next_in_range): add null check for paths (find_prev_in_range): add null check for paths svn path=/trunk/; revision=21143
* don't return on col == -1. update the adjustment to center the cursor.Mike Kestner2003-05-102-2/+13
| | | | | | | | | | | 2003-05-09 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_cursor_change): don't return on col == -1. * e-tree.c (tree_canvas_size_allocate): update the adjustment to center the cursor. (hover_timeout): remove unused variable to fix warning svn path=/trunk/; revision=21142
* Fix date in ChangeLog.Ettore Perazzoli2003-05-101-1/+1
| | | | svn path=/trunk/; revision=21140
* *** empty log message ***Ettore Perazzoli2003-05-102-0/+8
| | | | svn path=/trunk/; revision=21139
* trash e_utf8_gtk function (e_search_bar_get_text): dittoJP Rosevear2003-05-082-2/+7
| | | | | | | | | | 2003-05-07 JP Rosevear <jpr@ximian.com> * e-search-bar.c (e_search_bar_set_text): trash e_utf8_gtk function (e_search_bar_get_text): ditto svn path=/trunk/; revision=21129
* add missing model_changed (etta_proxy_node_inserted): add missingMike Kestner2003-05-071-0/+4
| | | | | | | | | | 2003-05-06 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (insert_node): add missing model_changed (etta_proxy_node_inserted): add missing model_changed (etta_proxy_node_removed): add missing model_changed svn path=/trunk/; revision=21116
* Use correct macro for int->pointerJeremy Katz2003-05-061-1/+1
| | | | | | | | 2003-05-05 Jeremy Katz <katzj@redhat.com> * e-table-config.c (setup_fields): Use correct macro for int->pointer svn path=/trunk/; revision=21111
* Fix prototype. Likewise.Jeremy Katz2003-05-062-2/+2
| | | | | | | | | | 2003-05-05 Jeremy Katz <katzj@redhat.com> * gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new): Fix prototype. * gal/e-text/e-completion-callbacks.h: Likewise. svn path=/trunk/; revision=21110
* Fixed typo in gal/e-text/e-text.c.Christian Neumair2003-05-061-1/+1
| | | | svn path=/trunk/; revision=21105
* return the instantiated object. [bug #42156]Mike Kestner2003-05-022-4/+27
| | | | | | | | | | | | | | | | 2003-05-01 Mike Kestner <mkestner@ximian.com> * gal/e-text/e-completion-callbacks.c (e_completion_callbacks_new): return the instantiated object. [bug #42156] 2003-05-01 Mike Kestner <mkestner@ximian.com> * e-cell-combo.c (e_cell_combo_selection_changed): new (e_cell_combo_init): connect to selection_changed on popup_list (e_cell_combo_do_popup): block selection_changed while popping up [bug #40996] svn path=/trunk/; revision=21042
* remove gratuitous refJP Rosevear2003-05-021-1/+0
| | | | | | | | 2003-05-01 JP Rosevear <jpr@ximian.com> * e-table.c (et_real_construct): remove gratuitous ref svn path=/trunk/; revision=21041
* don't use unicode ellipsis so that we don't break on broken font setups.Mike Kestner2003-04-301-6/+1
| | | | | | | | | | | | | | 2003-04-29 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): don't use unicode ellipsis so that we don't break on broken font setups. 2003-04-29 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (generate_layout): don't set width on the layout during edit svn path=/trunk/; revision=21012
* Remove this so that GtkContainer's destroy method will destroy all of theDan Winship2003-04-302-25/+7
| | | | | | | | | * e-dateedit.c (e_date_edit_forall): Remove this so that GtkContainer's destroy method will destroy all of the internal widgets. (This is how other compound-widgets-that-aren't- meant-to-be-used-as-containers behave.) #41458 svn path=/trunk/; revision=21003
* don't do wrapping during editMike Kestner2003-04-291-0/+3
| | | | | | | | 2003-04-28 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): don't do wrapping during edit svn path=/trunk/; revision=20995
* Don't convert the label charset from UTF-8 into the locale charset.Jeffrey Stedfast2003-04-292-11/+11
| | | | | | | | | 2003-04-23 Jeffrey Stedfast <fejj@ximian.com> * menus/gal-view-menus.c (build_menus): Don't convert the label charset from UTF-8 into the locale charset. svn path=/trunk/; revision=20985
* Try stat'ing the file before loading it with xmlParseFile() to avoidJeffrey Stedfast2003-04-251-4/+6
| | | | | | | | | | 2003-04-23 Jeffrey Stedfast <fejj@ximian.com> * gal-view-instance.c (load_current_view): Try stat'ing the file before loading it with xmlParseFile() to avoid warnign spewage from libxml2 saying that the file doesn't exist. svn path=/trunk/; revision=20955
* *misc/e-multi-config-dialog.c : add appropriate padding and spacing to theAnna Dirks2003-04-242-2/+10
| | | | | | | | | 2003-04-22 Anna Dirks <anna@ximian.com> *misc/e-multi-config-dialog.c : add appropriate padding and spacing to the settings dialog. Fixes #41392. svn path=/trunk/; revision=20942
* use unicode ellipsis char for breaking lines. Use g_utf8_find_prev_charMike Kestner2003-04-231-9/+14
| | | | | | | | | | | 2003-04-21 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): use unicode ellipsis char for breaking lines. Use g_utf8_find_prev_char and check for failure so that we don't tight loop for small cells that can't display any chars. svn path=/trunk/; revision=20924
* use e_tree_table_adapter_node_get_next to determine how to draw siblingMike Kestner2003-04-213-4/+16
| | | | | | | | | | | 2003-04-21 Mike Kestner <mkestner@ximian.com> * e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next to determine how to draw sibling lines. (ect_print): ditto * e-tree-table-adapter.c (e_t_t_a_node_get_next): new svn path=/trunk/; revision=20902
* [ fixes evolution bug #40464 ] use G_SIGNAL_TYPE_STATIC_SCOPE for theChris Toshok2003-04-211-2/+2
| | | | | | | | | | | 2003-04-19 Chris Toshok <toshok@ximian.com> [ fixes evolution bug #40464 ] * e-table.c (e_table_class_init): use G_SIGNAL_TYPE_STATIC_SCOPE for the GtkSelectionData args of table_drag_data_get and table_drag_data_received. svn path=/trunk/; revision=20900
* if the layout splits into more than one line, shorten it to a single lineMike Kestner2003-04-191-3/+18
| | | | | | | | | | | | | 2003-04-18 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): if the layout splits into more than one line, shorten it to a single line with elipses. (generate_layout): don't ref NULL layouts (ect_enter_edit): use g_new0 for the CellEdit (get_position_from_xy): use generate_layout since edit->layout isn't necessarily set here. svn path=/trunk/; revision=20892
* add guarding for row indexing (Bug# 41497)JP Rosevear2003-04-191-5/+16
| | | | | | | | 2003-04-17 JP Rosevear <jpr@ximian.com> * e-table-subset.c : add guarding for row indexing (Bug# 41497) svn path=/trunk/; revision=20891
* set width and alignment of layout. (generate_layout): set width onMike Kestner2003-04-171-12/+29
| | | | | | | | | | | | | | | | | 2003-04-16 Mike Kestner <mkestner@ximian.com> * e-cell-text.c (build_layout): set width and alignment of layout. (generate_layout): set width on existing layout and pass new width param to build_layout. (ect_draw): pass width to generate_layout (ect_height): pass width to generate_layout (ect_enter_edit): pass width to generate_layout (ect_max_width): pass width to generate_layout (ect_max_width_by_row): pass width to generate_layout (ect_show_tooltip): pass width to generate_layout (e_cell_text_view_command): pass width to generate_layout svn path=/trunk/; revision=20870
* (remove_bonobo_menus): Only do the actual removeEttore Perazzoli2003-04-162-0/+9
| | | | | | | if the ui component actually has a container; this suppresses a BonoboUI warning at each folder view switch. svn path=/trunk/; revision=20861
* Unref the metrics. (e_calendar_item_draw): Re-use the widget's contextHans Petter Jansson2003-04-163-3/+33
| | | | | | | | | | | | | | | | | | 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_update): Unref the metrics. (e_calendar_item_draw): Re-use the widget's context instead of creating a new one. Unref the metrics. (e_calendar_item_draw_month): Unref the metrics. Don't create the layout where it might be leaked by an early return. Unref the layout before returning if we're outside the clip area. (e_calendar_item_draw_day_numbers): Unref the metrics. (e_calendar_item_recalc_sizes): Unref the metrics. (e_calendar_item_convert_position_to_day): Unref the metrics. * e-calendar.c (e_calendar_size_allocate): Unref the metrics. svn path=/trunk/; revision=20855
* Free the id when we're done with it.Hans Petter Jansson2003-04-161-0/+3
| | | | | | | | | 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * gal-view-instance.c (gal_view_instance_get_popup_menu): Free the id when we're done with it. svn path=/trunk/; revision=20854
* Don't unref the layout that was passed in. (e_table_header_draw_button):Hans Petter Jansson2003-04-162-2/+4
| | | | | | | | | | | | | | 2003-04-15 Hans Petter Jansson <hpj@ximian.com> * e-table-header-utils.c (e_table_draw_elided_string): Don't unref the layout that was passed in. (e_table_header_draw_button): Always unref the layout when we're done with it. * e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state): Free the id when we're done with it. svn path=/trunk/; revision=20853
* fix padding and default size. Fixed warnings elsewhere in file.Mike Kestner2003-04-161-1/+7
| | | | | | | | | | 2003-04-15 Mike Kestner <mkestner@ximian.com> * gal-define-views-dialog.c (g_d_v_d_init): fix padding and default size. Fixed warnings elsewhere in file. (g_d_v_d_set_collection): set the dialog title svn path=/trunk/; revision=20851
* Change the border width and padding to comply with the HIG. Fixes bugJeffrey Stedfast2003-04-122-1/+3
| | | | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (do_advanced): Change the border width and padding to comply with the HIG. Fixes bug #41202. (do_advanced): Changed the button ordering from Cancel/Save/OK to Save/Cancel/OK to comply with the HIG. Fixes bug #41207. svn path=/trunk/; revision=20829
* Change the border width and padding to comply with the HIG. Fixes bugJeffrey Stedfast2003-04-122-1/+8
| | | | | | | | | 2003-04-11 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (do_advanced): Change the border width and padding to comply with the HIG. Fixes bug #41202. svn path=/trunk/; revision=20828
* free data here since we don't have source in finalizeJP Rosevear2003-04-111-11/+15
| | | | | | | | | 2003-04-11 JP Rosevear <jpr@ximian.com> * e-table-one.c (one_dispose): free data here since we don't have source in finalize svn path=/trunk/; revision=20817
* use stock buttons, remove desc frame. #if out the copy button. addMike Kestner2003-04-113-282/+229
| | | | | | | | | | | 2003-04-10 Mike Kestner <mkestner@ximian.com> * gal-define-views.glade : use stock buttons, remove desc frame. * gal-define-views-dialog.c (gdvd_init): #if out the copy button. * gal-view-instance.c (g_v_i_get_popup_menu): add ellipsis to Define Views menuitem. svn path=/trunk/; revision=20804
* add ... to "Define Views" and "Save Custom View" menuitem labels.Mike Kestner2003-04-102-2/+7
| | | | | | | | | 2003-04-10 Mike Kestner <mkestner@ximian.com> * menus/gal-view-menus.c (build menus): add ... to "Define Views" and "Save Custom View" menuitem labels. svn path=/trunk/; revision=20802
* add response ids to buttonsMike Kestner2003-04-091-6/+6
| | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-table-config-no-group.glade : add response ids to buttons svn path=/trunk/; revision=20770
* kill an old e_utf8_gtk usageMike Kestner2003-04-092-7/+5
| | | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-search-bar.c (set_option): kill an old e_utf8_gtk usage and remove some straggling e-font.h includes. svn path=/trunk/; revision=20769
* remove e-font.[ch], test-e-font, and test-font-loading. killMike Kestner2003-04-093-281/+2
| | | | | | | | | | | | | | | | | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * gal/widgets/Makefile.am : remove e-font.[ch], test-e-font, and test-font-loading. * gal/widgets/e-unicode.[ch] (e_utf8_from_gtk_string): kill (e_utf8_from_gtk_string_sized): kill (e_utf8_to_gtk_string): kill (e_utf8_to_gtk_string_sized): kill (e_utf8_gtk_menu_item_new_with_label): kill (e_utf8_gtk_clist_set_text): kill (e_utf8_gtk_clist_append): kill * e-categories-master-list-option-menu.c (ecmlom_ecml_changed): don't use e_utf8_to_gtk_string. * e-categories-master-list-combo (ecmlc_ecml_changed): don't use e_utf8_to_gtk_string. 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-cell-text.c : break e-font dependency svn path=/trunk/; revision=20766
* gal/e-text/e-text.[ch] : break EFont dependencyMike Kestner2003-04-092-5/+0
| | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> gal/e-text/e-text.[ch] : break EFont dependency svn path=/trunk/; revision=20763
* swap button order swap button orderMike Kestner2003-04-092-32/+32
| | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-table-config.glade : swap button order * e-table-config-no-group.glade : swap button order svn path=/trunk/; revision=20761
* fix button order fix button order fix button orderMike Kestner2003-04-083-3/+3
| | | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * gal-define-views-dialog.c : fix button order * gal-view-instance-save-as-dialog.c : fix button order * gal-view-new-dialog.c : fix button order svn path=/trunk/; revision=20755
* remove debugging g_print calls fix length_threshold prop range fixMike Kestner2003-04-084-14/+3
| | | | | | | | | | | 2003-04-08 Mike Kestner <mkestner@ximian.com> * e-cell-popup.c : remove debugging g_print calls * e-table-group-container.c : fix length_threshold prop range * e-table-group-leaf.c : fix length_threshold prop range * e-table-item.c : fix length_threshold prop range svn path=/trunk/; revision=20750
* fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property):Chris Toshok2003-04-081-6/+7
| | | | | | | | | | | 2003-04-07 Chris Toshok <toshok@ximian.com> * gal/widgets/e-canvas-background.c (ecb_class_init): fill_color_gdk is a boxed GdkColor, not a pointer. (ecb_set_property): same. (ecb_get_property): same. svn path=/trunk/; revision=20741
* e_cell_percent_get_type returns GType, not GtkType.Chris Toshok2003-04-073-2/+10
| | | | | | | | | | | | 2003-04-06 Chris Toshok <toshok@ximian.com> * e-cell-percent.h: e_cell_percent_get_type returns GType, not GtkType. * e-cell-percent.c (e_cell_percent_new): use g_object_new, not gtk_object_new. svn path=/trunk/; revision=20692
* guard against root == NULL. Bug #39491.Mike Kestner2003-04-051-0/+3
| | | | | | | | | 2003-04-04 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (etta_sort_info_changed): guard against root == NULL. Bug #39491. svn path=/trunk/; revision=20668
* set handle_popup to TRUE on the EText.Chris Toshok2003-04-043-8/+34
| | | | | | | | | | | | | | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (e_entry_init): set handle_popup to TRUE on the EText. * gal/e-text/e-text.c (e_text_set_property): add setter for handle_popup. (e_text_get_property): add getter for handle_popup. (e_text_event): only do our special popup handling if handle_popup is true. otherwise, pass the event along. (e_text_class_init): install the handle_popup property. (e_text_init): init handle_popup to FALSE, so we get default behavior in most cases. * gal/e-text/e-text.h: add "handle_popup" field, so the user of an EText can decide whether to handle popups themselves. svn path=/trunk/; revision=20664
* emit a keypress signal. yes, i know this might not correspond to a singleChris Toshok2003-04-031-0/+2
| | | | | | | | | 2003-04-03 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_commit_cb): emit a keypress signal. yes, i know this might not correspond to a single keypress, but.. svn path=/trunk/; revision=20659
* ifdef gtk_widget_get_clipboard since we need to build against gtk 2.0.Chris Toshok2003-04-031-3/+24
| | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_copy_clipboard): ifdef gtk_widget_get_clipboard since we need to build against gtk 2.0. (e_text_update_primary_selection): same. (e_text_paste): same. (e_text_do_popup): same. svn path=/trunk/; revision=20657
* only connect the signals if !im_context_signals_registered. (e_text_init):Chris Toshok2003-04-032-7/+13
| | | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_event): only connect the signals if !im_context_signals_registered. (e_text_init): init im_context_signals_registered = FALSE. * gal/e-text/e-text.c (struct _EText): add im_context_signals_registered. svn path=/trunk/; revision=20656
* just disconnect based on DATA, so we only need 1 call. (e_text_event):Chris Toshok2003-04-031-20/+4
| | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_dispose): just disconnect based on DATA, so we only need 1 call. (e_text_event): same. svn path=/trunk/; revision=20655
* [ either fixes #39702 or comes damn, damn close. also, fixes EText to notChris Toshok2003-04-034-461/+473
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-04-02 Chris Toshok <toshok@ximian.com> [ either fixes #39702 or comes damn, damn close. also, fixes EText to not suck *nearly* as much. ] * gal/util/e-marshal.list: add NONE:POINTER,INT,OBJECT. * gal/e-text/e-entry.h: (struct _EEntryClass): popup -> populate_popup. * gal/e-text/e-entry.c (proxy_changed): rename, the old name was too damn long. (proxy_activate): same. (proxy_populate_popup): same, and change from popup to populate_popup. (e_entry_init): track change to cb names, and populate_popup. also, pass the ECanvas's im_context to the EText. (e_entry_class_init): POPUP -> POPULATE_POPUP. * gal/e-text/e-text.h (struct _EText): remove the old selection stuff, and add im_context/reset_im_context fields. (struct _ETextClass): popup -> populate_popup. * gal/e-text/e-text.c (e_text_dispose): remove all the GtkInvisible based selection stuff, and disconnect from/unref the im_context. (e_text_set_property): add "im_context" handling. (e_text_get_property): same. (e_text_event): connect/disconnect from the IM context's signals in the FOCUS_CHANGE handler. in the KEY_PRESS/RELEASE handler, use gtk_im_context_filter_keypress if we have an im_context. also, use e_text_do_popup now instead of just emitting the "popup" signal. (e_text_copy_clipboard): new function. (e_text_delete_selection): new function. (e_text_cut_clipboard): new function. (e_text_paste_clipboard): new function. (e_text_select_all): new function. (primary_get_cb): new function, handle requests for the primary selection when we're the owner. (primary_clear_cb): new function, unfinished. (e_text_update_primary_selection): new function. (paste_received): new function, insert pasted text. (e_text_paste): new function, (popup_menu_detach): new function, not needed really. (popup_targets_received): new function, pop up the popup once we have the selection information necessary to sensitize the c/c/p buttons. (e_text_do_popup): new function, request the selection. (e_text_reset_im_context): new function. (e_text_command): for E_TEP_SELECT, call e_text_update_primary_selection. for E_TEP_DELETE/INSERT, _delete_selection -> e_text_delete_selection. for E_TEP_COPY, call e_text_copy_clipboard. for E_TEP_PASTE/E_TEP_GET_SELECTION call e_text_paste. (e_text_class_init): change the "popup" signal to "populate_popup". Also, add the "im_context" property. (e_text_commit_cb): new function. IM context callback. (e_text_retrieve_surrounding_cb): new function. IM context callback. (e_text_delete_surrounding_cb): new function. IM context callback. unfinished. svn path=/trunk/; revision=20653
* For example; a selection ending 2003-apr-02 does not fit into theHans Petter Jansson2003-04-032-8/+24
| | | | | | | | | | 2003-04-02 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_set_selection): For example; a selection ending 2003-apr-02 does not fit into the remaining shown days after 1969-dec. Stop assuming that it does. svn path=/trunk/; revision=20652
* (e_tree_class_init): Add a G_SIGNAL_TYPE_STATIC_SCOPEEttore Perazzoli2003-04-031-1/+1
| | | | | | for the GTK_TYPE_SELECTION_DATA arg. svn path=/trunk/; revision=20650
* restore expanded state of node and all children. Fixes Ximian bug #40393.Mike Kestner2003-04-031-3/+31
| | | | | | | | | | 2003-04-02 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (update_node): restore expanded state of node and all children. Fixes Ximian bug #40393. (check_expanded): new traverser function svn path=/trunk/; revision=20642
* move to using gtk_im_context.Larry Ewing2003-04-022-85/+11
| | | | | | | | | | 2003-04-01 Larry Ewing <lewing@ximian.com> * gal/widgets/e-canvas.c: move to using gtk_im_context. * gal/widgets/e-canvas.c: add im_context member. svn path=/trunk/; revision=20634
* Nuke GdkFont and use Pango's font measuring for everything.Hans Petter Jansson2003-04-024-130/+160
| | | | | | | | | | | | | | | | | | | | | | | 2003-04-01 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_class_init) (e_calendar_item_destroy) (e_calendar_item_get_arg) (e_calendar_item_set_arg) (e_calendar_item_update) (e_calendar_item_draw) (e_calendar_item_draw_month) (e_calendar_item_draw_day_numbers) (e_calendar_item_recalc_sizes) (e_calendar_item_convert_position_to_day): Nuke GdkFont and use Pango's font measuring for everything. * e-calendar-item.h: Ditto. * e-calendar.c (e_calendar_init) (e_calendar_size_allocate): Ditto. svn path=/trunk/; revision=20633
* stop drawing that annoying focus rectangle.Chris Toshok2003-04-021-1/+1
| | | | | | | | | 2003-04-01 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_draw): stop drawing that annoying focus rectangle. svn path=/trunk/; revision=20626
* [ fixes bug #39508 ] add back in some suitably pango-ized code to getChris Toshok2003-04-021-5/+59
| | | | | | | | | | | 2003-04-01 Chris Toshok <toshok@ximian.com> [ fixes bug #39508 ] * gal/e-text/e-text.c (e_text_command): add back in some suitably pango-ized code to get EText's scrolling horizontally as you move the cursor. svn path=/trunk/; revision=20625
* if killing the root node, set it to NULL in the priv data. Bug #39441.Mike Kestner2003-04-011-0/+2
| | | | | | | | | 2003-03-31 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (kill_gnode): if killing the root node, set it to NULL in the priv data. Bug #39441. svn path=/trunk/; revision=20607
* Handle multiple destroys.Hans Petter Jansson2003-03-312-3/+15
| | | | | | | | | 2003-03-30 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.c (e_calendar_item_destroy): Handle multiple destroys. svn path=/trunk/; revision=20588
* set the sub item to the default as wellJP Rosevear2003-03-292-0/+18
| | | | | | | | | 2003-03-28 JP Rosevear <jpr@ximian.com> * e-search-bar.c (clear_search): set the sub item to the default as well svn path=/trunk/; revision=20572
* (set_state): Removed debugging message.Ettore Perazzoli2003-03-282-1/+5
| | | | svn path=/trunk/; revision=20548
* set the popup to insensitive when we pop it down. hack to force it to loseNot Zed2003-03-271-0/+3
| | | | | | | | | | 2003-03-26 Not Zed <NotZed@Ximian.com> * gal/e-text/e-entry.c (e_entry_show_popup): set the popup to insensitive when we pop it down. hack to force it to lose focus, fix for #39719. svn path=/trunk/; revision=20531
* #include gtkarrow.h LikewiseDan Winship2003-03-254-2/+11
| | | | | | | | | * e-calendar.c: #include gtkarrow.h * e-combo-button.c: Likewise * e-charset-picker.c: Update for e_notice move svn path=/trunk/; revision=20499
* Remove e_notice. (Moved to evolution.)Dan Winship2003-03-252-30/+0
| | | | | | | * gal/widgets/e-gui-utils.c: Remove e_notice. (Moved to evolution.) svn path=/trunk/; revision=20496
* properly parse nodes that include whitespace. bug #39896Mike Kestner2003-03-251-13/+16
| | | | | | | | | 2003-03-24 Mike Kestner <mkestner@ximian.com> * e-table-sort-info.c (e_table_sort_info_load_from_node): properly parse nodes that include whitespace. bug #39896 svn path=/trunk/; revision=20486
* don't call delete_node on the root node since generate_tree already doesMike Kestner2003-03-241-2/+3
| | | | | | | | | | | 2003-03-24 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (update_node): don't call delete_node on the root node since generate_tree already does that. Thanks to Antonio Xu <antonio.xu@sun.com> for identifying the cause of the bug and providing a candidate patch. Bug #38320. svn path=/trunk/; revision=20481
* fix UMR.Chris Toshok2003-03-231-1/+1
| | | | | | | | 2003-03-23 Chris Toshok <toshok@ximian.com> * e-table.c (do_drag_motion): fix UMR. svn path=/trunk/; revision=20469
* Use glib macro G_GNUC_FUNCTION instead of __FUNCTION__. Thank u, Ettore.Sanshao Jiang2003-03-222-6/+7
| | | | | | | | | | | | | | | 2003-03-19 Sanshao Jiang <alex.jiang@sun.com> * gal-view-collection.c (gal_view_collection_append_with_title): (gal_view_collection_set_nth_view): Use glib macro G_GNUC_FUNCTION instead of __FUNCTION__. Thank u, Ettore. * gal-view-instance.c (gal_view_instance_set_current_view_id): same (add_popup_radio_item): Fix to be compilable on other compilers, using gcc extension independent codes.(bug#39176) (add_popup_menu_item): same svn path=/trunk/; revision=20455
* [ fixes bug #39856 ] request a full redraw when we're done draggingChris Toshok2003-03-211-0/+1
| | | | | | | | | | 2003-03-21 Chris Toshok <toshok@ximian.com> [ fixes bug #39856 ] * gal/widgets/e-reflow.c (e_reflow_update): request a full redraw when we're done dragging columns. svn path=/trunk/; revision=20450
* Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550Jeffrey Stedfast2003-03-203-95/+102
| | | | | | | | | 2003-03-19 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c: Updated to use GtkDialog instead of GnomeDialog. Also fixed bug #39550 while I was at it. svn path=/trunk/; revision=20375
* add underline_column field.Chris Toshok2003-03-194-27/+60
| | | | | | | | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * e-cell-text.h: add underline_column field. * e-cell-date.c: add underline_column to the comment. * e-cell-size.c: add underline_column to the comment. * e-cell-text.c (build_layout): handle underline column. (ect_show_tooltip): same. (ect_set_property): same. (ect_get_property): same. (e_cell_text_class_init): same. (e_cell_text_init): same. (e_cell_text_new): add underline_column to the comment. svn path=/trunk/; revision=20347
* add cursor_idle_id.Chris Toshok2003-03-191-0/+2
| | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * e-table-item.h (ETableItem): add cursor_idle_id. * e-table-item.c (eti_idle_maybe_show_cursor): save off the cursor_idle_id. (eti_idle_show_cursor_cb): reset the cursor_idle_id to 0. (eti_dispose): remove the cursor_idle_id. Fixes a crash in the evolution select-names dialog. svn path=/trunk/; revision=20346
* add cursor_idle_id.Chris Toshok2003-03-191-1/+8
| | | | | | | | | | | | | | 2003-03-18 Chris Toshok <toshok@ximian.com> * e-table-item.h (ETableItem): add cursor_idle_id. * e-table-item.c (eti_idle_maybe_show_cursor): save off the cursor_idle_id. (eti_idle_show_cursor_cb): reset the cursor_idle_id to 0. (eti_dispose): remove the cursor_idle_id. Fixes a crash in the evolution select-names dialog. svn path=/trunk/; revision=20344
* mimic Gtk's sort arrows (ethi_start_drag): mimic Gtk's sort arrowsMike Kestner2003-03-191-8/+8
| | | | | | | | | 2003-03-18 Mike Kestner <mkestner@ximian.com> * e-table-header-item.c (ethi_draw): mimic Gtk's sort arrows (ethi_start_drag): mimic Gtk's sort arrows svn path=/trunk/; revision=20340
* Swap OK/Cancel buttons to comply with the HIG.Ettore Perazzoli2003-03-192-9/+14
| | | | svn path=/trunk/; revision=20339
* null start_path (etsm_invert_selection): null start_pathMike Kestner2003-03-191-5/+11
| | | | | | | | | | | | | 2003-03-18 Mike Kestner <mkestner@ximian.com> * e-tree-selection-model.c (select_single_path): null start_path (etsm_invert_selection): null start_path (etsm_toggle_single_row): null start_path (etsm_real_move_selection_end): start at start_path, not cursor (etsm_set_selection_end): set start_path (e_tree_selection_model_init): null start_path svn path=/trunk/; revision=20337
* Instead of using gtk_widget_unparent(), remove the widget from theHans Petter Jansson2003-03-183-3/+3
| | | | | | | | | | | | | | | | 2003-03-17 Hans Petter Jansson <hpj@ximian.com> * gal-define-views-dialog.c (gal_define_views_dialog_init): Instead of using gtk_widget_unparent(), remove the widget from the container using gtk_container_remove(). This fixes crashers where the dialog is being used. * gal-view-instance-save-as-dialog.c (gal_view_instance_save_as_dialog_init): Ditto. * gal-view-new-dialog.c (gal_view_new_dialog_init): Ditto. svn path=/trunk/; revision=20324
* Don't crash if there's no timezone set initially. #39783Dan Winship2003-03-182-4/+11
| | | | | | | * e-timezone-dialog/e-timezone-dialog.c (on_map_motion): Don't crash if there's no timezone set initially. #39783 svn path=/trunk/; revision=20313
* save and restore expanded state so parents don't collapse when childrenMike Kestner2003-03-151-2/+7
| | | | | | | | | | 2003-03-14 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (update_node): save and restore expanded state so parents don't collapse when children are added to them. (e_tree_table_adapter_node_is_expanded): guard against null nodes. svn path=/trunk/; revision=20303
* use access() like camelMike Kestner2003-03-152-3/+8
| | | | | | | | | | | | | | | 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal/util/e-util.c (e_mkdir_hier): use access() like camel 2003-03-14 Mike Kestner <mkestner@ximian.com> * gal-view-collection.c (gal_view_collection_load): check failure on e_create_directory call and warn. * gal-view-instance.c (save_current_view): check for failure and warn. svn path=/trunk/; revision=20291
* kill an unused variableDan Winship2003-03-141-1/+0
| | | | svn path=/trunk/; revision=20276
* Various cleanups. (e_timezone_dialog_get_timezone): Return anDan Winship2003-03-123-159/+120
| | | | | | | | | | * e-timezone-dialog/e-timezone-dialog.c: Various cleanups. (e_timezone_dialog_get_timezone): Return an icaltimezone. (e_timezone_dialog_set_timezone): Take an icaltimezone (e_timezone_dialog_construct): Set a minimum size on the scrolled window svn path=/trunk/; revision=20255
* Use GtkArrow instead of pixmaps Use GtkArrow instead of pixmapsRodney Dawes2003-03-125-84/+11
| | | | | | | | | | | 2003-03-10 Rodney Dawes <dobey@ximian.com> * e-calendar.c: Use GtkArrow instead of pixmaps * e-combo-button.c: Use GtkArrow instead of pixmaps * e-filter-bar.c: gtk_window_set_policy () is deprecated * e-url-entry.c: Load the icon in a pixbuf instead of GdkPixmap svn path=/trunk/; revision=20254
* Added prototype for show_pango_rectangle()Jeffrey Stedfast2003-03-101-0/+3
| | | | | | | | 2003-03-10 Jeffrey Stedfast <fejj@ximian.com> * gal/e-text/e-text.c: Added prototype for show_pango_rectangle() svn path=/trunk/; revision=20233
* fix drawing bugs, and disable the stupid looking focus rect, since I can'tChris Toshok2003-03-081-14/+14
| | | | | | | | | | | | | | 2003-03-07 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (e_text_draw): fix drawing bugs, and disable the stupid looking focus rect, since I can't find a theme that uses them. (e_text_event): force redraw in the focus-out case if the cursor is shown (so we can erase it), and also trick ourselves into drawing it immediately (by setting it to FALSE) in the focus-in case. svn path=/trunk/; revision=20223
* (destroy): Removed unused variable.Ettore Perazzoli2003-03-072-1/+4
| | | | svn path=/trunk/; revision=20201
* Use G_GNUC_FUNCTION instead of __FUNCTION__.Ettore Perazzoli2003-03-074-4/+12
| | | | | | | | | | * menus/gal-view-menus.c (gal_view_menus_unmerge): Use G_GNUC_FUNCTION instead of __FUNCTION__. * e-dropdown-button.c (menu_deactivate_cb): Removed debugging spew. svn path=/trunk/; revision=20200
* fix a couple ==TRUE uses pointed out by Morten Welinder <terra@diku.dk>.Mike Kestner2003-03-051-2/+2
| | | | | | | | | 2003-03-05 Mike Kestner <mkestner@ximian.com> * e-tree-model.c : fix a couple ==TRUE uses pointed out by Morten Welinder <terra@diku.dk>. svn path=/trunk/; revision=20169
* i18n fixDmitry Mastrukov2003-03-056-9/+130
| | | | | | | | | | | | | | | | | | | 2003-03-04 Dmitry Mastrukov <dmitry@taurussoft.org> * gal/widgets/e-unicode.c : i18n fix 2003-03-04 Dmitry Mastrukov <dmitry@taurussoft.org> * e-cell-date.c (ecd_get_text): i18n fix * e-table.c (et_real_construct): i18n fix * e-table-config.c (create_global_store): i18n fix * e-table-utils.c (et_col_spec_to_col): i18n fix 2003-03-04 Mike Kestner <mkestner@ximian.com> * e-tree-selection-model.c : some cursor fixes svn path=/trunk/; revision=20156
* rewrite to store selected paths in a hashtable instead of a tree. lose theMike Kestner2003-03-043-786/+141
| | | | | | | | | | | 2003-03-04 Mike Kestner <mkestner@ximian.com> * e-tree-selection-model.c : rewrite to store selected paths in a hashtable instead of a tree. * e-tree-table-adapter.c : lose the hacky orig_position api since etsm doesn't need it anymore. svn path=/trunk/; revision=20136
* Add style_set to update list properly (et_canvas_realize): Remove this asRodney Dawes2003-03-011-7/+4
| | | | | | | | | | 2003-02-26 Rodney Dawes <dobey@ximian.com> * e-tree.c (et_canvas_style_set): Add style_set to update list properly (et_canvas_realize): Remove this as it's no longer needed with support for the style_set implementation svn path=/trunk/; revision=20108
* remove alloc-based transform (et_drag_data_received): dittoMike Kestner2003-03-011-12/+0
| | | | | | | | | | | 2003-02-28 Mike Kestner <mkestner@ximian.com> * e-table.c (et_drag_motion): remove alloc-based transform (et_drag_data_received): ditto (et_drag_drop): ditto (do_drag_motion): ditto svn path=/trunk/; revision=20100
* remove alloc-based transform (et_drag_data_received): dittoMike Kestner2003-03-011-11/+0
| | | | | | | | | | | | 2003-02-28 Mike Kestner <mkestner@ximian.com> * e-tree.c (et_drag_motion): remove alloc-based transform (et_drag_data_received): ditto (et_drag_drop): ditto (et_hover_timeout): ditto (do_drag_motion): ditto svn path=/trunk/; revision=20099
* init column_count to column_start + 1. (item_removed): clean up theChris Toshok2003-02-281-7/+11
| | | | | | | | | | | | 2003-02-27 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (reflow_columns): init column_count to column_start + 1. (item_removed): clean up the setting of reflow->reflow_from_column. (items_inserted): same. svn path=/trunk/; revision=20097
* guard this so we don't try to free priv multiple times.Chris Toshok2003-02-282-3/+9
| | | | | | | | | 2003-02-27 Chris Toshok <toshok@ximian.com> * e-url-entry.c (destroy): guard this so we don't try to free priv multiple times. svn path=/trunk/; revision=20089
* use gdk_event_copy and gdk_event_free to dup the event.Mike Kestner2003-02-281-19/+11
| | | | | | | | | 2003-02-27 Mike Kestner <mkestner@ximian.com> * gal/widgets/e-canvas.c (emit_event): use gdk_event_copy and gdk_event_free to dup the event. svn path=/trunk/; revision=20088
* remove the grab_cancelled_check_id if it's still active.Chris Toshok2003-02-271-0/+4
| | | | | | | | | 2003-02-26 Chris Toshok <toshok@ximian.com> * gal/widgets/e-canvas.c (e_canvas_dispose): remove the grab_cancelled_check_id if it's still active. svn path=/trunk/; revision=20083
* Use g_signal_handlers_disconnect_by_func sinceDan Winship2003-02-252-10/+23
| | | | | | | | | * e-map.c (e_map_destroy): Use g_signal_handlers_disconnect_by_func since gtk_signal_disconnect_by_data doesn't seem to work right. (e_map_set_scroll_adjustments): Likewise. svn path=/trunk/; revision=20052
* Same as below.Jeffrey Stedfast2003-02-259-115/+223
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-25 Jeffrey Stedfast <fejj@ximian.com> * e-dateedit.c (on_date_popup_date_selected): Same as below. * e-cell-date-edit.c (e_cell_date_edit_on_ok_clicked): Also updated to use the new GDate API from glib 2.0 * test-calendar.c (on_selection_changed): Fixed to use glib 2.0's GDate API. * e-calendar-item.c (e_calendar_item_get_week_number): Port to glib 2.0's GDate API. (e_calendar_item_set_selection): Same. * e-search-bar.c (append_xml_menu_item): Use g_string_append_printf instead of g_string_sprintfa since the latter is now deprecated. (setup_bonobo_menus): Same. * e-filter-bar.c (do_advanced): Use gtk_window_set_resizable() * e-charset-picker.c: Fixes to make it build cleanly with -DG_DISABLE_DEPRECATED (add_charset): Escape _'s so we don't get underline weirdness due to GtkLabel thinking the _ means to underline the next char. (e_charset_picker_bonobo_ui_populate): Same here. svn path=/trunk/; revision=20048
* Don't unref the GtkInvisible - instead, destroy it.Hans Petter Jansson2003-02-251-2/+2
| | | | | | | | | 2003-02-24 Hans Petter Jansson <hpj@ximian.com> * gal/e-text/e-text.c (e_text_dispose): Don't unref the GtkInvisible - instead, destroy it. svn path=/trunk/; revision=20040
* fix overzealous g_asserts to avoid crashes when eti->rows is alreadyMike Kestner2003-02-211-5/+1
| | | | | | | | | 2003-02-20 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): fix overzealous g_asserts to avoid crashes when eti->rows is already updated. svn path=/trunk/; revision=19982
* kill (etsm_find_node_unless_equals): use new etta_orig_positionMike Kestner2003-02-213-47/+57
| | | | | | | | | | | | | | | | 2003-02-20 Mike Kestner <mkestner@ximian.com> * e-tree-selection-model.c (etsm_orig_position): kill (etsm_find_node_unless_equals): use new etta_orig_position (update_parents): use new etta_orig_position (etsm_recurse_is_path_selected): use new etta_orig_position * e-tree-table-adapter.c (e_tree_table_adapter_orig_position): new (resort_node): populate orig_pos, fix sorting_map bound bug (create_gnode): initialize orig_pos (delete_node): call resort_node so orig_pos gets updated (insert_node): always call resort_node let it decide whether to sort svn path=/trunk/; revision=19975
* Make libemiscwidgets, libefilterbar, and libetimezonedialog dynamicDan Winship2003-02-214-14/+26
| | | | | | | libraries, so they can be portably linked into the (shared library) components. (Part 1 of N.) svn path=/trunk/; revision=19971
* set remap_neededMike Kestner2003-02-191-0/+1
| | | | | | | | 2003-02-18 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (move_map_elements): set remap_needed svn path=/trunk/; revision=19930
* make sure the row >= 0 before calling value_at to calc "strikeout".Chris Toshok2003-02-181-1/+3
| | | | | | | | | 2003-02-17 Chris Toshok <toshok@ximian.com> * e-cell-text.c (build_layout): make sure the row >= 0 before calling value_at to calc "strikeout". svn path=/trunk/; revision=19926
* make things compile on an alpha. passing NULL to a var_arg not portable.Jody Goldberg2003-02-181-1/+3
| | | | | | | | | | 2003-02-17 Jody Goldberg <jody@gnome.org> * gal/e-table/e-table-group.c (e_table_group_construct) : make things compile on an alpha. passing NULL to a var_arg not portable. This seems like a better approach. svn path=/trunk/; revision=19924
* return after the e_table_model_no_change call.Chris Toshok2003-02-171-2/+6
| | | | | | | | | | 2003-02-17 Chris Toshok <toshok@ximian.com> * e-tree-table-adapter.c (etta_proxy_node_data_changed): return after the e_table_model_no_change call. (etta_proxy_node_col_changed): same. svn path=/trunk/; revision=19923
* make this actually work: destroy the canvas item, memmove stuff around,Chris Toshok2003-02-171-0/+12
| | | | | | | | | | 2003-02-16 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (item_removed): make this actually work: destroy the canvas item, memmove stuff around, change reflow->count, etc, etc. svn path=/trunk/; revision=19918
* enable this function to reflow the view from a particular column onward.Chris Toshok2003-02-174-28/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-16 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (reflow_columns): enable this function to reflow the view from a particular column onward. This is useful if you have a huge model and the only changes are happening at the end (as is normally the case if you're appending to a large model.) (item_changed): calculate the height of the changed item here, so we aren't doing it as we reflow the model. For now, reflow the entire model. Further optimization can be done here. (item_removed): new function. remove the item and reflow from the column that contained it. (items_inserted): calculate the heights of the new items, and calculate the lowest numbered column containing one of the inserted items. reflow from there. (model_changed): calculate the heights of everything here. (comparison_changed): new function, clear the sorter and reflow. (disconnect_model): disconnect comparison_changed and model_item_removed. (connect_model): connect comparison_changed and model_item_removed. (adjustment_changed): use queue_incarnate here, instead of forcing the reflow model to incarnate as we scroll. Not sure if this is actually the right solution, but it does make the scrollbar more responsive at the cost of redraw speed. * gal/widgets/e-reflow.h (struct _EReflow): add slots for the new signal ids, as well as "reflow_from_column". * gal/widgets/e-reflow-model.c (e_reflow_model_class_init): create the comparison_changed and model_item_removed signals. (e_reflow_model_comparison_changed): new function, emit the comparison_changed signal. (e_reflow_model_item_removed): new function, emit the model_item_removed signal. * gal/widgets/e-reflow-model.h: add comparison_changed and model_item_removed signals. svn path=/trunk/; revision=19917