aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
Commit message (Collapse)AuthorAgeFilesLines
...
* guard for null paths if save_id lookup fails.Mike Kestner2003-02-141-1/+2
| | | | | | | | | 2003-02-13 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (*_load_expanded_state): guard for null paths if save_id lookup fails. svn path=/trunk/; revision=19904
* don't transform based on allocation position. Position isn't absolute now.Mike Kestner2003-02-141-3/+0
| | | | | | | | | 2003-02-13 Mike Kestner <mkestner@ximian.com> * e-table-header-item.c (ethi_drag_motion): don't transform based on allocation position. Position isn't absolute now. svn path=/trunk/; revision=19902
* kill a double unref on the pango_layout.Mike Kestner2003-02-141-2/+0
| | | | | | | | | 2003-02-13 Mike Kestner <mkestner@ximian.com> * e-table-header-utils.c (e_table_header_draw_button): kill a double unref on the pango_layout. svn path=/trunk/; revision=19900
* Request a reflow on realization, so size and placement will be correctHans Petter Jansson2003-02-131-1/+4
| | | | | | | | | 2003-02-12 Hans Petter Jansson <hpj@ximian.com> * e-table-click-to-add.c (etcta_realize): Request a reflow on realization, so size and placement will be correct initially. svn path=/trunk/; revision=19899
* handle reverse searches (find_prev_in_range): reverse search implMike Kestner2003-02-131-4/+24
| | | | | | | | | | 2003-02-12 Mike Kestner <mkestner@ximian.com> * e-tree.c (e_tree_find_next): handle reverse searches (find_prev_in_range): reverse search impl (et_real_construct): kill warnings svn path=/trunk/; revision=19897
* work around broken models that insert children before parents. bad models.Mike Kestner2003-02-131-4/+18
| | | | | | | | | | | | | 2003-02-12 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (insert_node): work around broken models that insert children before parents. bad models. (e_tree_table_adapter_load_expanded_state): don't update_node (e_tree_table_adapter_node_set_expanded): recursively expand parent if the node is not visible yet. (e_tree_table_adapter_set_sort_info): don't resort empty trees svn path=/trunk/; revision=19894
* rewrite to use etta (find_next_in_range): helper func to search a range ofMike Kestner2003-02-111-25/+22
| | | | | | | | | | 2003-02-10 Mike Kestner <mkestner@ximian.com> * e-tree.c (e_tree_find_next): rewrite to use etta (find_next_in_range): helper func to search a range of rows (find_next_callback): kill svn path=/trunk/; revision=19875
* ignore test-completion.Chris Toshok2003-02-1011-713/+239
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2003-02-09 Chris Toshok <toshok@ximian.com> * tests/.cvsignore: ignore test-completion. * tests/test-completion.c: new program, completion test. * tests/Makefile.am (noinst_PROGRAMS): add test-completion. * gal/e-text/Makefile.am: remove e-completion-test from the build here, moving it to ../../tests. * gal/e-text/e-completion.c (e_completion_class_init): we've removed the restart, cancel, clear, and lost signals. Also, we've renamed some so it's easier to tell from the name which it is (virtual func or signal.) (e_completion_dispose): remove call to clear_search_stack, as we don't do auto-refinement anymore. (e_completion_clear): gone. (e_completion_push_search): gone. (e_completion_pop_search): gone. (e_completion_clear_search_stack): gone. (e_completion_refine_search): gone. (e_completion_unrefine_search): gone. (e_completion_begin_search): substantially clear this up, since we don't have the refinement stuff anymore. Also, the call to request_completion is a virtual function call, not a signal. (e_completion_match_count): always return matches->len here, never match_count, which is gone (with the refinement stuff) (e_completion_foreach_match): remove the hit_count stuff. (e_completion_restart): gone. (e_completion_lost_match): gone. (e_completion_end_search): remove the sorting stuff from here (and the call to restart.) the etable sorting stuff will have to take up the slack, but for now there's no reason to restart the search here. * gal/e-text/e-completion.h (struct _ECompletionClass): straighten out what's a virtual function and what's a signal, instead of using signals for both. Also, remove the auto_refine stuff, as it's not used. * gal/e-text/e-completion-view.c (e_completion_view_size_request): make the damn drop down window bigger (100 pixels, or the requisition height, whichever is bigger.) (e_completion_view_disconnect): remove handling for signals that are gone. (restart_completion_cb): gone. (cancel_completion_cb): gone. (clear_completion_cb): gone. (lost_completion_cb): gone. (e_completion_view_construct): track new names of ECompletion signals. * gal/e-text/e-completion-view.h (struct _ECompletionView): remove restart_signal_id, cancel_signal_id, clear_signal_id, and lost_signal_id. * gal/e-text/e-entry.c (get_borders): new function, ala gtkentry. (canvas_size_request): use get_borders instead of computing it here. (e_entry_init): remove duplicate assignment of emulate_label_resize. (e_entry_show_popup): remove some ifdef'ed crap. (e_entry_start_completion): don't cancel the completion before starting again. This keeps the popup from disappearing. * gal/e-text/e-completion-match.c (e_completion_match_construct): no more hit_count. * gal/e-text/e-completion-match.h (struct _ECompletionMatch): remove hit_count. * gal/e-text/e-completion-callbacks.[ch]: new class so we can use callbacks instead of subclassing. svn path=/trunk/; revision=19859
* Unmarked some strings which are unsuitable for translationKwok-Koon Cheung2003-02-091-3/+3
| | | | svn path=/trunk/; revision=19857
* replaced deprecated calls (gtk_menu_append -> gtk_menu_shell_append andRadek Doulik2003-02-071-2/+2
| | | | | | | | | | | 2003-02-07 Radek Doulik <rodo@ximian.com> * gal/widgets/e-popup-menu.c (e_popup_menu_create_with_domain): replaced deprecated calls (gtk_menu_append -> gtk_menu_shell_append and gtk_radio_menu_item_group -> gtk_radio_menu_item_get_group) svn path=/trunk/; revision=19841
* (e_auto_kill_popup_menu_on_selection_done): Rename fromEttore Perazzoli2003-02-072-25/+28
| | | | | | | | | e_auto_kill_popup_menu_on_hide(). Connect to "deactivate" instead of destroy. (e_popup_menu): Use e_auto_kill_popup_menu_on_selection_done() instead of e_auto_kill_popup_menu_on_hide(). svn path=/trunk/; revision=19833
* index bound bug (insert_children): prepend/reverse for nowMike Kestner2003-02-071-16/+27
| | | | | | | | | | | 2003-02-06 Mike Kestner <mkestner@ximian.com> * e-tree-table-adapter.c (resort_node): index bound bug (insert_children): prepend/reverse for now (generate_tree): resize old map to zero before filling it again (insert_node): fix assumption that root parent node has an index svn path=/trunk/; revision=19828
* Set response_ids on the OK/Cancel buttonsDan Winship2003-02-072-0/+7
| | | | | | | * e-timezone-dialog/e-timezone-dialog.glade: Set response_ids on the OK/Cancel buttons svn path=/trunk/; revision=19827
* use the parent path to find the parent node rather than the row, which isNot Zed2003-02-061-3/+4
| | | | | | | | | | 2003-02-06 Not Zed <NotZed@Ximian.com> * e-tree-table-adapter.c (delete_node): use the parent path to find the parent node rather than the row, which is not valid for the root node, which still needs its visible child count updated. svn path=/trunk/; revision=19797
* Remove unneeded MAP_DIR define. (gladedir): Remove. Defined inDan Winship2003-02-063-2/+9
| | | | | | | | | | * e-timezone-dialog/Makefile.am (INCLUDES): Remove unneeded MAP_DIR define. (gladedir): Remove. Defined in configure.in now. * menus/gal-view-menus.c: #include <string.h> svn path=/trunk/; revision=19773
* Define MAP_DIR in terms of $(imagesdir). (widgetsincludedir): Define inDan Winship2003-02-062-2/+7
| | | | | | | * Makefile.am (INCLUDES): Define MAP_DIR in terms of $(imagesdir). (widgetsincludedir): Define in terms of $(privincludedir) svn path=/trunk/; revision=19772
* Replace deprecated glade_gnome_init() call with glade_init().Dan Winship2003-02-062-2/+2
| | | | | | | | | | * e-table-config.c (config_class_init): Replace deprecated glade_gnome_init() call with glade_init(). * e-table-field-chooser.c (e_table_field_chooser_class_init): Likewise. svn path=/trunk/; revision=19759
* make GAL_LIBS use -lgal-2.0 remove extraneous GTK_LIBS reference update toMike Kestner2003-02-055-874/+613
| | | | | | | | | | | | | | | | | 2003-02-03 Mike Kestner <mkestner@ximian.com> * configure.in : make GAL_LIBS use -lgal-2.0 * gal/Makefile.am : remove extraneous GTK_LIBS reference * tests/test-tree-3.c : update to new etta API gal/e-table/ChangeLog 2003-02-03 Mike Kestner <mkestner@ximian.com> * e-tree-selection-model.c : remove e-tree-sorted usage * e-tree-table-adapter.* : rewrite to perform sorting * e-tree.c : remove e-tree-sorted usage svn path=/trunk/; revision=19755
* updated for e scroll frame --> gtk scrolled windowRadek Doulik2003-02-051-1/+1
| | | | svn path=/trunk/; revision=19736
* replaced e scroll frame with gtk scrolled windowRadek Doulik2003-02-055-23/+21
| | | | svn path=/trunk/; revision=19735
* Use Pango to draw. (e_calendar_item_class_init): Add font_desc andHans Petter Jansson2003-02-024-17/+106
| | | | | | | | | | | | | | | | | | | 2003-02-02 Hans Petter Jansson <hpj@ximian.com> * e-calendar-item.[ch]: Use Pango to draw. (e_calendar_item_class_init): Add font_desc and week_number_font_desc args. (e_calendar_item_get_arg): Ditto. (e_calendar_item_set_arg): Ditto. (e_calendar_item_draw_month): Use Pango. (e_calendar_item_draw_day_numbers): Ditto. * e-calendar.c: Use Pango to draw. Specify just the size of the small font to use, instead of all aspects of it. (e_calendar_init): Produce the small font description and pass it to the ECalendarItem. svn path=/trunk/; revision=19705
* Don't request combo boxes that are 0 pixels tall. (position_date_popup):Hans Petter Jansson2003-02-022-12/+29
| | | | | | | | | | | 2003-02-01 Hans Petter Jansson <hpj@ximian.com> * e-dateedit.c (create_children): Don't request combo boxes that are 0 pixels tall. (position_date_popup): Make this work when the button doesn't have its own window. svn path=/trunk/; revision=19704
* Just use gtk_widget_destroy as the G_CALLBACK function.Jeffrey Stedfast2003-02-021-14/+5
| | | | | | | | | 2003-02-01 Jeffrey Stedfast <fejj@ximian.com> * gal/widgets/e-gui-utils.c (e_auto_kill_popup_menu_on_hide): Just use gtk_widget_destroy as the G_CALLBACK function. svn path=/trunk/; revision=19703
* gtk_widget_destroy the menu rather than g_object_unref'ing it.Jeffrey Stedfast2003-02-011-1/+1
| | | | | | | | | 2003-01-31 Jeffrey Stedfast <fejj@ximian.com> * gal/widgets/e-gui-utils.c (kill_popup_menu): gtk_widget_destroy the menu rather than g_object_unref'ing it. svn path=/trunk/; revision=19696
* init the layout to NULL.Chris Toshok2003-01-272-0/+6
| | | | | | | | | 2003-01-26 Chris Toshok <toshok@ximian.com> * e-clipped-label.c (e_clipped_label_new): init the layout to NULL. svn path=/trunk/; revision=19639
* Make the label bold using the new args to e_clipped_label_new().Ettore Perazzoli2003-01-244-32/+48
| | | | | | | | | | | | | | | | | | | * e-title-bar.c (e_title_bar_construct): Make the label bold using the new args to e_clipped_label_new(). * e-clipped-label.c (build_layout): Honor ->font_size and ->layout in the newly created PangoLayout. (e_clipped_label_new): New args font_weight, font_size. (e_clipped_label_size_request): Removed unused variables. (e_clipped_label_expose): Likewise. (e_clipped_label_expose): Likewise. (e_clipped_label_set_text): Likewise. (e_clipped_label_recalc_chars_displayed): Likewise. * e-clipped-label.h (struct _EClippedLabel): Add font_size, layout members. svn path=/trunk/; revision=19591
* destroy canvas items to removing them, simply unrefing them is notLarry Ewing2003-01-241-4/+4
| | | | | | | | | | 2003-01-23 Larry Ewing <lewing@ximian.com> * e-table-click-to-add.c (e_table_click_to_add_commit): destroy canvas items to removing them, simply unrefing them is not sufficient. svn path=/trunk/; revision=19589
* (e_text_dispose): Renamed fromEttore Perazzoli2003-01-231-11/+9
| | | | | | | | e_text_destroy; chain up to ::dispose instead of ::destroy. (e_text_dispose, e_text_class_init): Override ::dispose, not ::destroy. svn path=/trunk/; revision=19577
* (e_tree_table_adapter_load_expanded_state): CallEttore Perazzoli2003-01-231-2/+0
| | | | | | | e_table_model_pre_changed() only once so we dont' get the table in a frozen state after returning from here. svn path=/trunk/; revision=19574
* (widgetsincludedir): Version using $(BASE_VERSION).Ettore Perazzoli2003-01-232-7/+10
| | | | svn path=/trunk/; revision=19568
* (gladedir): Version usingEttore Perazzoli2003-01-232-8/+14
| | | | | | | $(BASE_VERSION). (INCLUDES): Update the MAP_DIR define with versioning. svn path=/trunk/; revision=19567
* reverse part of the patch from 1/15.Chris Toshok2003-01-181-1/+1
| | | | | | | | | 2003-01-17 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (show_pango_rectangle): reverse part of the patch from 1/15. svn path=/trunk/; revision=19510
* pass pango_context_get_language to pango_context_get_metrics.Chris Toshok2003-01-181-1/+2
| | | | | | | | | 2003-01-17 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): pass pango_context_get_language to pango_context_get_metrics. svn path=/trunk/; revision=19507
* Fix destroy.Ettore Perazzoli2003-01-181-2/+1
| | | | svn path=/trunk/; revision=19505
* (e_notice): Use gtk_dialog_run()Ettore Perazzoli2003-01-181-1/+2
| | | | | | | instead of gtk_widget_show() so we return only after the user acknowledges the error. svn path=/trunk/; revision=19504
* apply the patch NotZed and I came up with to fix the height of theChris Toshok2003-01-161-5/+6
| | | | | | | | | | 2003-01-15 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c (show_pango_rectangle): apply the patch NotZed and I came up with to fix the height of the evolution composer entries. svn path=/trunk/; revision=19486
* Same here.Jeffrey Stedfast2003-01-163-3/+3
| | | | | | | | | | | | | | | | | 2003-01-15 Jeffrey Stedfast <fejj@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_save_expanded_state): Same here. * e-table-state.c (e_table_state_save_to_file): Same as below. * e-table-specification.c (e_table_specification_save_to_file): Back to using e_xml_save_file(). Not sure we can really trust xmlSaveFile (sure as hell couldn't in the libxml-1.x days), besides, e_xml_save_file protects against corruption due to not enough disk space. svn path=/trunk/; revision=19481
* Here too.Jeffrey Stedfast2003-01-162-2/+2
| | | | | | | | | | | 2003-01-15 Jeffrey Stedfast <fejj@ximian.com> * gal-view-instance.c (save_current_view): Here too. * gal-view-collection.c (gal_view_collection_save): Use e_xml_save_file(). svn path=/trunk/; revision=19479
* add call to e_table_model_pre_change here to reduce spew.Chris Toshok2003-01-161-0/+7
| | | | | | | | | | | | | | 2003-01-15 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-view.c (begin_completion_cb): add call to e_table_model_pre_change here to reduce spew. (cancel_completion_cb): same. (completion_cb): same. (end_completion_cb): same. (clear_completion_cb): same. (lost_completion_cb): same. svn path=/trunk/; revision=19478
* use PangoFontMetrics here instead of using the ascent/descent of theChris Toshok2003-01-151-2/+11
| | | | | | | | | 2003-01-14 Chris Toshok <toshok@ximian.com> * gal/e-text/e-entry.c (canvas_size_request): use PangoFontMetrics here instead of using the ascent/descent of the GtkStyle's font. svn path=/trunk/; revision=19468
* If we set a clip rectangle, clear it after we've finished.Not Zed2003-01-151-1/+6
| | | | | | | | | 2003-01-15 Not Zed <NotZed@Ximian.com> * e-cell-tree.c (ect_draw): If we set a clip rectangle, clear it after we've finished. svn path=/trunk/; revision=19467
* (init): Change dialog fromEttore Perazzoli2003-01-152-1/+6
| | | | | | OK/Apply/Cancel to Apply/Close/OK to be closer to the HIG. svn path=/trunk/; revision=19466
* Do not #include <e-bonobo-widget.h>. (e_set_dialog_parent): Remove theEttore Perazzoli2003-01-152-2/+6
| | | | | | | | | | | | | | * e-dialog-utils.c: Do not #include <e-bonobo-widget.h>. (e_set_dialog_parent): Remove the BonoboWidget handling stuff (it doesn't really work anyways). * e-shell-view.c: Do not #include "e-bonobo-widget.h". * Makefile.am (widgetsinclude_HEADERS): Ooops, remove e-bonobo-widget.h. (libemiscwidgets_a_SOURCES): Likewise, remove e-bonobo-widget.c. svn path=/trunk/; revision=19460
* (EXTRA_DIST): e-util-marshal.list, notEttore Perazzoli2003-01-152-34/+38
| | | | | | | | e-book-marshal.list. (widgetsinclude_HEADERS): Add e-bonobo-widget.h. (libemiscwidgets_a_SOURCES): Add e-bonobo-widget.c. svn path=/trunk/; revision=19457
* (EXTRA_DIST): e-util-marshal.list, notEttore Perazzoli2003-01-152-1/+6
| | | | | | e-book-marshal.list. svn path=/trunk/; revision=19443
* revert broken fixMike Kestner2003-01-111-1/+1
| | | | | | | | 2002-01-10 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): revert broken fix svn path=/trunk/; revision=19413
* Images are now in $(datadir)/evolution/imagesEttore Perazzoli2003-01-093-2/+7
| | | | | | instead of $(datadir)/images/evolution. svn path=/trunk/; revision=19294
* Images are now in $(datadir)/evolution/images instead ofEttore Perazzoli2003-01-092-1/+7
| | | | | | | | Images are now in $(datadir)/evolution/images instead of $(datadir)/images/evolution. svn path=/trunk/; revision=19293
* free the children before we free and dispose of our ecol, sinceChris Toshok2002-12-191-3/+3
| | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * e-table-group-container.c (etgc_dispose): free the children before we free and dispose of our ecol, since e_table_group_container_child_node_free depends on it. Fixes a crash. svn path=/trunk/; revision=19166
* pass NULL for parent_window for e_table_config_new.Chris Toshok2002-12-195-1861/+2199
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * e-table-header-item.c (ethi_popup_customize_view): pass NULL for parent_window for e_table_config_new. * e-table-config.glade, e-table-config-no-group.glade: switch from GnomePropertyBox to GtkDialog, remove the extra notebook widget from the heirarchy, and set all the subdialogs modal. * e-table-config.h: add parent_window arg to e_table_config_{new,construct}. * e-table-config.c (config_dialog_changed): new function, not really needed yet since the apply/ok buttons are never insensitive. (config_get_property): handle the "state" read-only property. (config_class_init): put back in the "state" property that was deleted during the merge from the gal-2 branch (it looks like). (do_sort_and_group_config_dialog): set the sort/group dialog transient for the e-table-config dialog, and gnome_property_box_changed -> config_dialog_changed. (do_fields_config_dialog): same, but with the fields dialog. (dialog_response): response handler for the e-table-config dialog. (setup_gui): remote the hide button/notebook code, since neither of those widgets exist anymore in this dialog, and remove the "apply" signal and connect to "response", since we're a GtkDialog dialog instead of a GnomePropertyBox. (e_table_config_construct): take a parent_window arg, and set_transient_for if it's non-NULL. (e_table_config_new): take parent_window arg and pass to construct. svn path=/trunk/; revision=19165
* add the parent arg.Chris Toshok2002-12-195-10/+18
| | | | | | | | | | | | | | | | | | | | 2002-12-18 Chris Toshok <toshok@ximian.com> * gal-view.[ch] (gal_view_edit): add the parent arg. * gal-view-new-dialog.c (gal_view_new_dialog_init): set the dialog modal. * gal-view-etable.c (gal_view_etable_edit): take the parent arg and pass it to e_table_config_new. * gal-define-views-dialog.c (gdvd_button_new_dialog_callback): pass the dialog as the parent to gal_view_edit. (gdvd_button_modify_callback): same. (gdvd_button_new_callback): set view_new_dialog transient for dialog. svn path=/trunk/; revision=19164
* edit->tep isn't a GtkObject anymore.Chris Toshok2002-12-171-2/+0
| | | | | | | | 2002-12-16 Chris Toshok <toshok@ximian.com> * e-cell-text.c (_get_tep): edit->tep isn't a GtkObject anymore. svn path=/trunk/; revision=19144
* pass in the pango layout so we don't have to create another one here.Chris Toshok2002-12-171-90/+46
| | | | | | | | | | | | | | | | 2002-12-16 Chris Toshok <toshok@ximian.com> * e-table-header-utils.c (e_table_draw_elided_string): pass in the pango layout so we don't have to create another one here. Also, elide the string properly (same method that e-clipped-label uses) and simplify the extent operations. (e_table_header_compute_height): just use pango_layout_get_pixel_size here. (e_table_header_draw_button): make sure the clip rectangle is NULL'ed on our gc, since random gtk calls seem to install one, which sucks. Also, simplify the pango layout stuff a little. svn path=/trunk/; revision=19142
* remove obvious double g_strdup.Chris Toshok2002-12-173-3/+3
| | | | | | | | | | | | | | 2002-12-16 Chris Toshok <toshok@ximian.com> * e-table.c (et_real_construct): remove obvious double g_strdup. * e-table-header-item.c (ethi_header_context_menu): ref/sink the popup. * e-table-field-chooser.c (e_table_field_chooser_init): use gtk_widget_show_all so our custom widget gets displayed. svn path=/trunk/; revision=19135
* valgrindageMike Kestner2002-12-141-1/+1
| | | | | | | | 2002-12-13 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_table_model_rows_deleted): valgrindage svn path=/trunk/; revision=19119
* protect against null instance_id's (bug#35540)Mike Kestner2002-12-141-1/+5
| | | | | | | | | 2002-12-13 Mike Kestner <mkestner@ximian.com> * gal-view-instance.c (gal_view_instance_construct): protect against null instance_id's (bug#35540) svn path=/trunk/; revision=19118
* check for null or blank view namesGilbert Fang2002-12-111-5/+9
| | | | | | | | | 2002-12-10 Gilbert Fang <gilbert.fang@sun.com> * gal-define-views-dialog.c (gdvd_button_new_dialog_callback): check for null or blank view names svn path=/trunk/; revision=19096
* Removed the g_assert_not_reached(). If you hit the close button on yourNot Zed2002-12-102-2/+7
| | | | | | | | | | 2002-12-10 Not Zed <NotZed@Ximian.com> * e-multi-config-dialog.c (impl_response): Removed the g_assert_not_reached(). If you hit the close button on your window it would abort, treat same as close. svn path=/trunk/; revision=19083
* rework this to be faster and deal more correctly with the ellipsis.Chris Toshok2002-12-103-70/+105
| | | | | | | | | 2002-12-09 Chris Toshok <toshok@ximian.com> * e-clipped-label.[ch]: rework this to be faster and deal more correctly with the ellipsis. svn path=/trunk/; revision=19076
* lots of stuff, add 2 e-text widgets, 1 readonly, the other writable (thatChris Toshok2002-12-095-530/+91
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-12-08 Chris Toshok <toshok@ximian.com> * tests/test-text.c: lots of stuff, add 2 e-text widgets, 1 readonly, the other writable (that uses the uri model..) * gal/e-text/e-text.[ch]: lots of pango changes. we don't do *anything* with gdk/e fonts now. everything is pango. There are still some issues while editting but display should more or less work properly now, and without all the performance problems. * gal/e-text/e-completion-view.c (e_completion_view_expose_event): use gtk_widget_send_expose instead of gtk_widget_event so we don't get the annoying gtk warning. * gal/e-text/e-entry.c (e_entry_dispose): make sure both the gdk and gtk grabs are removed. (e_entry_class_init): fill_color_gdk is a boxed type, not pointer. * gal/e-text/e-text-model-uri.h (E_TYPE_TEXT_MODEL_URI): oops, this should be e_text_model_uri_get_type, not e_text_model_get_type. svn path=/trunk/; revision=19054
* Add a "collate" sort callback that uses the new g_collate_compare().Jeffrey Stedfast2002-12-061-0/+1
| | | | | | | | | | | | | | | | 2002-12-05 Jeffrey Stedfast <fejj@ximian.com> * e-table-extras.c (ete_init): Add a "collate" sort callback that uses the new g_collate_compare(). 2002-12-05 Jeffrey Stedfast <fejj@ximian.com> * gal/util/e-util.c (g_str_compare): Revert back to using just strcmp - this fixes bug #33933 but reopens bug #26355. (g_collate_compare): New function meant to address the sorting required by bug #26335. svn path=/trunk/; revision=19014
* guard against multiple calls.Chris Toshok2002-12-051-4/+4
| | | | | | | | | 2002-12-04 Chris Toshok <toshok@ximian.com> * gal/widgets/e-canvas-background.c (ecb_dispose): guard against multiple calls. svn path=/trunk/; revision=19009
* Don't leak old sort info.Hans Petter Jansson2002-12-042-0/+7
| | | | | | | | | | | | | 2002-12-03 Hans Petter Jansson <hpj@ximian.com> * e-table.c (e_table_get_state_object): Don't leak old sort info. 2002-12-03 Hans Petter Jansson <hpj@ximian.com> * gal/widgets/e-canvas-background.c (ecb_destroy): Don't leak private structure. svn path=/trunk/; revision=18999
* dispose can be run multiple times too ... bloody gobject crap.Not Zed2002-12-032-2/+11
| | | | | | | | | 2002-12-03 Not Zed <NotZed@Ximian.com> * e-search-bar.c (impl_dispose): dispose can be run multiple times too ... bloody gobject crap. svn path=/trunk/; revision=18992
* make this a dispose rather than finalise. Crashes on finalise otherwise.Not Zed2002-12-031-3/+3
| | | | | | | | | 2002-12-03 Not Zed <NotZed@Ximian.com> * e-tree-memory.c (etmm_dispose): make this a dispose rather than finalise. Crashes on finalise otherwise. svn path=/trunk/; revision=18990
* RevertedRodrigo Moya2002-12-022-5/+0
| | | | svn path=/trunk/; revision=18983
* Included gtkmessagedialog.h.Rodrigo Moya2002-12-022-0/+5
| | | | | | | | 2002-12-02 Rodrigo Moya <rodrigo@ximian.com> * e-cahrset-picker.c: Included gtkmessagedialog.h. svn path=/trunk/; revision=18981
* Add include of gnome-dialog.hNot Zed2002-12-022-25/+10
| | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * e-charset-picker.c: Add include of gnome-dialog.h * *.[ch]: ran fix.sh script over everything. svn path=/trunk/; revision=18979
* Add include of gnome-dialog.hNot Zed2002-12-0239-217/+226
| | | | | | | | | | 2002-11-27 Not Zed <NotZed@Ximian.com> * e-charset-picker.c: Add include of gnome-dialog.h * *.[ch]: ran fix.sh script over everything. svn path=/trunk/; revision=18978
* rework this from the gal-2 branch, clahey's patch, and the stuff i'd doneChris Toshok2002-11-301-107/+107
| | | | | | | | | | 2002-11-29 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.c: rework this from the gal-2 branch, clahey's patch, and the stuff i'd done since. it's working *MUCH* better now. svn path=/trunk/; revision=18957
* (etms_finalize): CallEttore Perazzoli2002-11-271-1/+26
| | | | | | e_table_memory_store_clear(). svn path=/trunk/; revision=18937
* Dont grab_add anymore on the button, gtk_button is changed in gtk2 not toNot Zed2002-11-262-1/+6
| | | | | | | | | | 2002-11-26 Not Zed <NotZed@Ximian.com> * e-combo-button.c (impl_button_press_event): Dont grab_add anymore on the button, gtk_button is changed in gtk2 not to do this anymore. svn path=/trunk/; revision=18921
* commit clahey's original pango work.Chris Toshok2002-11-202-916/+392
| | | | | | | | 2002-11-19 Chris Toshok <toshok@ximian.com> * gal/e-text/e-text.[ch]: commit clahey's original pango work. svn path=/trunk/; revision=18850
* column_width = double. (e_reflow_realize): no need to cast to double,Chris Toshok2002-11-191-4/+4
| | | | | | | | | | | 2002-11-18 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (e_reflow_set_property): column_width = double. (e_reflow_realize): no need to cast to double, column_width is already a double. svn path=/trunk/; revision=18833
* take GCallback, not GtkSignalFunc. (configure_sort_dialog): show theChris Toshok2002-11-192-214/+19
| | | | | | | | | | | | | | | | | | 2002-11-18 Chris Toshok <toshok@ximian.com> * e-table-config.c (connect_button): take GCallback, not GtkSignalFunc. (configure_sort_dialog): show the custom widget. (configure_group_dialog): same. (configure_fields_dialog): same, also pass G_CALLBACK (func), instead of GTK_SIGNAL_FUNC (func), to connect_button. (setup_gui): pass G_CALLBACK (func), instead of GTK_SIGNAL_FUNC (func), to connect_button. * Makefile.am (glade_DATA): remove e-table-group.glade, since we don't use it anyplace. svn path=/trunk/; revision=18832
* we need to destroy the dialog after we've run it, because run doesn't doNot Zed2002-11-181-0/+1
| | | | | | | | | | 2002-11-18 Not Zed <NotZed@Ximian.com> * gal/widgets/e-gui-utils.c (e_notice): we need to destroy the dialog after we've run it, because run doesn't do it for us like gnome-dialog did. svn path=/trunk/; revision=18816
* convert this to wrap around GtkMessageDialog.Chris Toshok2002-11-171-6/+24
| | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/widgets/e-gui-utils.c (e_notice): convert this to wrap around GtkMessageDialog. * gal/widgets/e-categories-master-list-dialog.c (dialog_response): gnome_dialog_close -> gtk_widget_destroy. svn path=/trunk/; revision=18814
* convert some GnomeDialog stuff to GtkDialog.Chris Toshok2002-11-173-13/+11
| | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal-view-instance.c: convert some GnomeDialog stuff to GtkDialog. * gal-view-instance-save-as-dialog.c: remove GnomeDialog references. * gal-view-new-dialog.c: same. svn path=/trunk/; revision=18813
* fix c&p typo.Chris Toshok2002-11-175-223/+185
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo. * gal/widgets/e-categories-master-list-dialog.c: switch to GtkDialogism's. * gal/widgets/gal-categories.[ch]: same. * gal/widgets/e-categories-master-list-dialog.glade: libglade-convert. * gal/widgets/e-categories.glade: same. * gal/util/e-text-event-processor.[ch]: subclass this from GObject. * gal/util/e-text-event-processor-emacs-like.[ch]: clean up the gtk cruft a bit. * gal/e-text/e-text.c (_get_tep): remove the _sink call. (e_text_init): same. * gal/e-text/e-text-model.[ch]: subclass this from GObject instead of GtkObject. svn path=/trunk/; revision=18808
* check for table->table_canvas == NULL.Chris Toshok2002-11-172-15/+19
| | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * e-table.c (set_scroll_adjustments): check for table->table_canvas == NULL. * e-table-item.c (eti_dispose): guard eti->tooltip. svn path=/trunk/; revision=18807
* fix c&p typo.Chris Toshok2002-11-171-1/+1
| | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (e_reflow_class_init): fix c&p typo. svn path=/trunk/; revision=18806
* GObject port work.Chris Toshok2002-11-1769-4140/+4783
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * e-cell-checkbox.[ch]: GObject port work. * e-cell-combo.[ch]: same. * e-cell-date.[ch]: same. * e-cell-float.[ch]: same. * e-cell-number.[ch]: same. * e-cell-pixbuf.[ch]: same. * e-cell-popup.[ch]: same. * e-cell-progress.[ch]: same. * e-cell-size.[ch]: same. * e-cell-spin-button.[ch]: same. * e-cell-text.[ch]: same. * e-cell-toggle.[ch]: same. * e-cell-tree.[ch]: same. * e-cell-vbox.[ch]: same. * e-cell.[ch]: same. * e-table-col.c: same. * e-table-column.c: same. * e-table-config-field.[ch]: same. * e-table-config.c: same. * e-table-config.glade: same. * e-table-field-chooser-dialog.[ch]: same. * e-table-field-chooser-item.[ch]: same. * e-table-field-chooser.[ch]: same. * e-table-group-container.[ch]: same. * e-table-group-leaf.[ch]: same. * e-table-group.[ch]: same. * e-table-header-item.[ch]: same. * e-table-header-utils.[ch]: same. * e-table-header.c: same. * e-table-item.[ch]: same. * e-table-scrolled.[ch]: same. * e-table-utils.c: same. * e-table.[ch]: same. * e-tree-memory-callbacks.h: same. * e-tree-scrolled.[ch]: same. * e-tree-sorted-variable.c: same. * e-tree.[ch]: same. * test-check.c: same. * test-cols.c: same. * test-table.c: same. svn path=/trunk/; revision=18801
* Lots of GObject work.Chris Toshok2002-11-1717-1249/+1404
| | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-test.c: Lots of GObject work. * gal/e-text/e-completion-view.[ch]: same. * gal/e-text/e-completion.[ch]: same. * gal/e-text/e-entry.[ch]: same. * gal/e-text/e-table-text-model.[ch]: same. * gal/e-text/e-text-model-uri.[ch]: same. * gal/e-text/e-text-model.[ch]: same. * gal/e-text/e-text-test.c: same. * gal/e-text/e-text.[ch]: same. svn path=/trunk/; revision=18800
* GtkObject->Gobject and GnomeDialog->GtkDialog work.Chris Toshok2002-11-174-208/+252
| | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal-view-instance-save-as-dialog.c: GtkObject->Gobject and GnomeDialog->GtkDialog work. * gal-view-new-dialog.[ch]: same. * gal-view-new-dialog.dialog: same. svn path=/trunk/; revision=18799
* lots of GObject work.Chris Toshok2002-11-1712-486/+508
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-16 Chris Toshok <toshok@ximian.com> * gal/widgets/color-group.c: lots of GObject work. * gal/widgets/color-palette.[ch]: same. * gal/widgets/e-canvas-backgruond.[ch]: same. * gal/widgets/e-canvas-vbox.[ch]: same. * gal/widgets/e-canvas.[ch]: same. * e-categories-master-list-array.[ch]: same. * e-categories-master-list-combo.[ch]: same. * e-categories-master-list-dialog-model.[ch]: same. * e-categories-master-list-dialog.[ch]: same. * e-categories-master-list-option-menu.[ch]: same. * e-categories-master-list.[ch]: same. * e-categories.[ch]: same. * e-file-selection.[ch]: same. * e-gui-utils.c: same. * e-hscrollbar.[ch]: same. * e-option-menu.[ch]: same. * e-popup-menu.[ch]: same. * e-printable.[ch]: same. * e-reflow-sorted.[ch]: same. * e-reflow.[ch]: same. * e-scroll-frame.[ch]: same. * e-vscrollbar.[ch]: same. * gtk-combo-box.[ch]: same. * gtk-combo-stack.[ch]: same. * gtk-combo-text.[ch]: same. * test-e-font.c: same. * widget-color-combo.[ch]: same. * widget-pixmap-combo.[ch]: same. svn path=/trunk/; revision=18798
* new function, build pango layout for string.Chris Toshok2002-11-163-53/+84
| | | | | | | | | | | | | 2002-11-15 Chris Toshok <toshok@ximian.com> * e-clipped-label.c (build_layout): new function, build pango layout for string. (e_clipped_label_size_request): pango-ize this, make the size requested dependent on the label. (e_clipped_label_expose): pango-ize this. (e_clipped_label_recalc_chars_displayed): pango-ize this. svn path=/trunk/; revision=18784
* (esma_dispose): g_object_unref() instead of gtk_object_unref().Ettore Perazzoli2002-11-161-1/+1
| | | | | | | (esma_dispose): g_object_unref() instead of gtk_object_unref(). svn path=/trunk/; revision=18779
* fix typo.Chris Toshok2002-11-151-2/+2
| | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * e-table-header-item.c (ethi_popup_customize_view): fix typo. svn path=/trunk/; revision=18777
* ETableConfig derives from GObject (fix warnings).Chris Toshok2002-11-154-70/+82
| | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * e-table-header-item.c (ethi_popup_customize_view): ETableConfig derives from GObject (fix warnings). * e-table.c: deal with ESorter deriving from GObject. * e-table-sorter.[ch]: this derives from GObject now. svn path=/trunk/; revision=18775
* deal with EBitArray/ESorter being a GObject now.Chris Toshok2002-11-152-2/+2
| | | | | | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * gal/widgets/e-selection-model-array.c: deal with EBitArray/ESorter being a GObject now. * gal/widgets/e-selection-model-simple.c: same. * gal/util/e-bit-array.[ch]: this derives from GObject now. * gal/util/e-sorter.[ch]: same. * gal/util/e-sorter-array.[ch]: same. svn path=/trunk/; revision=18774
* deal with ESelectionModel no longer deriving from GtkObject.Chris Toshok2002-11-1510-359/+394
| | | | | | | | | | | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * e-table-item.c: deal with ESelectionModel no longer deriving from GtkObject. * e-table.c: same. * e-tree.c: same. * e-table-config.c (do_fields_config_dialog): use GtkDialog's reponse instead of GnomeDialog's button. * e-table-click-to-add.[ch]: GObjectify this. * e-table-selection-model.[ch]: this derives from GObject now. * e-tree-selection-model.[ch]: same. svn path=/trunk/; revision=18773
* this derives from GObject now.Chris Toshok2002-11-159-296/+312
| | | | | | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * gal/widgets/e-selection-model.[ch]: this derives from GObject now. * gal/widgets/e-selection-model-simple.[ch]: same. * gal/widgets/e-selection-model-array.[ch]: same. * gal/widgets/e-reflow-model.[ch]: same. * gal/widgets/e-reflow.c: fix all references to EReflowModel such that it's a GObject, not a GtkObject. svn path=/trunk/; revision=18772
* use GtkDialog's ::response instead of GnomeDialog's ::clicked.Chris Toshok2002-11-152-5/+12
| | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * menus/gal-view-menus.c (define_views): use GtkDialog's ::response instead of GnomeDialog's ::clicked. (dialog_response): use response id's. (gvm_finalize): fix warning. svn path=/trunk/; revision=18768
* hrm, we shouldn't need to do this, but gtk_widget_show_all the customChris Toshok2002-11-151-0/+1
| | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * gal-define-views-dialog.c (gal_define_views_dialog_init): hrm, we shouldn't need to do this, but gtk_widget_show_all the custom widget so it actually shows up. svn path=/trunk/; revision=18767
* this subclasses from GObject now, not GtkObject. don't use GtkObjectChris Toshok2002-11-156-3922/+3925
| | | | | | | | | | | | | | | | | | 2002-11-14 Chris Toshok <toshok@ximian.com> * e-table-without.[ch]: this subclasses from GObject now, not GtkObject. don't use GtkObject (especially casts to it) inside the code. * e-table-config-no-group.glade: libglade-convert. * e-table-config.glade: same. * e-table-field-chooser.glade: same. * e-table-group.glade: same. svn path=/trunk/; revision=18766
* New. (e_clipped_label_destroy): Removed.Ettore Perazzoli2002-11-153-13/+22
| | | | | | | | | | | | * e-clipped-label.c (e_clipped_label_finalize): New. (e_clipped_label_destroy): Removed. * e-title-bar.c (destroy): Removed. (impl_finalize): New. (class_init): Install GObject::finalize handler instead of GtkObject::destroy handler. svn path=/trunk/; revision=18761
* Changed to use g_object_*() and g_signal_*()Ettore Perazzoli2002-11-152-47/+70
| | | | | | | | | | functions instead of gtk_object_*() and gtk_signal_*(). (destroy): Removed. (dispose): New. (class_init): Install GObject::dispose handler instead of GtkObject::destroy handler. svn path=/trunk/; revision=18753
* add more marshallers for e-table.Chris Toshok2002-11-141-160/+177
| | | | | | | | 2002-11-13 Chris Toshok <toshok@ximian.com> * gal/util/e-marshal.list: add more marshallers for e-table. svn path=/trunk/; revision=18750
* more porting work.Chris Toshok2002-11-1414-1098/+971
| | | | | | | | | | | | | | | | | | | | | | | | | | 2002-11-13 Chris Toshok <toshok@ximian.com> * gal-define-views-dialog.[ch]: more porting work. * gal-define-views-model.[ch]: same. * gal-view-etable.c: same. * gal-view-factory-etable.c: same. * gal-view-instance-save-as-dialog.[ch]: same. * gal-view-instance.c: same. * gal-view-new-dialog.[ch]: same. * gal-define-views.glade: convert to glade2. * gal-view-instance-save-as-dialog.glade: same. * gal-view-new-dialog.glade: same. svn path=/trunk/; revision=18749
* menus/gal-view-menus.h GObjectified.Ettore Perazzoli2002-11-145-98/+98
| | | | | | | | | | * menus/gal-view-menus.h * menus/gal-view-menus.c: GObjectified. * e-timezone-dialog/e-timezone-dialog.h * e-timezone-dialog/e-timezone-dialog.c: GObjectified. svn path=/trunk/; revision=18747
* start porting to GObject.Chris Toshok2002-11-1412-375/+235
| | | | | | | | | | | | | | | | | | | | 2002-11-13 Chris Toshok <toshok@ximian.com> * gal-view-collection.[ch]: start porting to GObject. * gal-view-etable.[ch]: same. * gal-view-factory-etable.[ch]: same. * gal-view-factory.[ch]: same. * gal-view-factory.[ch]: same. * gal-view-instance.[ch]: same. * gal-view.[ch]: same. svn path=/trunk/; revision=18745
* Converted to Glade 2.Ettore Perazzoli2002-11-142-244/+263
| | | | svn path=/trunk/; revision=18740
* gnome-xml->libxmlNot Zed2002-11-133-3/+9
| | | | | | | | | | 2002-11-13 Not Zed <NotZed@Ximian.com> * menus/gal-view-menus.c: gnome-xml->libxml * menus/gal-view-menus.h: gnome-xml->libxml svn path=/trunk/; revision=18734
* only clear choices if cv->choices != NULL. (e_completion_view_disconnect):Chris Toshok2002-11-121-3/+6
| | | | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * gal/e-text/e-completion-view.c (e_completion_view_destroy): only clear choices if cv->choices != NULL. (e_completion_view_disconnect): zero out cancel_signal_id. svn path=/trunk/; revision=18718
* port to GObject.Chris Toshok2002-11-123-101/+106
| | | | | | | | 2002-11-11 Chris Toshok <toshok@ximian.com> * e-dateedit.[ch]: port to GObject. svn path=/trunk/; revision=18717
* (init): Use GObject functions instead ofEttore Perazzoli2002-11-122-16/+18
| | | | | | GtkObject throughout. svn path=/trunk/; revision=18706
* Replace gtk_object_(un)?ref() with g_object_(un)?ref(). Likewise.Ettore Perazzoli2002-11-126-20/+20
| | | | | | | | | | | | | | | | | | | | | * gal/widgets/color-palette.c: Replace gtk_object_(un)?ref() with g_object_(un)?ref(). * gal/widgets/e-canvas-utils.c: Likewise. * gal/widgets/e-canvas.c: Likewise. * gal/widgets/e-categories-master-list-combo.c: Likewise. * gal/widgets/e-categories-master-list-dialog-model.c: Likewise. * gal/widgets/e-categories-master-list-dialog.c: Likewise. * gal/widgets/e-categories-master-list-option-menu.c: Likewise. * gal/widgets/e-categories.c: Likewise. * gal/widgets/e-gui-utils.c: Likewise. * gal/widgets/e-popup-menu.c: Likewise. * gal/widgets/e-reflow-sorted.c: Likewise. * gal/widgets/e-reflow.c: Likewise. * gal/widgets/e-selection-model.c: Likewise. * gal/widgets/gtk-combo-box.c: Likewise. * gal/widgets/widget-pixmap-combo.c: Likewise. svn path=/trunk/; revision=18705
* Forgot two more gtk_object_(un)?ref()s.Ettore Perazzoli2002-11-122-4/+4
| | | | svn path=/trunk/; revision=18703
* Replace gtk_object_(un)?ref() with g_object_(un)?ref(). Likewise.Ettore Perazzoli2002-11-1212-67/+67
| | | | | | | | | | | | | | | | | | * gal/e-table/e-cell-popup.c: Replace gtk_object_(un)?ref() with g_object_(un)?ref(). * gal/e-table/e-cell-text.c: Likewise. * gal/e-table/e-cell-tree.c: Likewise. * gal/e-table/e-cell-vbox.c: Likewise. * gal/e-table/e-table-click-to-add.c: Likewise. * gal/e-table/e-table-config-field.c: Likewise. * gal/e-table/e-table-field-chooser-dialog.c: Likewise. * gal/e-table/e-table-field-chooser-item.c: Likewise. * gal/e-table/e-table-field-chooser.c: Likewise. * gal/e-table/e-table-group-container.c: Likewise. * gal/e-table/e-table-item.c: Likewise. * gal/e-table/e-table-without.c: Likewise. svn path=/trunk/; revision=18702
* Removed. (impl_finalize): New. (class_init): Override GObject::finalize,Ettore Perazzoli2002-11-124-43/+56
| | | | | | | | | | | | | | | * e-multi-config-dialog.c (impl_destroy): Removed. (impl_finalize): New. (class_init): Override GObject::finalize, not GtkObject::destroy. * e-config-page.c (impl_destroy): Removed. (impl_finalize): New. (class_init): Override GObject::finalize, not GtkObject::destroy. * e-multi-config-dialog.c: Converted to a GtkDialog subclass [instead of GnomeDialog]. svn path=/trunk/; revision=18696
* correct the GET_CLASS macro.Chris Toshok2002-11-096-6/+6
| | | | | | | | | | | | | | | | | | 2002-11-08 Chris Toshok <toshok@ximian.com> * e-table-memory-store.h: correct the GET_CLASS macro. * e-table-one.h: same. * e-table-sorted.h: same. * e-table-subset.h: same. * e-tree-sorted-variable.h: same. * e-tree-table-adapter.h: same. svn path=/trunk/; revision=18680
* include gnome-dialogJP Rosevear2002-11-082-0/+5
| | | | | | | | 2002-11-07 JP Rosevear <jpr@ximian.com> * e-filter-bar.c: include gnome-dialog svn path=/trunk/; revision=18649
* ignore the generated marshal source.Chris Toshok2002-11-076-132/+182
| | | | | | | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * .cvsignore: ignore the generated marshal source. * Makefile.am: add marshal stuff. * e-util-marshal.list: marshaller list. * e-search-bar.[ch]: gobjectify this. svn path=/trunk/; revision=18627
* remove duplicate g_signal_new for column_width_changed.Chris Toshok2002-11-071-8/+0
| | | | | | | | | 2002-11-06 Chris Toshok <toshok@ximian.com> * gal/widgets/e-reflow.c (e_reflow_class_init): remove duplicate g_signal_new for column_width_changed. svn path=/trunk/; revision=18621
* GObjectify GObjectifyMike Kestner2002-11-064-63/+55
| | | | | | | | | 2002-11-05 Mike Kestner <mkestner@ximian.com> * e-table-sorted-variable.[ch] : GObjectify * e-tree-sorted-variable.[ch] : GObjectify svn path=/trunk/; revision=18573
* remove ref/unref G_OBJECT masks ditto ditto ditto ditto ditto ditto dittoMike Kestner2002-11-069-63/+63
| | | | | | | | | | | | | | | | 2002-11-05 Mike Kestner <mkestner@ximian.com> * e-cell-text.c : remove ref/unref G_OBJECT masks * e-table-extras.c : ditto * e-table-header-item.c : ditto * e-table-item.c : ditto * e-table-memory-store.c : ditto * e-table-one.c : ditto * e-tree-sorted.c : ditto * e-tree-table-adapter.c : ditto * e-tree.c : ditto svn path=/trunk/; revision=18572
* GObjectify GObjectify GObjectify use GObject api for models use GObjectMike Kestner2002-11-0624-767/+563
| | | | | | | | | | | | | | | | | | | | | | | 2002-11-05 Mike Kestner <mkestner@ximian.com> * e-table-col.[ch] : GObjectify * e-table-column-specification.[ch] : GObjectify * e-table-config.[ch] : GObjectify * e-table-group-leaf.c : use GObject api for models * e-table-group.c : use GObject api for models * e-table-header-item.c : use GObject api for models * e-table-header.c : use GObject api for models * e-table-selection-model.c : use GObject api for models * e-table-sort-info.[ch] : GObjectify * e-table-sorted.[ch] : GObjectify * e-table-sorter.c : use GObject api for models * e-table-specification.c : use GObject api for models * e-table-state.[ch] : GObjectify * e-table-subset-variable.[ch] : GObjectify * e-table-subset.[ch] : GObjectify * e-table.c : use GObject api for models svn path=/trunk/; revision=18571
* use GObject api for models GObjectify GObjectify GObjectify GObjectifyMike Kestner2002-11-0526-867/+623
| | | | | | | | | | | | | | | | | | | | | 2002-11-05 Mike Kestner <mkestner@ximian.com> * e-table-item.c : use GObject api for models * e-table-memory-callbacks.[ch] : GObjectify * e-table-memory-store.[ch] : GObjectify * e-table-memory.[ch] : GObjectify * e-table-model.[ch] : GObjectify * e-table-one.[ch] : GObjectify * e-table-simple.[ch] : GObjectify * e-tree-memory.[ch] : GObjectify * e-tree-model.[ch] : GObjectify * e-tree-selection-model.c : use GObject api for models * e-tree-simple.[ch] : GObjectify * e-tree-sorted.[ch] : GObjectify * e-tree-table-adapter.[ch] : GObjectify * e-tree.c : use GObject api for models svn path=/trunk/; revision=18553
* use GObject api for ETableHeader use GObject api on ETableHeaderMike Kestner2002-11-0515-327/+297
| | | | | | | | | | | | | | | | | | 2002-11-04 Mike Kestner <mkestner@ximian.com> * e-table-group.c : use GObject api for ETableHeader * e-table-header-item.c : use GObject api on ETableHeader * e-table-header.[ch] : GObjectify * e-table-item.c : use GObject api on ETableHeader * e-table-search.[ch] : GObjectify * e-table-sorted.c : use GObject api for ETableHeader * e-table-sorter.c : use GObject api for ETableHeader * e-table-specification.[ch] : GObjectify * e-table-utils.c : use GObject api for ETableHeader * e-tree-sorted.c : use GObject api for ETableHeader * e-tree.c : use GObject api on Header, Spec, and Search svn path=/trunk/; revision=18531
* (impl_expose_event): UseEttore Perazzoli2002-11-042-1/+6
| | | | | | gtk_container_propagate_expose(). svn path=/trunk/; revision=18526
* (e_timezone_dialog_get_builtin_timezone): Constify argEttore Perazzoli2002-11-043-2/+8
| | | | | | display_name. svn path=/trunk/; revision=18508
* First big sync of my GNOME 2 porting work (incomplete, and stillEttore Perazzoli2002-11-0232-255/+328
| | | | | | | | pretty broken). Weeeeee! svn path=/trunk/; revision=18503
* gobjectify ETableExtras is now a GObject (e_tree_class_init): removeMike Kestner2002-11-023-35/+18
| | | | | | | | | | 2002-11-01 Mike Kestner <mkestner@ximian.com> * e-table-extras : gobjectify * e-tree.c (et_real_construct): ETableExtras is now a GObject (e_tree_class_init): remove duplicated signals svn path=/trunk/; revision=18490
* merging the gal-2 branch back to the trunk.Mike Kestner2002-11-01172-2868/+1945
| | | | | | merging the gal-2 branch back to the trunk. svn path=/trunk/; revision=18471
* Emit a search_activated signal. (e_search_bar_set_item_id): Revert toJeffrey Stedfast2002-10-292-3/+9
| | | | | | | | | 2002-10-28 Jeffrey Stedfast <fejj@ximian.com> * e-search-bar.c (clear_search): Emit a search_activated signal. (e_search_bar_set_item_id): Revert to original implementation. svn path=/trunk/; revision=18464
* add prototypes for the _change* functions.Chris Toshok2002-10-252-19/+160
| | | | | | | | | | | | | | | | | | 2002-10-24 Chris Toshok <toshok@ximian.com> * e-table-memory-store.h: add prototypes for the _change* functions. * e-table-memory-store.c (e_table_memory_store_change_array): new function, mostly c&p from _insert_array. (e_table_memory_store_change): new function, mostly c&p from _insert. (e_table_memory_store_change_adopt_array): new function, mostly c&p from _insert_adopt_array. (e_table_memory_store_change_adopt): new function, mostly c&p from _insert_adopt. svn path=/trunk/; revision=18432
* call e_tree_state_changeMike Kestner2002-10-251-0/+2
| | | | | | | | 2002-10-24 Mike Kestner <mkestner@ximian.com> * e-tree.c (e_tree_set_state_object): call e_tree_state_change svn path=/trunk/; revision=18428
* If the clear button was pressed, we want the entry to be sensitive (notJeffrey Stedfast2002-10-245-24/+31
| | | | | | | | | | | | | | | | | 2002-10-23 Jeffrey Stedfast <fejj@ximian.com> * e-filter-bar.c (option_changed): If the clear button was pressed, we want the entry to be sensitive (not insensitive). * e-search-bar.c (e_search_bar_set_item_id): If the item id is CLEAR_ID, we want to select the first item (0) but still set the esb->item_id to CLEAR_ID. (set_find_now_sensitive): Don't bother getting the GtkEntry text, we don't even use it? (clear_search): Set the item id as E_SEARCHBAR_CLEAR_ID rather than 0 so that it can be checked for. svn path=/trunk/; revision=18421
* (activate_by_subitems): gtk_widget_grab_focus()Ettore Perazzoli2002-10-242-0/+11
| | | | | | on the entry when adding it in. svn path=/trunk/; revision=18418
* don't emit a signal if we couldn't find the view rowJP Rosevear2002-10-221-2/+4
| | | | | | | | | 2002-10-18 JP Rosevear <jpr@ximian.com> * e-table-item.c (eti_cursor_activated): don't emit a signal if we couldn't find the view row svn path=/trunk/; revision=18405
* Don't include the byte reserved for the nul in the outleft size.Jeffrey Stedfast2002-10-171-17/+25
| | | | | | | | | | | | | | 2002-10-16 Jeffrey Stedfast <fejj@ximian.com> * gal/widgets/e-unicode.c (e_utf8_from_gtk_string_sized): Don't include the byte reserved for the nul in the outleft size. (e_utf8_from_iconv_string_sized): Same. (e_utf8_to_iconv_string_sized): Here too, but also make sure we pad the end of the resulting string with enough nul bytes (4) so that even multi-byte charsets are terminated correctly. (e_utf8_to_gtk_string_sized): Again here. svn path=/trunk/; revision=18377
* check if the selection fits in the leftover daysJP Rosevear2002-10-162-4/+28
| | | | | | | | | 2002-10-11 JP Rosevear <jpr@ximian.com> * e-calendar-item.c (e_calendar_item_ensure_days_visible): check if the selection fits in the leftover days svn path=/trunk/; revision=18368
* call drop_timeoutMike Kestner2002-10-041-2/+1
| | | | | | | | 2002-10-02 Mike Kestner <mkestner@ximian.com> * e-table-search.c (e_table_search_destroy): call drop_timeout svn path=/trunk/; revision=18319
* [Add a small delay to the switching of pages in the multi-configEttore Perazzoli2002-10-012-10/+56
| | | | | | | | | | | | | | | | | dialog. This makes keyboard navigation slightly nicer, and also happens to fix mysterious bug #28931.] New constant SWITCH_PAGE_INTERVAL. New members set_page_timeout_id and set_page_timeout_page in EMultiConfigDialogPrivate. (init): Initialize new member variables. (table_cursor_change_callback): Set up a timeout instead of switching right away. (set_page_timeout_callback): Timeout function to switch page after a small delay. (impl_destroy): Remove a pending timeout. svn path=/trunk/; revision=18267
* use the fg color array in style, not text color. Change requested by ChrisMike Kestner2002-09-281-2/+2
| | | | | | | | | 2002-09-27 Mike Kestner <mkestner@ximian.com> * e-table-item.c (eti_get_cell_foreground_color): use the fg color array in style, not text color. Change requested by Chris Lahey. svn path=/trunk/; revision=18256
* Ooops.Ettore Perazzoli2002-09-281-4/+3
| | | | svn path=/trunk/; revision=18247
* (create_page_container): Don't set upEttore Perazzoli2002-09-282-0/+7
| | | | | | the description label here. svn path=/trunk/; revision=18243
* add the gtk2 keypad entries (resync with gdk).Larry Ewing2002-09-251-10/+34
| | | | | | | | | 2002-09-25 Larry Ewing <lewing@ximian.com> * gal/widgets/e-unicode.c: add the gtk2 keypad entries (resync with gdk). svn path=/trunk/; revision=18212
* New api to set the search column on a tree without having to set a sortMike Kestner2002-09-242-0/+23
| | | | | | | | | 2002-09-24 Mike Kestner <mkestner@ximian.com> * e-tree.c (e_tree_set_search_column): New api to set the search column on a tree without having to set a sort column. svn path=/trunk/; revision=18193
* Clear search by setting text to "" and search to first search.Not Zed2002-09-243-12/+17
| | | | | | | | | | | | | | | | 2002-09-24 Not Zed <NotZed@Ximian.com> * e-search-bar.c (clear_search): Clear search by setting text to "" and search to first search. * e-filter-bar.c (option_changed): Revert change of 2002-08-29 below, always do advanced search if we have the advanced id. Handle clear elsewhere. (menubar_activated): If we get the advanced menu, set the advanced option menu, and let that handle it, rather than doing it ourselves. For #31060 & #29625. svn path=/trunk/; revision=18191
* Fix some non-ANSI switch statements.Dan Winship2002-09-232-2/+7
| | | | | | * e-filter-bar.c: Fix some non-ANSI switch statements. svn path=/trunk/; revision=18155
* Set the selection model's selection_mode after setting the table model, orDan Winship2002-09-201-5/+2
| | | | | | | | | * e-table.c (et_real_construct): Set the selection model's selection_mode after setting the table model, or things will break in the GTK_SELECTION_SINGLE case if the table doesn't start out empty. svn path=/trunk/; revision=18121
* guard against NULL nodes.Mike Kestner2002-09-201-0/+1
| | | | | | | | 2002-09-18 Mike Kestner <mkestner@ximian.com> * e-tree-model.c (e_tree_model_is_expandable): guard against NULL nodes. svn path=/trunk/; revision=18118
* exit editing on dblclick. ungrab based on grabbed_count. unset grabbed_colMike Kestner2002-09-181-7/+8
| | | | | | | | | | 2002-09-17 Mike Kestner <mkestner@ximian.com> * gal/e-table/e-table-item.c (eti_event): exit editing on dblclick. ungrab based on grabbed_count. unset grabbed_col and grabbed_row on ungrab. svn path=/trunk/; revision=18089
* forgot to commit the po stuff from the release. also bumped the so number.Mike Kestner2002-09-111-1/+1
| | | | | | | | | | | | forgot to commit the po stuff from the release. also bumped the so number. 2002-09-10 Mike Kestner <mkestner@ximian.com> * gal/e-table/e-table-item.c (eti_event): allow keypress handling for cursor_col==-1 as long as cursor_row isn't -1 also so that e-tree searching works without click focusing an item. svn path=/trunk/; revision=18038
* take a clip_height and use it to set the maximum number of lines ifJP Rosevear2002-09-111-20/+15
| | | | | | | | | | 2002-09-10 JP Rosevear <jpr@ximian.com> * gal/e-text/e-text.c (line_splitter): take a clip_height and use it to set the maximum number of lines if necessary (split_into_lines): pass clip_height arg svn path=/trunk/; revision=18032
* need to make the find now button sensitive when you select something fromChris Toshok2002-08-302-0/+7
| | | | | | | | | 2002-08-29 Chris Toshok <toshok@ximian.com> * e-search-bar.c (subitem_activated_cb): need to make the find now button sensitive when you select something from a submenu. svn path=/trunk/; revision=17931
* kill a return that caused selection ranges to not emit selection_changedMike Kestner2002-08-301-1/+0
| | | | | | | | | | 2002-08-29 Mike Kestner <mkestner@ximian.com> * gal/widgets/e-selection-model-array.c : kill a return that caused selection ranges to not emit selection_changed if the end index only changed by 1. svn path=/trunk/; revision=17930
* If the item is ADVANCED_ID, check the query and efb->setquery to seePeter Williams2002-08-302-1/+14
| | | | | | | | | | 2002-08-29 Peter Williams <peterw@ximian.com> * e-filter-bar.c (option_changed): If the item is ADVANCED_ID, check the query and efb->setquery to see whether we should pop up the advanced dialog or clear an advanced search. Fixes #29625. svn path=/trunk/; revision=17923
* Don't set the item id; clear search isn't in the menu anymore. FixesPeter Williams2002-08-242-1/+5
| | | | | | | | | 2002-08-21 Peter Williams <peterw@ximian.com> * e-search-bar.c (clear_search): Don't set the item id; clear search isn't in the menu anymore. Fixes #29211. svn path=/trunk/; revision=17849
* don't adjust for two digit dates here, the e_time_parse routines do thatJP Rosevear2002-08-223-23/+5
| | | | | | | | | 2002-08-22 JP Rosevear <jpr@ximian.com> * e-dateedit.c (e_date_edit_parse_date): don't adjust for two digit dates here, the e_time_parse routines do that now svn path=/trunk/; revision=17834
* ref/unref the gvmMike Kestner2002-08-152-0/+8
| | | | | | | | 2002-08-15 Mike Kestner <mkestner@ximian.com> * menus/gal-view-menus.c (build_stuff): ref/unref the gvm svn path=/trunk/; revision=17780
* And finally here.Jeffrey Stedfast2002-08-074-74/+6
| | | | | | | | | | | | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_save_expanded_state): And finally here. * e-table-state.c (e_table_state_save_to_file): Same here. * e-table-specification.c (e_table_specification_save_to_file): No need to save to a temp file first here either since e_xml_save_file now does that for us. * e-table.c (e_table_save_specification): No need to handle writing to a temp file first anymore, since I've updated e_xml_save_file() to handle that for us. svn path=/trunk/; revision=17724
* #include <string.h> for memsetJeffrey Stedfast2002-08-075-21/+125
| | | | | | | | | | | | | | | | | | | | 2002-08-06 Jeffrey Stedfast <fejj@ximian.com> * e-cell-progress.c: #include <string.h> for memset * e-table.c (e_table_save_specification): Updated to use e_xml_save_file() instead of xmlSaveFile(). Also fixed to save to a tmp file first. * e-table-specification.c (e_table_specification_save_to_file): Same as above. * e-table-state.c (e_table_state_save_to_file): Same here. * e-tree-table-adapter.c (e_tree_table_adapter_save_expanded_state): And here too. svn path=/trunk/; revision=17717
* Set the query text into the filter name when saving it, for #10979.Not Zed2002-08-062-2/+13
| | | | | | | | | 2002-08-06 Not Zed <NotZed@Ximian.com> * e-filter-bar.c (menubar_activated): Set the query text into the filter name when saving it, for #10979. svn path=/trunk/; revision=17710
* Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise.Ettore Perazzoli2002-07-244-4/+14
| | | | | | | | | | | | | | * e-calendar-item.c (e_calendar_item_signal_emission_idle_cb): Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise. * e-search-bar.c (init): Don't initialize dropdown_menu here anymore since we got rid of it. * e-search-bar.h (struct _ESearchBar): Removed member dropdown_menu. svn path=/trunk/; revision=17567
* (item_key_press): In the case of '-' and '=', checkEttore Perazzoli2002-07-241-0/+6
| | | | | | that no non-Shift modifier is pressed. svn path=/trunk/; revision=17556
* Also perform a search on the query_changed signal, which is what getsPeter Williams2002-07-244-38/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-22 Peter Williams <peterw@ximian.com> * folder-browser.c (folder_browser_gui_init): Also perform a search on the query_changed signal, which is what gets emitted when the Search menu is used. 2002-07-22 Peter Williams <peterw@ximian.com> * e-filter-bar.c (do_advanced): Break out the code for creating the advanced rule editor into a separate function, so that... (menubar_activated): ... can also create an Advanced dialog; needed when the Search menu's advanced button is used. (option_changed): Change this to call the function instead of having all the code to itself. * e-search-bar.h: Add id's for the FIND_NOW and CLEAR actions so that other code (eg, EFilterBar) doesn't get confused by an old id being used when the search-activated signal gets emitted. * e-search-bar.c (clear_search): Set the item_id to CLEAR before emitting the signal. (search_now_verb_cb): Just make this emit query_changed, as the button in the toolbar does. svn path=/trunk/; revision=17550
* Made these able to find the potential row for a new node which will be theChristopher James Lahey2002-07-191-3/+8
| | | | | | | | | | | | 2002-07-19 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (find_next_node, find_first_child_node): Made these able to find the potential row for a new node which will be the last row. (find_row_num): Made this handle find_next_node and find_first_child_node returning n_map. svn path=/trunk/; revision=17517
* Install libversit.a so that people compiling against the addressbook canPeter Williams2002-07-183-21/+44
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-07-09 Peter Williams <peterw@ximian.com> * libversit/Makefile.am (privlib_LIBRARIES): Install libversit.a so that people compiling against the addressbook can do so successfully. * Makefile.am: create our *Conf.sh files and dist them and install them. * configure.in: Define and subst some variables that the Conf.sh file need. 2002-07-08 Peter Williams <peterw@ximian.com> * backend/ebook/Makefile.am: Install libebook-static.la. Also change --all-static to -all-static, which is the right flag. * backend/pas/Makefile.am: Install the PAS headers in $(includedir)/evolution/pas. Install libpas.a 2002-07-08 Peter Williams <peterw@ximian.com> * cal-util/Makefile.am: Install libcal-util-static.la and fix the -all-static flag to make it install statically. * pcs/Makefile.am: Install libpcs.a and its headers. * pcs/cal-backend-util.h: Same sort of include namespacing fix, but for pcs. * pcs/cal.h: * pcs/query.h: * pcs/cal-factory.h: * pcs/cal-backend.h: * pcs/cal-backend-file.h: Same. 2002-07-17 Peter Williams <peterw@ximian.com> * calendar/cal-util/Makefile.am (GTKDOC_LIBS): Because we're using libtool as our LD, we can reference .la's and libtool will DTRT for us. * calendar/cal-client/Makefile.am (GTKDOC_LIBS): Same here. 2002-07-03 Peter Williams <peterw@ximian.com> * Makefile.am: Install libeutil, libeconduit, and libedb3util and their headers. 2002-07-08 Peter Williams <peterw@ximian.com> * Makefile.am: Reference the new libefilterbar.a. 2002-07-12 Peter Williams <peterw@ximian.com> * Makefile.am (INCLUDES): Add -I$(builddir)/libical/src/libical for the generated ical.h (some headers rely on this because they too get installed.) 2002-07-09 Peter Williams <peterw@ximian.com> * e-timezone-dialog/Makefile.am: Add -I$(top_builddir)/libical/src/libical; some headers that we rely on get installed, so they point to the ical.h that gets generated and installed; consequently we need to be able to find the generated ical.h * misc/Makefile.am: Install libemiscwidgets.a and its headers. However, break EFilterBar into a separate libefilterbar.a because we don't want the installed library to depend on libfilter. svn path=/trunk/; revision=17496
* (setup_standard_verbs): Set the <commands> partEttore Perazzoli2002-07-182-5/+41
| | | | | | | | | | | | | | | | of the XML manually with bonobo_ui_component_set() otherwise the verbs don't get added on the other side for us to be able to do bonobo_ui_component_set_prop(). (setup_bonobo_menus): New, menu setup code taken from update_bonobo_menus(). (remove_bonobo_menus): New; removes the Bonobo menus. (update_bonobo_menus): Rewritten, just call remove_bonobo_menus() first and setup_bonobo_menus() then. (e_search_bar_set_ui_component): Call setup_bonobo_menus() and remove_bonobo_menus() as appropriate instead of just update_bonobo_menus(). svn path=/trunk/; revision=17490
* (e_timezone_dialog_init):Ettore Perazzoli2002-07-062-0/+7
| | | | | | Make not floating. svn path=/trunk/; revision=17374
* (update_sensitivity): Removed.Ettore Perazzoli2002-07-032-43/+58
| | | | | | | | | | | | (set_find_now_sensitive): New. (entry_changed_cb): Always make the "Find Now" button and menu item sensitive here. (emit_search_activated): ...And here, always insensitive. (setup_standard_verbs): Always start up insensitive. (activate_button_clicked_cb): Make the entry grab the focus. (clear_button_clicked_cb): Likewise. svn path=/trunk/; revision=17348
* (subitem_activated_cb): Don't emitEttore Perazzoli2002-07-022-3/+7
| | | | | | | | "search_activated" here. (e_search_bar_set_subitem_id): And not here either. (e_search_bar_set_text): Same. svn path=/trunk/; revision=17346
* (activate_by_subitems): Don't set the entry to beEttore Perazzoli2002-07-022-2/+7
| | | | | | an empty string here. svn path=/trunk/; revision=17345
* (build_items): Put the numbers in front of theEttore Perazzoli2002-06-192-1/+6
| | | | | | rules only if type is zero [i.e. not in the option menu]. svn path=/trunk/; revision=17224
* Patch by clahey.JP Rosevear2002-06-181-1/+37
| | | | | | | | | | | | | 2002-06-18 JP Rosevear <jpr@ximian.com> Patch by clahey. * e-table.c (et_get_arg): get the use_click_to_add value (et_set_arg): set the use_click_to_add_value, and either display the item or destroy it (e_table_class_init): add the use_click_to_add arg svn path=/trunk/; revision=17218
* Edit the view after appending it to the model.Christopher James Lahey2002-06-171-0/+1
| | | | | | | | | 2002-06-16 Christopher James Lahey <clahey@ximian.com> * gal-define-views-dialog.c (gdvd_button_new_dialog_callback): Edit the view after appending it to the model. svn path=/trunk/; revision=17203
* Don't draw or interact with the popup button if a cell isn't editableChristopher James Lahey2002-06-159-30/+50
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-06-14 Christopher James Lahey <clahey@ximian.com> * e-cell-popup.c (ecp_draw, ecp_event): Don't draw or interact with the popup button if a cell isn't editable (based on a patch by JPR.) * e-table-col.c, e-table-col.h: Added the compare_col field to this structure. Added a GtkArg to set it. * e-table-column-specification.c, e-table-column-specification.h: Added the compare_col field here. Made it load properly from xml. * e-table-sorting-utils.c: Sort based on the compare_col in the ETableCol instead of the col_idx. * e-table-utils.c (et_col_spec_to_col): Set the compare_col field in the ETableCol properly. * e-table.c, e-table.h: Removed the drag_get_data_row and drag_get_data_col fields since they're not used any longer. (e_table_construct): If specification loading fails, return a NULL ETable instead of just ignoring it. (e_table_drag_highlight): Only destroy table->drop_highlight if it exists. svn path=/trunk/; revision=17190
* Bumped the version number to 0.19.99.17.Christopher James Lahey2002-06-062-1/+25
| | | | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped the version number to 0.19.99.17. * gal/widgets/e-reflow.c, gal/widgets/e-reflow.h (e_reflow_selection_event_real): Made this function handle GDK_BUTTON_RELEASE. Added a maybe_in_drag variable that the API user can set to 0 to indicate that a drag has occurred. svn path=/trunk/; revision=17122
* Added debugging printfs. (e_text_request_paste): Fixed the order ofChristopher James Lahey2002-06-061-2/+14
| | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Added debugging printfs. (e_text_request_paste): Fixed the order of setting last_type_request before calling gtk_selection_convert due to a reentrancy bug. svn path=/trunk/; revision=17119
* Added debugging printfs.Christopher James Lahey2002-06-053-1/+13
| | | | | | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * e-table-field-chooser-item.c: Added debugging printfs. * e-table-header-item.c: Added debugging printfs. (ethi_drag_motion): Don't subtract widget->allocation.* here. It seems that this value is affected by whether the table is using a click to add field. Not sure why. * e-table-item.c (eti_realize): Check for NULL selection here. svn path=/trunk/; revision=17118
* Added debugging printfs.Christopher James Lahey2002-06-053-2/+38
| | | | | | | | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * e-tree-model.c (d): Added debugging printfs. * e-tree-sorted.c (ets_proxy_node_changed, ets_proxy_node_data_changed, ets_proxy_node_col_changed, ets_proxy_node_inserted): Added a bunch of e_tree_model_no_change signals where appropriate. * e-tree-table-adapter.c (etta_proxy_node_changed): Added an e_table_model_no_change signal where appropriate. svn path=/trunk/; revision=17116
* Made it so that on realize we grab focus if we have the cursor, sinceChristopher James Lahey2002-06-051-0/+11
| | | | | | | | | | 2002-06-05 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_realize): Made it so that on realize we grab focus if we have the cursor, since otherwise, we'll change our selection on focus in. svn path=/trunk/; revision=17115
* Added this function to let you disable the define views dialog.Christopher James Lahey2002-06-053-41/+73
| | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c, menus/gal-view-menus.h (gal_view_menus_set_show_define_views): Added this function to let you disable the define views dialog. svn path=/trunk/; revision=17111
* Added this function.Christopher James Lahey2002-06-057-125/+269
| | | | | | | | | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * e-table-header.c, e-table-header.h (e_table_header_prioritized_column_selected): Added this function. * e-table-utils.c, e-table-utils.h (e_table_util_calculate_current_search_col): Added this function. * e-table.c, e-table.h, e-tree.c: Added a "always_search" argument. If this is off, then searches only occur if there's sort. If it's on, sort takes precendence in doing searches, followed by the highest priority column shown. svn path=/trunk/; revision=17109
* Don't show this dialog more than once per collection.Christopher James Lahey2002-06-052-9/+37
| | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c (define_views): Don't show this dialog more than once per collection. svn path=/trunk/; revision=17106
* Added this function to set the user visible name of this collection.Christopher James Lahey2002-06-044-4/+45
| | | | | | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * gal-view-collection.c, gal-view-collection.h (gal_view_collection_set_title): Added this function to set the user visible name of this collection. * gal-define-views-dialog.c (gal_define_views_dialog_init): Set the Define Views for %s label. Fixes Ximian bug #2100 and #4080. svn path=/trunk/; revision=17100
* Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set.Christopher James Lahey2002-06-042-2/+3
| | | | | | | | | 2002-06-04 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_event): Reenable tooltips if the GAL_DO_TOOLTIPS environment variable is set. svn path=/trunk/; revision=17097
* Get the font from the style again when the style changes. (init): ChecksChristopher James Lahey2002-06-045-6/+64
| | | | | | | | | | | | | | | | | | | | | | | | 2002-06-03 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c (ect_style_set): Get the font from the style again when the style changes. (init): Checks for the environment variable GAL_ELLIPSIS and uses that instead of ... if it is set. * e-table-click-to-add.c (finish_editing): e_table_item_leave_edit before committing. (etcta_event): Added a missing break; here. * e-table-item.c (eti_style_set): On style set, free the height cache, request a reflow and a redraw, and call eti_idle_maybe_show_cursor. (e_table_item_compute_location): Don't call eti_get_height here, just use the cached value. * e-tree.c, e-tree.h (e_tree_get_table_adapter): Added this simple accessor function. svn path=/trunk/; revision=17088
* Reflow and redraw when the style gets set.Christopher James Lahey2002-06-042-322/+330
| | | | | | | | | 2002-06-03 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c, gal/e-text/e-text.h (e_text_style_set): Reflow and redraw when the style gets set. svn path=/trunk/; revision=17086
* New helper function. (build_items): g_strdup() the text for all the items.Ettore Perazzoli2002-05-312-13/+71
| | | | | | | | | | | | | | * e-filter-bar.c (dup_item_no_subitems): New helper function. (build_items): g_strdup() the text for all the items. Prepend the user-defined items with an order number. (free_built_items): New function to free the array returned by build_items, freeing the text strings too [since now they are newly allocated instead of just pointing to the exiting ones]. (generate_menu): Call free_built_items() on the built items instead of just g_array_free(). (set_option): Likewise. svn path=/trunk/; revision=17045
* Added would_be_expanded refactoring code out of is_expanded.Christopher James Lahey2002-05-251-16/+22
| | | | | | | | | | | | 2002-05-24 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c (e_tree_table_adapter_node_would_be_expanded, e_tree_table_adapter_node_is_expanded): Added would_be_expanded refactoring code out of is_expanded. (find_first_child_node_maybe_deleted): Use the new function. svn path=/trunk/; revision=17016
* Put the stuff in /menu/Searchplaceholder/Search instead of /menu/Search.Ettore Perazzoli2002-05-231-3/+11
| | | | | | | * e-search-bar.c (update_bonobo_menus): Put the stuff in /menu/Searchplaceholder/Search instead of /menu/Search. svn path=/trunk/; revision=16980
* Put the search menu in a SearchPlaceholder.Ettore Perazzoli2002-05-231-0/+3
| | | | | | * evolution.xml: Put the search menu in a SearchPlaceholder. svn path=/trunk/; revision=16979
* New, overrides GtkWidget::draw. (impl_expose_event): New, overridesEttore Perazzoli2002-05-232-2/+108
| | | | | | | * e-combo-button.c (impl_draw): New, overrides GtkWidget::draw. (impl_expose_event): New, overrides GtkWidget::expose_event. svn path=/trunk/; revision=16978
* Check for path being NULL.Christopher James Lahey2002-05-212-2/+17
| | | | | | | | | | | | | 2002-05-21 Christopher James Lahey <clahey@ximian.com> * e-tree-sorted.c (ets_proxy_node_request_collapse): Check for path being NULL. * e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state): Rebuild the tree after loading the state. svn path=/trunk/; revision=16963
* Prepend the advanced menu with a separator.Ettore Perazzoli2002-05-213-6/+15
| | | | | | | | | | * e-filter-bar.c (build_items): Prepend the advanced menu with a separator. * e-filter-bar.h: Add E_FILTERBAR_SEPARATOR. Rename the "Advanced Search..." menu item into "Advanced...". svn path=/trunk/; revision=16953
* Strip underscores from the menu item labels.Ettore Perazzoli2002-05-213-6/+43
| | | | | | | * e-search-bar.c (activate_by_subitems): Strip underscores from the menu item labels. svn path=/trunk/; revision=16952
* Made it so that if the current_id doesn't match any of the given ids, itChristopher James Lahey2002-05-142-4/+20
| | | | | | | | | | | | | | 2002-05-14 Christopher James Lahey <clahey@ximian.com> * menus/gal-view-menus.c (build_menus): Made it so that if the current_id doesn't match any of the given ids, it treats it the same as a NULL id. (gal_view_menus_apply): Added a check for gvm->priv == NULL here. (gal_view_menus_apply, collection_changed, instance_changed): Removed calls to set_radio after build_stuff, since the last thing build_stuff does is calls set_radio. svn path=/trunk/; revision=16781
* Changed a lot of direct uses in this file of node->is_expanded to call theChristopher James Lahey2002-05-141-70/+76
| | | | | | | | | | | | | | | | 2002-05-13 Christopher James Lahey <clahey@ximian.com> * e-tree-table-adapter.c: Changed a lot of direct uses in this file of node->is_expanded to call the function e_tree_table_adapter_node_is_expanded instead. (e_tree_table_adapter_node_is_expanded): Improved this function to know if the root node is visible and always return it as being expanded if it's not. It also doesn't bother creating nodes if they don't exist yet, and instead figures out whether they would be expanded if they were to be created and returns that value instead. svn path=/trunk/; revision=16768
* If grabbed_item is NULL, cancel the timeout.Christopher James Lahey2002-05-111-0/+8
| | | | | | | | | 2002-05-10 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-canvas.c (grab_cancelled_check): If grabbed_item is NULL, cancel the timeout. svn path=/trunk/; revision=16760
* Include string.h here.Christopher James Lahey2002-05-111-0/+2
| | | | | | | | 2002-05-10 Christopher James Lahey <clahey@ximian.com> * e-table-search.c: Include string.h here. svn path=/trunk/; revision=16749
* Switch from gnome_canvas_item_grab to e_canvas_item_grab.Christopher James Lahey2002-05-105-31/+149
| | | | | | | | | | | | | | | | | | | 2002-05-09 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c: Switch from gnome_canvas_item_grab to e_canvas_item_grab. * gal/widgets/e-canvas.c, gal/widgets/e-canvas.h (e_canvas_item_grab, e_canvas_item_ungrab): Added these functions. From gal/e-table/ChangeLog: 2002-05-09 Christopher James Lahey <clahey@ximian.com> * e-table-item.c, e-table-item.h: Switched from gnome_canvas_item_grab to e_canvas_item_grab. svn path=/trunk/; revision=16738
* Bump file version to 2. (This will make older versions of gal ignore theDan Winship2002-05-101-4/+12
| | | | | | | | | | | | | | * e-tree-table-adapter.c (e_tree_table_adapter_save_expanded_state): Bump file version to 2. (This will make older versions of gal ignore the file, fixing the problem where going from evo HEAD to evo 1.0.x makes the folder tree disappear.) Store the default expanded state in the file now to prevent this from happening again in the future. (e_tree_table_adapter_load_expanded_state): Deal with version 2. If the model's default expansion state doesn't match the saved state, ignore the save file. svn path=/trunk/; revision=16736
* Change this directory to include the $(VERSION).Christopher James Lahey2002-05-071-6/+2
| | | | | | | | | | | | | | | | | | | 2002-05-06 Christopher James Lahey <clahey@ximian.com> * gal/widgets/Makefile.am (imagesdir): Change this directory to include the $(VERSION). * gal/widgets/e-reflow.c (set_empty): Don't switch from utf8 to widget encoding, since EText takes utf8. From art/ChangeLog: 2002-05-06 Christopher James Lahey <clahey@ximian.com> * Makefile.am (imagesdir): Change this directory to include the $(VERSION). svn path=/trunk/; revision=16697
* Make the style here match the proper widget style to emulate a label or anChristopher James Lahey2002-05-031-1/+1
| | | | | | | | | 2002-05-02 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-text.c (e_text_draw): Make the style here match the proper widget style to emulate a label or an entry. svn path=/trunk/; revision=16670
* Added this function that lets you specify the translation domain.Christopher James Lahey2002-05-0310-84/+121
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-02 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h (e_popup_menu_create_with_domain): Added this function that lets you specify the translation domain. From gal/e-table/ChangeLog: 2002-05-02 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c (finish_editing): Add horizontal dividers here too. * e-table-config.c (create_global_store): Translate column headers here. * e-table-header-item.c (ethi_header_context_menu): Use e_popup_menu_create_with_domain here. * e-table-header-utils.c (e_table_header_draw_button): Translate from utf8 here before drawing. * e-table-memory-store.c, e-table-memory-store.h (e_table_memory_store_insert_adopt_array): Changed the name of this function from e_table_memory_store_insert_adopt. (e_table_memory_store_insert_adopt): Added this function which takes a ... list. * e-table-utils.c (et_col_spec_to_col): Translate column titles to utf8 here. svn path=/trunk/; revision=16668
* Added horizontal dividers to this item when in table mode.Christopher James Lahey2002-05-034-26/+28
| | | | | | | | | | | | | | | 2002-05-02 Christopher James Lahey <clahey@ximian.com> * e-table-click-to-add.c: Added horizontal dividers to this item when in table mode. * e-table.c, e-tree.c: Made the background be an e-canvas-background instead of a * e-tree.c, e-tree.h: Added a white_space_event for feature parity with ETable. svn path=/trunk/; revision=16667
* Set the gettext-domain here.Christopher James Lahey2002-05-0211-36/+81
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gal/e-text/e-completion-view.c (simple_spec), gal/widgets/e-categories-master-list-dialog.c (SPEC), gal/widgets/e-categories.c (INITIAL_SPEC): Set the gettext-domain here. * gal/util/e-i18n.h (E_I18N_DOMAIN): #define as makes sense in the different cases. From gal/e-table/ChangeLog: 2002-05-01 Christopher James Lahey <clahey@ximian.com> * e-table-config.c, e-table-config.h, e-table-specification.c, e-table-specification.h, e-table-utils.c, e-table-utils.h, e-table.c, e-table.h: Made these pay attention to the gettext-domain in the etspec. * e-table-config.c: Set the gettext-domain in the etspec here. From gal/menus/ChangeLog: 2002-05-01 Christopher James Lahey <clahey@ximian.com> * gal-define-views-dialog.c (SPEC), gal-view-instance-save-as-dialog.c (SPEC): Set the gettext-domain here. svn path=/trunk/; revision=16658
* From gal/e-table/ChangeLog:Christopher James Lahey2002-04-301-8/+8
| | | | | | | | | 2002-04-29 Christopher James Lahey <clahey@ximian.com> * e-table-item.c (eti_cursor_change): Redraw a row that is no longer the cursor even if this item isn't getting the new cursor. svn path=/trunk/; revision=16642
* Changed LDFLAGS to LIBS for tests here. Bumped the version number toChristopher James Lahey2002-04-302-0/+39
| | | | | | | | | | | | | | | | 2002-04-29 Christopher James Lahey <clahey@ximian.com> * configure.in: Changed LDFLAGS to LIBS for tests here. Bumped the version number to 0.19.99.15. From gal/e-table/ChangeLog: 2002-04-29 Christopher James Lahey <clahey@ximian.com> * e-tree.c, e-tree.h (e_tree_path_foreach): Added this function which recurses over all nodes, regardless of selection. svn path=/trunk/; revision=16635
* Take an int instead of a double. From a patch by jody@ximian.com.Christopher James Lahey2002-04-271-1/+1
| | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * e-table-field-chooser-item.c (etfci_maybe_start_drag): Take an int instead of a double. From a patch by jody@ximian.com. svn path=/trunk/; revision=16606
* Don't print out the colors here unless debugging is turned on.Christopher James Lahey2002-04-272-1/+8
| | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * e-multi-config-dialog.c (fill_in_pixbufs): Don't print out the colors here unless debugging is turned on. svn path=/trunk/; revision=16605
* Only unref etst->sort_info once.Christopher James Lahey2002-04-271-1/+0
| | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * e-table-state.c (etst_destroy): Only unref etst->sort_info once. svn path=/trunk/; revision=16603
* Documented the life cycle requirements of the return value of theseChristopher James Lahey2002-04-272-7/+23
| | | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * e-table-model.c (e_table_model_value_at), e-tree-model.c (e_tree_model_value_at): Documented the life cycle requirements of the return value of these functions. svn path=/trunk/; revision=16602
* Include alloca.h here if it's necessary.Christopher James Lahey2002-04-271-0/+4
| | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-unicode.c: Include alloca.h here if it's necessary. svn path=/trunk/; revision=16601
* Initialize these struct members individually instead of as a struct.Christopher James Lahey2002-04-271-1/+4
| | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-canvas-background.c (ecb_init): Initialize these struct members individually instead of as a struct. svn path=/trunk/; revision=16600
* Added calls to e_table_model_pre_change here so that the ETableItemChristopher James Lahey2002-04-261-0/+4
| | | | | | | | | | | 2002-04-26 Christopher James Lahey <clahey@ximian.com> * e-table-memory-store.c (e_table_memory_store_adopt_value_at, etms_set_value_at): Added calls to e_table_model_pre_change here so that the ETableItem doesn't unfreeze more times than it freezes. svn path=/trunk/; revision=16593
* Made these handle the case where all_children_selected_array has a bitChristopher James Lahey2002-04-261-2/+7
| | | | | | | | | | | 2002-04-25 Christopher James Lahey <clahey@ximian.com> * e-tree-selection-model.c (etsm_selected_count_recurse, etsm_foreach_recurse): Made these handle the case where all_children_selected_array has a bit set, but the children of that node aren't filled in. svn path=/trunk/; revision=16590
* Ansification patch from danw.Christopher James Lahey2002-04-2610-22/+23
| | | | | | | | | | | | | | | | | | | | | | | | 2002-04-25 Christopher James Lahey <clahey@ximian.com> * gal/e-paned/e-paned.c, gal/e-text/e-entry.c, gal/util/e-bit-array.c, gal/util/e-sorter-array.c, gal/util/e-sorter.c, gal/util/e-text-event-processor.c, gal/widgets/color-group.c, gal/widgets/color-palette.c, gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas.c, gal/widgets/e-canvas.h, gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-combo.c, gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories.c, gal/widgets/e-reflow-model.c, gal/widgets/e-reflow.c, gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h, gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-stack.c, gal/widgets/widget-color-combo.c, gal/widgets/widget-pixmap-combo.c: Ansification patch from danw. svn path=/trunk/; revision=16589
* Ansification patch from danw.Christopher James Lahey2002-04-264-4/+4
| | | | | | | | | 2002-04-25 Christopher James Lahey <clahey@ximian.com> * gal-define-views-dialog.c, gal-view-factory.c, gal-view-new-dialog.c, gal-view.c: Ansification patch from danw. svn path=/trunk/; revision=16587
* Ansification patch from danw.Christopher James Lahey2002-04-2650-74/+74
| | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-25 Christopher James Lahey <clahey@ximian.com> * e-cell-checkbox.c, e-cell-combo.c, e-cell-date.c, e-cell-float.c, e-cell-number.c, e-cell-pixbuf.c, e-cell-popup.c, e-cell-size.c, e-cell-spin-button.c, e-cell-text.c, e-cell-toggle.c, e-cell-tree.c, e-cell.c, e-cell.h, e-table-click-to-add.c, e-table-col.c, e-table-column-specification.c, e-table-config-field.c, e-table-config.c, e-table-extras.c, e-table-field-chooser-dialog.c, e-table-field-chooser-item.c, e-table-field-chooser.c, e-table-group-container.c, e-table-group-leaf.c, e-table-group.c, e-table-header-item.c, e-table-header.c, e-table-item.c, e-table-memory-callbacks.c, e-table-model.c, e-table-scrolled.c, e-table-selection-model.c, e-table-sort-info.c, e-table-sorted-variable.c, e-table-sorted.c, e-table-sorter.c, e-table-specification.c, e-table-state.c, e-table-subset-variable.c, e-table-subset.c, e-table-without.c, e-table.c, e-table.h, e-tree-scrolled.c, e-tree-selection-model.c, e-tree-sorted-variable.c, e-tree-sorted.c, e-tree-table-adapter.c, e-tree.c: Ansification patch from danw. svn path=/trunk/; revision=16586
* Changed this to match the new e_table_memory_store_insert functionChristopher James Lahey2002-04-251-1/+1
| | | | | | | | | 2002-04-24 Christopher James Lahey <clahey@ximian.com> * e-table-config.c (create_global_store): Changed this to match the new e_table_memory_store_insert function prototype. svn path=/trunk/; revision=16579
* implement printing (pixbuf_print_height): implement print heightJP Rosevear2002-04-253-18/+53
| | | | | | | | | | | | | | | | 2002-04-24 JP Rosevear <jpr@ximian.com> * e-cell-pixbuf.c (pixbuf_print): implement printing (pixbuf_print_height): implement print height (e_cell_pixbuf_class_init): set printing virtual methods * e-cell-toggle.c (etog_print): remove clipping, default clipping is done by the table, scale based on toggle height * e-table-item.c (e_table_item_calculate_print_widths): make the scale 1:1 svn path=/trunk/; revision=16577
* Updated this to match the changed function name in gal.Christopher James Lahey2002-04-232-2/+7
| | | | | | | | | 2002-04-22 Christopher James Lahey <clahey@ximian.com> * e-multi-config-dialog.c (e_multi_config_dialog_add_page): Updated this to match the changed function name in gal. svn path=/trunk/; revision=16562
* Bumped version number to 0.19.99.14.Christopher James Lahey2002-04-236-31/+254
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-04-22 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.19.99.14. * gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h (e_popup_menu_copy_1, e_popup_menu_free_1, e_popup_menu_copy, e_popup_menu_free): Added these functions From gal/e-table/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * e-table-memory-store.c, e-table-memory-store.h: Renamed the insert functions in this class to make a bit more sense. From gal/menus/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * gal-view-instance.c, gal-view-instance.h (gal_view_instance_get_popup_menu, gal_view_instance_free_popup_menu): Added these functions. Used to add a current view menu to your popup menus. From gal/shortcut-bar/ChangeLog: 2002-04-22 Christopher James Lahey <clahey@ximian.com> * e-icon-bar.c (e_icon_bar_drag_motion): Removed an unused variable. svn path=/trunk/; revision=16559
* Unref the sort_info.Jeffrey Stedfast2002-04-201-0/+5
| | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * e-table-state.c (etst_destroy): Unref the sort_info. svn path=/trunk/; revision=16549
* After unreffing all the pixmaps, free the toggle_view->pixmap_cache.Jeffrey Stedfast2002-04-201-0/+1
| | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * e-cell-toggle.c (etog_kill_view): After unreffing all the pixmaps, free the toggle_view->pixmap_cache. svn path=/trunk/; revision=16548
* Free the priv->search_string and priv itself. More memory leak fixage.Jeffrey Stedfast2002-04-202-0/+9
| | | | | | | | | | | | 2002-04-19 Jeffrey Stedfast <fejj@ximian.com> * e-table-search.c (e_table_search_destroy): Free the priv->search_string and priv itself. More memory leak fixage. * e-tree.c (e_tree_drag_source_unset): Unref site->taget_list so we don't leak memory. svn path=/trunk/; revision=16547
* print the cell in the allotted area (etog_print_height): return the printJP Rosevear2002-04-201-0/+57
| | | | | | | | | | 2002-04-19 JP Rosevear <jpr@ximian.com> * e-cell-toggle.c (etog_print): print the cell in the allotted area (etog_print_height): return the print height svn path=/trunk/; revision=16536
* handle toggle and radio items (make_item): the item is now passed in fromJP Rosevear2002-04-181-17/+26
| | | | | | | | | | 2002-04-18 JP Rosevear <jpr@ximian.com> * gal/widgets/e-popup-menu.c (e_popup_menu_create): handle toggle and radio items (make_item): the item is now passed in from above and not returned svn path=/trunk/; revision=16508
* Bumped version number to 0.19.99.11.Christopher James Lahey2002-04-183-22/+67
| | | | | | | | | | | | | | | | | | | | | 2002-04-17 Christopher James Lahey <clahey@ximian.com> * configure.in: Bumped version number to 0.19.99.11. * gal/widgets/e-popup-menu.c, gal/widgets/e-popup-menu.h: Changed this to be API compatible with gal 0.19. Added a bunch of pound defines and added API for toggle and radio menu items. * gal/widgets/e-categories.c: Updated this to match the new EPopupMenu. From gal/e-table/ChangeLog: 2002-04-17 Christopher James Lahey <clahey@ximian.com> * e-table-header-item.c: Updated this to match the new EPopupMenu. svn path=/trunk/; revision=16496
* If there is a grabbed_item, send all events to it.Christopher James Lahey2002-04-181-22/+20
| | | | | | | | | 2002-04-17 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-canvas.c (emit_event): If there is a grabbed_item, send all events to it. svn path=/trunk/; revision=16492
* Fixed a memory leak here by using the "selection-done" signal.Christopher James Lahey2002-04-123-13/+49
| | | | | | | | | | | | 2002-04-11 Christopher James Lahey <clahey@ximian.com> * e-table-header-item.c (ethi_header_context_menu): Fixed a memory leak here by using the "selection-done" signal. * e-table.c, e-table.h (white_item_event): Added the "white_space_event" signal. svn path=/trunk/; revision=16439
* Oops. The previous change made the search bar widgets get packed in theDan Winship2002-04-102-3/+11
| | | | | | | | | | * e-search-bar.c (e_search_bar_construct, add_button): Oops. The previous change made the search bar widgets get packed in the wrong order. So use gtk_box_pack_end instead in add_button and add the two buttons in reverse order. It's all good now. Noticed by Ettore, who I then promptly blamed for it. Sorry Ettore! svn path=/trunk/; revision=16411
* Construct the buttons earlier so that the option-menu-setup code thatDan Winship2002-04-072-5/+11
| | | | | | | | * e-search-bar.c (e_search_bar_construct): Construct the buttons earlier so that the option-menu-setup code that tries to adjust the button sensitivity won't fail and g_warn. svn path=/trunk/; revision=16375
* show a specific page numberJP Rosevear2002-04-073-0/+23
| | | | | | | | | | | 2002-04-06 JP Rosevear <jpr@ximian.com> * e-multi-config-dialog.c (e_multi_config_dialog_show_page): show a specific page number * e-multi-config-dialog.h: new proto svn path=/trunk/; revision=16374
* Don't show the popup if the entry->item doesn't have focus.Ettore Perazzoli2002-04-041-0/+5
| | | | | | | * gal/e-text/e-entry.c (e_entry_show_popup): Don't show the popup if the entry->item doesn't have focus. svn path=/trunk/; revision=16345
* ignore .pureChris Toshok2002-04-021-0/+1
| | | | svn path=/trunk/; revision=16312
* Change the ETable specs so it doesn't sort.Ettore Perazzoli2002-03-302-1/+5
| | | | | | | * e-multi-config-dialog.c: Change the ETable specs so it doesn't sort. svn path=/trunk/; revision=16289
* Added widgets/e-option-menu.lo.Christopher James Lahey2002-03-263-28/+69
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2002-03-25 Christopher James Lahey <clahey@ximian.com> * gal/Makefile.am (libgal_la_LIBADD): Added widgets/e-option-menu.lo. * gal/util/e-util.c, gal/util/e-util.h (e_strdupv): Copied this function from glib2. (GET_STRING_ARRAY_FROM_ELLIPSIS, GET_DUPLICATED_STRING_ARRAY_FROM_ELLIPSIS): Added these macros to automate getting a NULL terminated array off of the stack. * gal/widgets/Makefile.am (libwidgets_la_SOURCES): Added e-option-menu.c. (libwidgetsinclude_HEADERS): Added e-option-menu.h. * gal/widgets/e-canvas.c (e_canvas_class_init): Reformatted this function. * gal/widgets/e-gui-utils.c, gal/widgets/e-gui-utils.h (e_glade_xml_connect_widget, e_glade_xml_set_sensitive): Two new functions to automate pulling a widget from a GladeXML and either connecting a signal or setting the sensitivity. * gal/widgets/e-option-menu.c, gal/widgets/e-option-menu.h: New class to simplify the interface to GtkOptionMenu. svn path=/trunk/; revision=16246
* Call the parent function after doing all the internal work so that whenChristopher James Lahey2002-03-261-9/+9
| | | | | | | | | | | 2002-03-25 Christopher James Lahey <clahey@ximian.com> * e-table-memory-store.c (e_table_memory_store_insert, e_table_memory_store_insert_adopt, e_table_memory_store_remove): Call the parent function after doing all the internal work so that when the changed signal goes out, our work is already done. svn path=/trunk/; revision=16245
* +2002-03-20 Christopher James Lahey <clahey@ximian.com>Chris Lahey2002-03-221-15/+15
| | | | | | | | | + + * e-table-header-item.c: Adjust this to handle the new EPopupMenu + API. + svn path=/trunk/; revision=16223
* Add accelerators for "Find Now" and "Clear".Ettore Perazzoli2002-03-214-10/+18
| | | | | | | | | | | | | * e-search-bar.c (update_bonobo_menus): Add accelerators for "Find Now" and "Clear". * e-filter-bar.h: Change search labels as suggested in Anna's redesign [#16246]. * folder-browser.c: Reorder folder_browser_search_menu_items according to #16246. svn path=/trunk/; revision=16219
* Remove all the SearchBar items before setting them up again.Ettore Perazzoli2002-03-212-25/+80
| | | | | | | | | | * e-search-bar.c (update_bonobo_menus): Remove all the SearchBar items before setting them up again. (free_menu_items): New. (impl_destroy): Call it. (set_menu): Call it here too before adding the new items. svn path=/trunk/; revision=16218
* No accelerator for "FindNow". (add_button): Add a one-pixel padding to theEttore Perazzoli2002-03-192-2/+8
| | | | | | | | * e-search-bar.c (update_bonobo_menus): No accelerator for "FindNow". (add_button): Add a one-pixel padding to the button. svn path=/trunk/; revision=16201
* Rename the "Search Now" menu entry to "Find Now". Rename the correspondingEttore Perazzoli2002-03-192-4/+12
| | | | | | | | | | * e-search-bar.c (update_bonobo_menus): Rename the "Search Now" menu entry to "Find Now". Rename the corresponding verb to "ESearchBar:FindNow". (update_sensitivity): Updated accordingly. (setup_standard_verbs): Likewise. svn path=/trunk/; revision=16200
* New halper function to update the sensitivity of the commands.Ettore Perazzoli2002-03-192-0/+46
| | | | | | | | | | | * e-search-bar.c (update_sensitivity): New halper function to update the sensitivity of the commands. (entry_changed_cb): New callback to make the activate_button and the "Find Now" verb sensitive only if the entry has some contents. (activate_by_subitems): Connect the callback here. (setup_standard_verbs): Call update_sensitivity() here. svn path=/trunk/; revision=16199
* Init clear_button to NULL. (add_button): New helper function to add aEttore Perazzoli2002-03-193-15/+54
| | | | | | | | | | | | | | | | * e-search-bar.c (init): Init clear_button to NULL. (add_button): New helper function to add a button to the search bar with the right spacing etc. (clear_search): New helper function. (add_activate_button): Removed. (clear_button_clicked_cb): New. (e_search_bar_construct): Just add the button here using `add_button'. Also add a clear_button. (clear_verb_cb): Rewritten by means of `clear_search()'. * e-search-bar.h (ESearchBar): Add clear_button. svn path=/trunk/; revision=16198
* New, implementation for a new "SearchNow" verb. (setup_standard_verbs):Ettore Perazzoli2002-03-192-0/+21
| | | | | | | | | * e-search-bar.c (search_now_verb_cb): New, implementation for a new "SearchNow" verb. (setup_standard_verbs): Create verb here. (update_bonobo_menus): Add SearchNow menu item. svn path=/trunk/; revision=16197
* [Search bar re-design implementation, Take 2.]Ettore Perazzoli2002-03-194-30/+74
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (clear_verb_cb): New. (setup_standard_verbs): New. (e_search_bar_set_ui_component): Call it if a new BonoboUIComponent is set. (append_xml_menu_item): New helper function. (update_bonobo_menus): Use it. Also add a "Clear" menu item. (e_search_bar_construct): @menu_items can be NULL now. (e_search_bar_new): Same here. (set_menu): Work with NULL items. * e-filter-bar.c (menubar_activated): Don't handle E_FILTERBAR_RESET_ID anymore. * e-filter-bar.h: Remove `E_FILTERBAR_RESET_ID' and `E_FILTERBAR_RESET'. * folder-browser.c: Remove E_FILTERBAR_RESET menu entry. * gui/cal-search-bar.c: Removed `search_menu_items'. (cal_search_bar_menu_activated): Removed. (cal_search_bar_class_init): Don't install. (cal_search_bar_construct): No menu items here. * gui/component/addressbook.c (addressbook_menu_activated): Removed. (addressbook_factory_new_control): Don't connect anymore, as this signal has been removed from the ESearchBar. (addressbook_factory_new_control): No more custom menu items here. svn path=/trunk/; revision=16194
* Allow for per-item closures and also instead of taking a const charJeffrey Stedfast2002-03-162-37/+40
| | | | | | | | | | | | | 2002-03-15 Jeffrey Stedfast <fejj@ximian.com> * gal/gal/widgets/e-popup-menu.c: Allow for per-item closures and also instead of taking a const char *pixname, take a GtkWidget *pixmap instead. * gal/widgets/e-categories.c: Update to sync up with changes made to the EPopupMenu Api. svn path=/trunk/; revision=16182
* Check for a style_set signal on all the contained GnomeCanvasItems.Christopher James Lahey2002-03-166-0/+82
| | | | | | | | | | | | | | | | | | | | | 2002-03-15 Christopher James Lahey <clahey@ximian.com> * gal/widgets/e-canvas.c (e_canvas_style_set): Check for a style_set signal on all the contained GnomeCanvasItems. From gal/e-table/ChangeLog: 2002-03-15 Christopher James Lahey <clahey@ximian.com> * e-cell-toggle.c: Clear the pixmap cache in e_cell_style_set. * e-cell.c, e-cell.h (e_cell_style_set): Added this virtual method. * e-table-item.c, e-table-item.h: Call e_cell_style_set in out style_set signal. svn path=/trunk/; revision=16180
* [Start implementing the new Search Bar design.]Ettore Perazzoli2002-03-165-107/+178
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-search-bar.c (init): Init various members to NULL. (set_dropdown): Removed. (add_dropdown): Removed. (set_menu): New. (add_menu_items): New. (set_option): No need to setup the dropdown size here anymore. (verb_cb): Function implementing the search menu verbs. (update_bonobo_menus): New. (e_search_bar_set_ui_component): New. * e-search-bar.h: Remove the dropdown button stuff from struct ESearchBar. Add `uic' and `items' members. * e-filter-bar.c (e_filter_bar_new): Get a @uic arg. * folder-browser-factory.c (control_activate): Set the UI component on the search bar. * gui/tasks-control.c (tasks_control_activate): Call `e_tasks_set_ui_component()' here to give it the BonoboUIComponent. (tasks_control_deactivate): Likewise, call it here to unset the BonoboUIComponent. * gui/e-tasks.c (e_tasks_set_ui_component): New. * gui/calendar-commands.c (calendar_control_activate): Call gnome_calendar_set_ui_component() here. (calendar_control_deactivate): ...And here, with a NULL BonoboUIComponent. * gui/gnome-cal.c (gnome_calendar_set_ui_component): New. * gui/component/addressbook.c (control_activate): Call `e_search_bar_set_ui_component()' to set the BonoboUIComponent for the search bar. * gui/component/GNOME_Evolution_Addressbook.oaf.in: Add an icon for the LDAP sources configuration control. svn path=/trunk/; revision=16178
* Add a GdkPixmap * cache of rendered toggle images. This shouldChristopher James Lahey2002-03-161-48/+130
| | | | | | | | | | 2002-03-15 Christopher James Lahey <clahey@ximian.com> * e-cell-toggle.c: Add a GdkPixmap * cache of rendered toggle images. This should considerably speed up over the wire performance of ECellToggle. svn path=/trunk/; revision=16177
* Set horizontal scroll policy to GTK_POLICY_NEVER here. Don't set usizeChristopher James Lahey2002-03-162-9/+13
| | | | | | | | | | 2002-03-15 Christopher James Lahey <clahey@ximian.com> * e-multi-config-dialog.c (init): Set horizontal scroll policy to GTK_POLICY_NEVER here. Don't set usize here. Changed RGBA_COLOR to RGB_COLOR. Turned on horizontal resize. svn path=/trunk/; revision=16176
* New function that returns the total minimum width of all the columns.Christopher James Lahey2002-03-164-4/+39
| | | | | | | | | | | | | | | 2002-03-15 Christopher James Lahey <clahey@ximian.com> * e-table-header.c, e-table-header.h (e_table_header_min_width): New function that returns the total minimum width of all the columns. * e-table.c, e-table.h (set_header_width): Call e_table_header_min_width here instead of total_width. (et_size_request): Override the size_request method instead of doing set_usize. svn path=/trunk/; revision=16175
* Implemented capitalization keybindings.Christopher James Lahey2002-03-152-17/+91
| | | | | | | | | | | 2002-03-14 Christopher James Lahey <clahey@ximian.com> * e-cell-text.c: Implemented capitalization keybindings. * e-tree.c (item_key_press): Added parentheses to the default case here. svn path=/trunk/; revision=16168
* Made this return a boolean that returns whether the ETableSearch used theChristopher James Lahey2002-03-154-9/+12
| | | | | | | | | | | | | 2002-03-14 Christopher James Lahey <clahey@ximian.com> * e-table-search.c, e-table-search.h (e_table_search_backspace): Made this return a boolean that returns whether the ETableSearch used the backspace at all. * e-table.c (group_key_press), e-tree.c (item_key_press): Used the new return value from e_table_search_backspace. svn path=/trunk/; revision=16166