Commit Graph

1908 Commits

Author SHA1 Message Date
3ea7be06f0 enlarge the text box to accomodate the time info in different locales.
* e-dateedit.c: (create_children): enlarge the text box to accomodate
        the time info in different locales.

svn path=/trunk/; revision=25041
2004-03-12 08:44:23 +00:00
d3cb3f90f0 fixed ChangeLog
svn path=/trunk/; revision=25033
2004-03-11 20:29:15 +00:00
38e29c6191 Fix for bug #55267.
2004-03-11  Jeffrey Stedfast  <fejj@ximian.com>

	Fix for bug #55267.

	* e-filter-bar.c (set_property): Use efb->setquery properly (set
	to TRUE before calling set_item_id and FLASE afterwards). Also
	setquery to TRUE before emitting the "search-activated" signal so
	that we don't run the callback for the signal we are emitting.

svn path=/trunk/; revision=25032
2004-03-11 20:28:57 +00:00
2087067750 Use efb->setquery properly (set to TRUE before calling set_item_id and
2004-03-11  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (set_property): Use efb->setquery properly (set
	to TRUE before calling set_item_id and FLASE afterwards). Also
	setquery to TRUE before emitting the "search-activated" signal so
	that we don't run the callback for the signal we are emitting.

svn path=/trunk/; revision=25031
2004-03-11 20:18:43 +00:00
1f2d31973e Make the acces key Alt+O work.
Patch by hao.sheng@sun.com

svn path=/trunk/; revision=25004
2004-03-10 06:28:47 +00:00
a9e0ac686c Emit the "search-activated" signal. Fixes bug #55054.
2004-03-02  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (set_property): Emit the "search-activated"
	signal. Fixes bug #55054.

svn path=/trunk/; revision=24934
2004-03-02 19:51:19 +00:00
88040b5329 Create the arrows in these widgets as GTK_SHADOW_NONE, since the default
2004-02-26  Rodney Dawes  <dobey@ximian.com>

	* e-cell-renderer-combo.c (ecrc_get_size):
	* e-dateedit.c (create_children):
	* e-dropdown-button.c (e_dropdown_button_construct): Create the
	arrows in these widgets as GTK_SHADOW_NONE, since the default arrow
	type in GTK+ 2.x is flat triangle arrows, and shadow types are
	generally ignored for arrows anyway, and so we don't look ugly with
	themes that handle shadow types on arrows correctly

svn path=/trunk/; revision=24900
2004-02-26 22:20:15 +00:00
2fe63c34bb don't reference uninitialized memory
2004-02-26  JP Rosevear <jpr@ximian.com>

	* e-timezone-dialog/e-timezone-dialog.c
	(e_timezone_dialog_dispose): don't reference uninitialized memory

svn path=/trunk/; revision=24892
2004-02-26 18:24:16 +00:00
0608fee8c5 remove the right thing
2004-02-26  Christian Neumair <chris@gnome-de.org>

	* e-search-bar.c (remove_bonobo_menus): remove the right thing

svn path=/trunk/; revision=24889
2004-02-26 18:00:46 +00:00
f1fe42cea9 Before Update the bonobo ui component, remove it first.
2004-02-26  Bill Zhu <bill.zhu@sun.com>

	* e-search-bar.c (setup_bonobo_menus): Before Update the bonobo ui
	component, remove it first.

	Fixes #54788

svn path=/trunk/; revision=24881
2004-02-26 14:05:55 +00:00
e0163b782f reset motion_row/motion_col if the model changes. See bug #54757.
2004-02-26  Not Zed  <NotZed@Ximian.com>

        * e-table-item.c (eti_table_model_pre_change): reset
        motion_row/motion_col if the model changes.  See bug #54757.

svn path=/trunk/; revision=24878
2004-02-26 11:45:52 +00:00
2f31296184 Change the shadow type for the arrows here, so that themes that do handle
2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* gal/widgets/gal-combo-box.c (gal_combo_box_init): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* e-cell-popup.c (ecp_draw):
	* e-cell-spin-button.c (ecsb_draw):
	* e-table-header-utils.c (e_table_header_draw_button): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

2004-02-12  Rodney Dawes  <dobey@ximian.com>

	* e-vscrolled-bar.c (e_vscrolled_bar_init): Change the
	shadow type for the arrows here, so that themes that do handle the
	use of shadow types with arrows, draw things correctly, instead of
	following what the old default gtk+ did in 1.x

svn path=/trunk/; revision=24720
2004-02-12 17:02:31 +00:00
db1b452b25 Change the filename and section that we pass to gnome_help_display_desktop
2004-02-11  Rodney Dawes  <dobey@ximian.com>

	* e-multi-config-dialog.c (impl_response): Change the filename and
	section that we pass to gnome_help_display_desktop so that the help
	browser displays the documentation correctly

svn path=/trunk/; revision=24708
2004-02-11 18:30:32 +00:00
f9d588d588 Add a Help button (impl_response): Handle the Help button and open the
2004-02-10  Rodney Dawes  <dobey@ximian.com>

	* e-multi-config-dialog.c (init): Add a Help button
	(impl_response): Handle the Help button and open the documentation

	Fixes #30681

svn path=/trunk/; revision=24694
2004-02-10 23:21:22 +00:00
3212a68494 Don't show the task label by default
2004-02-05  Rodney Dawes  <dobey@ximian.com>

	* e-task-bar.c: Don't show the task label by default

svn path=/trunk/; revision=24636
2004-02-05 20:05:01 +00:00
b9c4553423 Moved here from shell/, since they are now used only by the components,
* e-activity-handler.c:
	* e-activity-handler.h:
	* e-task-bar.c:
	* e-task-bar.h:
	* e-task-widget.c:
	* e-task-widget.h: Moved here from shell/, since they are now used
	only by the components, not the shell itself.

	* Makefile.am (widgetsinclude_HEADERS,
	libemiscwidgets_la_SOURCES): add new files

svn path=/trunk/; revision=24586
2004-02-03 17:31:50 +00:00
dd5a050770 it's possible to get to this function without the EText ever being
2004-02-03 Chris Toshok <toshok@ximian.com>

	* gal/e-text/e-text.c (e_text_command): it's possible to get to
	this function without the EText ever being realized.  Since we
	create the layout in realize(), let's just create it here too.
	Fixes crash bug 46165 (aka "The Bug with a million dups").

svn path=/trunk/; revision=24579
2004-02-03 15:24:40 +00:00
4d0eb82b04 set image_buf/image_buf_size here instead of in all callers. also emit the
2004-02-02  Chris Toshok  <toshok@ximian.com>

	* e-image-chooser.c (set_image_from_data): set
	image_buf/image_buf_size here instead of in all callers.  also
	emit the "changed" signal here.
	(image_drag_data_received_cb): remove the copying to image_buf and
	emitting of "changed" from here.
	(e_image_chooser_set_from_file): only g_free (data) here if
	set_image_from_data failed.
	(e_image_chooser_set_image_data): copy the image data we're passed
	before calling set_image_data.  free it if rv == FALSE.

svn path=/trunk/; revision=24577
2004-02-03 02:32:29 +00:00
f06004a362 add an alignment around the image. This might not be enough. hrm.
2004-01-30  Chris Toshok  <toshok@ximian.com>

	* e-image-chooser.c (e_image_chooser_init): add an alignment
	around the image.  This might not be enough.  hrm.
	(set_image_from_data): handle the case where there's no image
	(image_height == image_width == 0).
	(e_image_chooser_get_image_data): new function.
	(e_image_chooser_set_image_data): new function.

svn path=/trunk/; revision=24552
2004-01-30 22:48:04 +00:00
e8ab6acfb9 abstract out the drag and droppable image widget from the contact list
2004-01-30  Chris Toshok  <toshok@ximian.com>

	* e-image-chooser.[ch]: abstract out the drag and droppable image
	widget from the contact list editor and stick it here.  There's
	some code for a "Browse..." button here but it's not enabled.

	* Makefile.am (widgetsinclude_HEADERS): add e-image-chooser.h.
	(libemiscwidgets_la_SOURCES): add e-image-chooser.c

svn path=/trunk/; revision=24549
2004-01-30 21:44:46 +00:00
fd7589b174 Only save the search-bar state OR the filter-bar state - decided based on
2004-01-30  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c (get_property): Only save the search-bar state OR
	the filter-bar state - decided based on what the search is. If the
	search is an advanced search, then save the filter-bar state,
	otherwise save the search-bar state.
	(set_property): Only need to restore the first state we find
	(filter-bar vs search-bar). If we are restoring filter-bar state,
	set efb->setquery to TRUE and then set the item_id to
	E_FILTERBAR_ADVANCED_ID.

svn path=/trunk/; revision=24542
2004-01-30 18:10:52 +00:00
085ce3b2f3 Same.
2004-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-search-bar.c (impl_get_property): Same.

	* e-filter-bar.c (get_property): Use
	g_value_set_string_take_ownership() instead of
	g_value_take_string() since we need snaps to work with glib-2.0
	earlier than 2.3.x.

svn path=/trunk/; revision=24507
2004-01-29 01:57:56 +00:00
55fd08582c Added a new property "state" which is READ-WRITE so that we can
2004-01-28  Jeffrey Stedfast  <fejj@ximian.com>

	* e-filter-bar.c: Added a new property "state" which is READ-WRITE
	so that we can save/restore state in the mailer code if we want
	to. Sort of a work-in-progress toward fixing bug #53195.
	(class_init): Ported to use the GObject property stuff instead of
	the deprecated GtkArg stuff.
	(get_property): Ported from impl_get_arg().
	(set_property): New object::set_property implementation to set the
	query state.

svn path=/trunk/; revision=24502
2004-01-28 22:03:15 +00:00
a91380ebe5 Use button->time for the mouse click event, so that the popup stays up on
2004-01-27  Rodney Dawes  <dobey@ximian.com>

	* gal/e-text/e-text.c (popup_targets_received): Use button->time for
	the mouse click event, so that the popup stays up on button release

	Fixes #47548

svn path=/trunk/; revision=24483
2004-01-27 22:58:06 +00:00
deaa622ca7 fix double free of the button event.
2004-01-27  Chris Toshok  <toshok@ximian.com>

	* gal/e-text/e-text.c (popup_targets_received): fix double free of
	the button event.

svn path=/trunk/; revision=24481
2004-01-27 22:47:15 +00:00
398f56b883 print strikeout/underline
2004-01-27  Radek Doulik  <rodo@ximian.com>

	* e-cell-text.c (ect_print): print strikeout/underline

	Fixes #32240

svn path=/trunk/; revision=24466
2004-01-27 15:18:08 +00:00
7e9fd7e251 if the source is primary, don't allow it to be un-selected
2004-01-24  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (cell_toggled_callback): if the source is
	primary, don't allow it to be un-selected

svn path=/trunk/; revision=24397
2004-01-24 05:36:53 +00:00
e418965910 Be even more exactly like the GtkButton painting stuff
2004-01-20  Rodney Dawes  <dobey@ximian.com>

	* e-combo-button.c (paint): Be even more exactly like the GtkButton
	painting stuff

	Fixes #52988

svn path=/trunk/; revision=24343
2004-01-21 04:18:57 +00:00
e6b238108c set a primary selection if there is one before the rebuild
2004-01-20  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (rebuild_model): set a primary selection if
	there is one before the rebuild
	(e_source_selector_set_primary_selection): block the signals when
	clearing the tree selection to make the op atomic; emit the
	selection_changed signal if a hidden selection is not currently
	selectecd

svn path=/trunk/; revision=24342
2004-01-21 03:04:08 +00:00
f375cfac08 provide parent iter in/out arg (test_collapse_row_callback): use priv
2004-01-20  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (find_source_iter): provide parent iter
	in/out arg
	(test_collapse_row_callback): use priv shortcut
	(e_source_selector_select_source): pass parent iter
	(e_source_selector_unselect_source): ditto
	(e_source_selector_peek_primary_selection): return the right thing
	if the primary selection is currently hidden
	(e_source_selector_set_primary_selection): set the primary
	selection properly if the source node is currently hidden

svn path=/trunk/; revision=24337
2004-01-20 22:56:38 +00:00
dc50178156 util routine to clear the row reference to the saved primary selection
2004-01-20  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (clear_saved_primary_selection): util
	routine to clear the row reference to the saved primary selection
	(find_source_iter): unref the model data retrieved
	(rebuild_existing_cb): ditto
	(toggle_cell_data_func): ditto
	(text_cell_data_func): ditto
	(selection_func): ditto; clear the saved primary selection if
	something else is selected
	(cell_toggled_callback): ditto
	(test_collapse_row_callback): clear the toggled_last flag
	(row_expanded_callback): once we've restored the saved primary
	selection, clear it
	(selector_button_press_event): unref the model data
	(impl_dispose): use clear_saved_primary_selection
	(init): the store column holds object not pointer type
	(e_source_selector_peek_primary_selection): unref the model da

svn path=/trunk/; revision=24334
2004-01-20 21:24:54 +00:00
254104e312 check if the collapsing node has its child selected, if so take a row
2004-01-20  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (test_collapse_row_callback): check if the
	collapsing node has its child selected, if so take a row reference
	to remember the selection
	(row_expanded_callback): check if the expanding node has the saved
	primary selection under it and re-select if so
	(init): listen for signals
	(impl_dispose): free the primary selection

svn path=/trunk/; revision=24329
2004-01-20 19:16:41 +00:00
3c4559b613 create the data structure for rebuilding the model (free_rebuild_data):
2004-01-19  JP Rosevear <jpr@ximian.com>

	* e-source-selector.c (create_rebuild_data): create the data
	structure for rebuilding the model
	(free_rebuild_data): free it
	(rebuild_existing_cb): check for the sources that are still
	existing or deleted
	(rebuild_model): do incremental updates
	(selection_func): if the last thing we did was toggle, we don't
	actually want to highlight and if the source is not checked, check
	it
	(cell_toggled_callback): indicate that a toggle just occurred
	(init): initial toggled last to false
	(e_source_selector_set_primary_selection): set some preconditions

	Fixes #51787

svn path=/trunk/; revision=24312
2004-01-19 19:28:34 +00:00
17ad1a2085 Fix remaining usages of GTK_*EXPANDER* defines
2004-01-14  Rodney Dawes  <dobey@ximian.com>

	* e-expander.[ch]: Fix remaining usages of GTK_*EXPANDER* defines

svn path=/trunk/; revision=24226
2004-01-14 19:57:12 +00:00
2fd22d547c Implemented #127527: the attachment bar is packed inside an EExpander
2003-12-02  ERDI Gergo  <cactus@cactus.rulez.org>

        * e-msg-composer.c: Implemented #127527: the attachment bar is
        packed inside an EExpander

svn path=/trunk/; revision=24146
2004-01-10 16:14:17 +00:00
0651968c80 free event (e_text_do_popup): copy the event so we have good data
2004-01-06  JP Rosevear <jpr@ximian.com>

	* gal/e-text/e-text.c (popup_targets_received): free event
	(e_text_do_popup): copy the event so we have good data

	Fixes #51956

svn path=/trunk/; revision=24071
2004-01-06 18:21:11 +00:00
1e0a5a8fa1 Fix for bug #46349
2003-12-22  Rodney Dawes  <dobey@ximian.com>

	Fix for bug #46349

	* e-combo-button.c: Use the appropriate style painting for a
	button widget, since we are a button

svn path=/trunk/; revision=24002
2003-12-22 17:31:46 +00:00
4e71399fd5 call gdk_window_focus() so that keyboard works correctly.
2003-12-18  Harry Lu  <harry.lu@sun.com>

        * e-cell-date-edit.c: (e_cell_date_edit_do_popup): call
        gdk_window_focus() so that keyboard works correctly.

svn path=/trunk/; revision=23975
2003-12-18 03:59:42 +00:00
0a13fd3702 Fixed bug 51917, add atk support for ClickToAdd
2003-12-16  Yuedong Du  <yuedong.du@sun.com>

        Fixed bug 51917, add atk support for ClickToAdd

        * gal/a11y/e-table/Makefile.am: add files.
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.c:
        (gal_a11y_e_table_click_to_add_factory_get_accessible_type),
        (gal_a11y_e_table_click_to_add_factory_create_accessible),
        (gal_a11y_e_table_click_to_add_factory_class_init),
        (gal_a11y_e_table_click_to_add_factory_init),
        (gal_a11y_e_table_click_to_add_factory_get_type): factory
        for ClickToAdd
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add-factory.h:
        ditto
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add.c:
        (etcta_get_n_actions), (etcta_get_description),
        (etcta_action_get_name), (idle_do_action), (etcta_do_action),
        (atk_action_interface_init): a "click" action interface.
        (etcta_get_name),
        (etcta_get_n_children), (etcta_ref_child): create accessible
        according to which child is available. Either rect or row.
        (etcta_class_init),
        (etcta_init), (gal_a11y_e_table_click_to_add_get_type),
        (etcta_event): listen to canvas event, emit children-changed signal
        when it found rect/row was changed.
        (gal_a11y_e_table_click_to_add_new):
        * gal/a11y/e-table/gal-a11y-e-table-click-to-add.h:
        * gal/a11y/e-table/gal-a11y-e-table-item-factory.c:
        (gal_a11y_e_table_item_factory_create_accessible):
        * gal/a11y/e-table/gal-a11y-e-table.c: (init_child_item),
        (et_get_n_children), (et_ref_child): change the trick way to
        create a11y object for a table item. Because ClickToAdd is also
        a table item, previous way do not work for clicktoadd.
        * gal/e-table/e-table-click-to-add.c: (etcta_class_init):
        atk_register the new a11y factory.

svn path=/trunk/; revision=23956
2003-12-17 02:35:20 +00:00
a3b04be4f0 Use e_source_equal() instead of comparing pointers. This allows user to
2003-12-16  Hans Petter Jansson  <hpj@ximian.com>

	* misc/e-source-option-menu.c (select_source_foreach_menu_item):
	Use e_source_equal() instead of comparing pointers. This allows user
	to pass in a source that was obtained from somewhere else. Set the
	matching internal source as "selected" instead of the one passed in.
	(select_source): Emit signal only if we found a match. Don't ref/unref
	anything, since the selected source will always be from our internal
	list.

svn path=/trunk/; revision=23954
2003-12-17 00:50:03 +00:00
c074252e4f NULL out priv->instance when we unref it. Bug #51713.
2003-12-10  Not Zed  <NotZed@Ximian.com>

        * menus/gal-view-menus.c (remove_instance): NULL out
        priv->instance when we unref it.  Bug #51713.

svn path=/trunk/; revision=23895
2003-12-10 01:12:42 +00:00
ceb9cedfc4 Fixed #50844
2003-12-08  Andrew Wu <yang.wu@sun.com>
        Fixed #50844

        * gal/a11y/e-table/gal-a11y-e-cell-popup.c:
        * gal/a11y/e-table/gal-a11y-e-cell-popup.h:
          a11y impl. for e-cell-popup.

svn path=/trunk/; revision=23670
2003-12-08 05:52:32 +00:00
f6b7ede5b1 Remove hard coded disable deprecated flags
2003-12-06  JP Rosevear <jpr@ximian.com>

	* */Makefile.am: Remove hard coded disable deprecated flags

svn path=/trunk/; revision=23658
2003-12-06 18:08:00 +00:00
c65fbd94c0 Fix for bugzilla bug #51624 and #51627.
2003-12-04  Harry Lu <harry.lu@sun.com>

        Fix for bugzilla bug #51624 and #51627.

        * e-calendar-item.c: (e_calendar_item_selection_add_days):
        set the date to the first day of the month so that user can use
        keyboard's arrow key to select a date.
        (e_calendar_item_set_selection_if_emission): only set selection_changed
        if emission is TRUE.
        * e-calendar.c: (e_calendar_init): add back the "clicked" handler so
        that user can use keyboard to click the button.
         (e_calendar_start_auto_move): no need to move since it is already
        handled by the clicked handler
        (e_calendar_on_prev_clicked), (e_calendar_on_next_clicked): move the
        month here.
        * e-dateedit.c: (e_date_edit_show_date_popup): use gdk_window_focus
        instead of gdk_keyboard_grab so that the focus won't lost if user click
        the button with keyboard.
        (hide_date_popup): no need to call gdk_keyboard_ungrab.

svn path=/trunk/; revision=23642
2003-12-05 02:01:46 +00:00
3db4f804fd (init): Set the mode on the text cell
renderer to GTK_CELL_RENDERER_MODE_ACTIVATABLE so clicking on the
text doesn't change the status of the checkbox.  [Many thanks to
Jonathan Blandford for telling me how to do this!]

svn path=/trunk/; revision=23588
2003-12-02 20:31:02 +00:00
6434d2b055 Fixed Bug 51252, 51254, 51255. add some code deal with key press event.
2003-11-23 Andrew Wu <yang.wu@sun.com>

       Fixed Bug 51252, 51254, 51255.
        * gal/e-table/e-table-header-item.c:
        (ethi_event):add some code deal with key press event.
        * gal/e-table/e-table-header-item.h
        add a member "selected_col" for keyboard navigation.
        * gal/e-table/e-table.c
        (e_table_setup_header):make header can focus.

svn path=/trunk/; revision=23572
2003-12-02 07:55:14 +00:00
c84cfbc83a Fixes #51139
2003-12-02  Bolian Yin  <bolian.yin@sun.com>

        Fixes #51139

        * gal/a11y/gal-a11y-e-table-item: (gal_a11y_e_table_item_ref_selection)
        (gal_a11y_e_table_item_unref_selection): new functions.

        * gal/e-table/e-table-item.c : change the place of emitting ""selection_model_removed" signal.

svn path=/trunk/; revision=23571
2003-12-02 07:40:28 +00:00
addb2f0ea7 a11y implementations for ECellText. new functions to support corresponding
2003-12-02  Tim Wo  <tim.wo@sun.com>

	* gal/a11y/e-table/gal-a11y-e-cell-text.c: (ect_get_text),
	(ect_get_character_at_offset), (ect_get_caret_offset),
	(ect_get_character_count), (ect_get_n_selections),
	(ect_get_selection), (ect_add_selection), (ect_remove_selection),
	(ect_set_selection), (ect_set_caret_offset),
	(ect_set_text_contents), (ect_insert_text), (ect_copy_text),
	(ect_delete_text), (ect_cut_text), (ect_paste_text),
	(ect_class_init): a11y implementations for ECellText.
	* gal/e-table/e-cell-text.c: (e_cell_text_set_selection),
	(e_cell_text_get_selection), (e_cell_text_copy_clipboard),
	(e_cell_text_paste_clipboard), (e_cell_text_delete_selection): new
	functions to support corresponding atk operations.
	* gal/e-table/e-cell-text.h: some APIs added to support atk operations.

svn path=/trunk/; revision=23568
2003-12-02 07:20:04 +00:00
9b6e4f3e85 list the signal args properl
2003-12-01  JP Rosevear <jpr@ximian.com>

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

svn path=/trunk/; revision=23542
2003-12-01 22:01:14 +00:00
a9a80fcf4e Added test-source-option-menu executable
svn path=/trunk/; revision=23518
2003-12-01 12:16:43 +00:00