2005-05-25 Not Zed <NotZed@Ximian.com>
* e-plugin-mono.[ch]: Removed, these are now implemented as a
plugin.
* e-plugin.c (ep_load_plugin): separate out plugin xml loading
code from the loading loop. If a plugin type doesn't exist, then
save it in a list for later checking.
(ep_load): call above to do the work.
(e_plugin_register_type): check the pending doc list, if any
plugins now have a type, load them.
(e_plugin_type_hook_get_type): a plugin hook for registering new
plugin types ('loaders') at runtime.
svn path=/trunk/; revision=29412
2005-05-13 Not Zed <NotZed@Ximian.com>
* e-popup.c (emph_popup_factory): if we have a factory method
supplied, call that as well. More flexible popup building.
(emph_construct_menu): load factory def.
svn path=/trunk/; revision=29352
2005-05-03 Not Zed <NotZed@Ximian.com>
* e-profile-event.c (e_profile_event_emit): undefine
e_profile_event_emit if we are compiled without profiling. The
'abi' is not, nor was ever changed.
* e-profile-event.h: revert previous patch, the assumptions were
incorrect & the code misunderstood.
svn path=/trunk/; revision=29261
2005-05-02 Rodney Dawes <dobey@novell.com>
* e-profile-event.h (e_profile_event_emit): This method is a no-op if
we are building without ENABLE_PROFILE defined, so we don't need to
define a macro to no-op it, and change ABI at compile time
svn path=/trunk/; revision=29259
2005-04-29 Tor Lillqvist <tml@novell.com>
Port to Windows, initial commit:
* configure.in: Check for Win32, define Automake conditional
OS_WIN32. Check for regexec() perhaps in separate -lregex, define
REGEX_LIBS if so. Require glib-2.0 >= 2.6 (and thus also gtk+-2.0
>= 2.6) so that we can use the gstdio wrappers for full support of
non-ASCII filenames on Win32. Don't use -D_REENTRANT on Win32, has
ne special meaning.
* gal.pc.in: Require gtk+-2.0 >= 2.6 also here for consistency.
* gal-zip.in: New file, used to build zipfile format distribution
of gal for Win32.
* configure.in
* Makefile.am: Add gal-zip(.in).
* */Makefile.am
* */*.c: Harmonize -I and #include conventions. (Of course, this
hasn't anything to do with Windows porting as such, I just got
carried away...) Use only -I$(top_srcdir). Use paths to gal
headers staring with "gal", except for headers from the same
directory as the .c file, which are included as such. Include all
gal headers using doublequotes. Sort #includes and remove
duplicates and obvious redundancies. Include config.h first
without any HAVE_CONFIG_H, then system headers, then other GNOME
lib headers, than gal's own headers. Just include gtk.h instead of
separate gtk*.h headers. Don't include gi18n.h, include e-i18n.h
to use e_gettext() consistently.
* gal/Makefile.am: Use -no-undefined on Win32 so that libtool
agrees to build a shared library. Because of the bidirectional
dependency between libgal and libgal-a11y we can build libgal-a11y
sanely as a shared library on Win32, so we don't install any
separate libgal-a11y at all. So, on Win32, link the stuff that
goes into libgal-a11y also into libgal. Link with REGEX_LIBS.
* gal/a11y/Makefile.am: See above. Just build a dummy static
libgal-a11y on Win32 (can't convince Automake not to build the
library at all on one platform using Automake ifdef,
apparently). Then (this is a gross hack) explicitly remove the
library after installation in the install-data-local rule.
* gal/e-table/Makefile.am
* gal/e-table/e-table-config.c: Rename ETABLE_GLADEDIR to
GAL_GLADEDIR for consistency.
* gal/e-table/e-cell-date.c: No localtime_r() in Microsoft's C
library, but its localtime() *is* thread-safe.
* gal/e-table/e-cell-text.c
* gal/e-table/e-cell-tree.c
* gal/e-table/e-cell-vbox.c
* gal/e-text/e-text.c
* gal/widgets/e-unicode.c: Remove unnecessary inclusion of gdkx.h.
* gal/e-table/e-cell-tree.c (ect_realize): Instead of the Xlib
macro None (whose value is zero), use the corresponding
zero-valued enums from the appropriate GDK type.
* gal/e-table/e-table-config.c
* gal/e-table/e-table-field-chooser.c
* gal/menus/gal-define-views-dialog.c
* gal/menus/gal-view-instance-save-as-dialog.c
* gal/menus/gal-view-new-dialog.c
* gal/widgets/e-categories-master-list-array.c
* gal/widgets/e-categories-master-list-dialog.c
* gal/widgets/e-categories.c: Use g_build_filename() to construct
pathnames at run-time instead of compile-time. On Windows the
macros GAL_GLADEDIR and GAL_IMAGESDIR expand to function calls, in
order to support installing in a freely chosen location.
* gal/e-table/e-table-item.c
* gal/e-table/e-cell-vbox.c: Instrad of the Xlib GrabSuccess, use
GDK_GRAB_SUCCESS (which has the same value).
* gal/e-table/e-table-specification.c (e_table_specification_load_from_file)
* gal/e-table/e-table.c (e_table_load_specification)
* gal/e-table/e-tree-table-adapter.c (open_file)
* gal/menus/gal-view-instance.c (load_current_view)
* gal/menus/gal-view-instance.c (load_current_view): On Win32,
convert filename to the locale character set before passing to
xmlParseFile() which doesn't use UTF-8 filenames. Use gstdio
wrappers.
* gal/util/Makefile.am: Define GAL_PREFIX as $prefix. Define
GAL_LOCALEDIR, GAL_GLADEDIR and GAL_IMAGESDIR also here for
e-win32-reloc.c. Include e-win32-reloc.c on Win32.
* gal/util/e-iconv.c (e_iconv_init): Use g_win32_getlocale() on
Windows.
* gal/util/e-util.c
* gal/util/e-xml-utils.c: Use g_mkstemp() instead of non-portable
mkstemp(). Use GLib pathname manipulation functions. Use gstdio
wrappers.
* gal/util/e-util-private.h: New file. Contains just Win32 bits
for now that redefine the directory names from the Makefile as
functions calls.
* gal/util/e-win32-reloc.c: New file. Contains a minimal DllMain()
and functions to support freely chosen installation location on
Windows.
* gal/util/e-xml-utils.c: No fsync() in the Microsoft C library.
* gal/windgets/Makefile.am: Add -I$(top_srcdir)/gal for
consistency with the sibling Makefile.am files.
* gal/widgets/e-canvas.c: Instead of the Xlib AlreadyGrabbed, use
GDK_GRAB_ALREADY_GRABBED.
svn path=/trunk/; revision=29249
2005-04-27 Mengjie Yu <meng-jie.yu@sun.com>
* e-config.c: (e_config_create_window):
We should set the title of the window.
Fixes#300477
svn path=/trunk/; revision=29236
2005-03-14 Not Zed <NotZed@Ximian.com>
** See bug #73550 (related for config pages)
* e-config.c (ech_config_widget_factory): if we are disabled, then
noop.
(ech_config_factory, ech_commit, ech_abort): same.
svn path=/trunk/; revision=29031
2005-02-10 Not Zed <NotZed@Ximian.com>
** See bug #61363 & mail/ChangeLog
* e-config.c (ec_rebuild): work properly if the page factory
returns NULL, so the code can selectivly turn off pages.
(ec_druid_next, ec_druid_prev): skip non-created pages.
* e-config.c (ec_rebuild): re-order notebook child properly.
Connect to destroy events so we update the widget-node widget
pointer properly for linked ui reconfigures.
svn path=/trunk/; revision=28827
2005-02-17 Not Zed <NotZed@Ximian.com>
* e-popup.c (ep_prune_tree, ep_build_tree, e_popup_create_menu):
completely rewritten. Simpler and more robust.
2005-02-16 Not Zed <NotZed@Ximian.com>
* e-popup.c (e_popup_create_menu): do the visibility mask test
before sorting. don't perform it on bar's or submenu's anymore,
calculate when not to show/create them.
svn path=/trunk/; revision=28813
2005-02-07 Not Zed <NotZed@Ximian.com>
* e-popup.c (emph_construct_menu):
* e-menu.c (emph_construct_menu):
* e-config.c (emph_construct_menu): Don't let the 'id' field,
which identifies the target menu/whatever, to be NULL, otherwise
it gets added to all.
svn path=/trunk/; revision=28728
2005-02-04 Rodney Dawes <dobey@novell.com>
* e-passwords.c (ep_ask_password): Set the border widths for the
dialog containers to be HIG compliant
Fix the padding/spacing on the internal vbox to be HIG compliant
svn path=/trunk/; revision=28711
2005-01-27 Li Yuan <li.yuan@sun.com>
* gal/a11y/e-table/Makefile.am:
add gal-a11y-e-cell-vbox.h and gal-a11y-e-cell-vbox.c
* gal/a11y/e-table/gal-a11y-e-cell-popup.c:
(gal_a11y_e_cell_popup_new):
add i18n support to strings.
Fixes#70261
* gal/a11y/e-table/gal-a11y-e-cell-text.c:
(ect_dispose): disconnect the insert and the delete signal.
(ect_check):do some check works.
(ect_get_name), (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_set_caret_offset),
(ect_insert_text): use e_cell_text_get_text_by_view instead of
e_cell_text_get_text. make get_name work well when e-cell-text
is being edited.
(ect_do_action_edit): call e_table_item_enter_edit only when
the cell is editable.
(ect_text_inserted_cb), (ect_text_deleted_cb):
emit the text_changed::insert(delete) signal. make gnopernicus
know the text_changed.
(ect_class_init): add dispose function.
(ect_action_init): add the edit action.
(gal_a11y_e_cell_text_get_type): no ect_init function now.
(cell_text_destroyed): unref the atkobject.
(gal_a11y_e_cell_text_new): connect text_inserted and text_deleted
singals and make sure the state of editable is right.
* gal/a11y/e-table/gal-a11y-e-cell-text.h:
add two signal handler id.
* gal/a11y/e-table/gal-a11y-e-cell-toggle.c:
(gal_a11y_e_cell_toggle_dispose): fix#70261.
(model_change_cb): make gnopernicus to report state change signal.
(gal_a11y_e_cell_toggle_new):add i18n support to strings.
* gal/a11y/e-table/gal-a11y-e-cell-tree.c:
(gal_a11y_e_cell_tree_new):
add i18n support to strings.
Fixes#61688
* gal/a11y/e-table/gal-a11y-e-cell-vbox.c: (ecv_get_n_children),
(subcell_destroyed), (ecv_ref_child), (ecv_dispose),
(ecv_ref_accessible_at_point), (ecv_class_init), (ecv_init),
(ecv_atk_component_iface_init), (gal_a11y_e_cell_vbox_get_type),
(gal_a11y_e_cell_vbox_new):
* gal/a11y/e-table/gal-a11y-e-cell-vbox.h:
implement a11y object of ECellVbox.
Fixes#48976
* gal/a11y/e-table/gal-a11y-e-cell.c:
function name are changed form eti_* to gal_a11y_e_cell_*
(is_valid): check if the cell is valid.
(gal_a11y_e_cell_dispose): make sure state_set is null.
(gal_a11y_e_cell_get_name): implement the get_name function.
(gal_a11y_e_cell_ref_state_set): add VISIBLE state.
(gal_a11y_e_cell_get_parent),
(gal_a11y_e_cell_get_index_in_parent),
(gal_a11y_e_cell_get_extents): use e_tree_get_cell_geometry and
e_table_get_cell_geometry instead of e_table_item_get_cell_geometry.
(gal_a11y_e_cell_grab_focus): make grab_focus work with e-tree also.
(gal_a11y_e_cell_atk_component_iface_init),
(gal_a11y_e_cell_class_init): add get_name function.
(gal_a11y_e_cell_init): add some state to cell.
(idle_do_action): check if cell is valid.
(gal_a11y_e_cell_action_do_action): check if cell is valid.
(gal_a11y_e_cell_get_type), (gal_a11y_e_cell_construct):
ref e-table-item.
* gal/a11y/e-table/gal-a11y-e-table-click-to-add.c:
(etcta_get_description), (etcta_action_get_name): add i18n support to strings.
(etcta_get_name): if etcta has message, return it.
(etcta_ref_state_set): implement the ref_state_set function,
add SENSITIVE and SHOWING state.
(etcta_class_init):add ref_state_set function.
(etcta_selection_cursor_changed): call atk_focus_tracker_notify
to a11y-e-cell
(gal_a11y_e_table_click_to_add_new): connect
etcta_selection_cursor_changed to cursor_changed signal.
* gal/a11y/e-table/gal-a11y-e-table-item-factory.c:
(gal_a11y_e_table_item_factory_create_accessible):
parameters of gal_a11y_e_table_item_new have been changed.
Fixes#68675Fixes#70324Fixes#68681Fixes#68627
* gal/a11y/e-table/gal-a11y-e-table-item.c:
remove the cell_data support.
(item_destroyed): add ATK_STATE_DEFUNCT state and unref selection.
(eti_ref_state_set): just ref state_set.
(eti_dispose): we have unref selection in item_destroyed.
remove the cell_data support.
(eti_ref_child): remove support for column header. use eti_ref_at
instead of atk_table_ref_at.
(eti_get_extents): add support for click to add.
(eti_ref_accessible_at_point): e-tree and e-table are different here.
(cell_destroyed): add a check and unref item. remove the cell_data support.
(eti_ref_at): if e-table-item has DEFUNCT state, return NULL.
remove the cell_data support.
(eti_get_column_header): use column name as the a11y name. set it role
as ATK_ROLE_TABLE_COLUMN_HEADER.
(table_is_row_selected): use view_to_model_row to convert row when
uses source model.
(table_get_selected_rows): if e-table-item has DEFUNCT state, return 0.
(table_remove_row_selection): use view_to_model_row to convert row
when uses source model.
(eti_rows_inserted), (eti_rows_deleted): remove the cell_data support.
(eti_tree_model_node_changed_cb): emit visible-data-changed signal. for
the eti_clear_rows have been removed.
(eti_header_structure_changed): remove the cell_data support.
(eti_class_init): add eti_ref_state_set, remove eti_get_parent
and eti_get_index_in_parent.
(eti_init): init parent and index_in_parent.
(gal_a11y_e_table_item_new): add some states. get name form parents.
init role correctly. add FOCUSED state to focused cell.
remove the cell_data support.
(eti_a11y_selection_changed_cb): if e-table-item has DEFUNCT state,
just return.
(eti_a11y_cursor_changed_cb): remove the FOCUESD state form the old cell.
(selection_add_selection): if it has been focused already, just return.
if another row was focused, clear it first.
(selection_ref_selection): use eti_ref_at instead of atk_table_ref_at.
(gal_a11y_e_table_item_init): add this function.
* gal/a11y/e-table/gal-a11y-e-table-item.h:
add gal_a11y_e_table_item_init and change the parameters of
gal_a11y_e_table_item_new.
* gal/a11y/e-table/gal-a11y-e-table.c:
(find_first_table_item): find the first item of the group.
(eti_get_accessible), (find_table_item): find the first table item.
(init_child_item): ref every group's first item.
(et_ref_accessible_at_point): no need to call init_child_item here.
just ref the item.
(et_get_n_children): add support for multiple ETableItems.
(et_ref_child): add support for multiple ETableItems.
(et_get_layer): Set AtkLayer as ATK_LAYER_WIDGET for e-table.
(et_atk_component_iface_init): add et_get_layer function.
(gal_a11y_e_table_new):ref the a11y and widget, and unref it in
the idle function to avoid crash.
Fixes#71158
* gal/a11y/e-table/gal-a11y-e-tree.c:
(init_child_item): just get the a11y object of the child item.
(et_get_layer): Set AtkLayer as ATK_LAYER_WIDGET for etree.
(et_atk_component_iface_init): add et_get_layer function.
* gal/util/e-marshal.list:
add support for the text_inserted and text_deleted signal.
svn path=/trunk/; revision=28572
2005-01-26 Jeffrey Stedfast <fejj@novell.com>
* e-config.c (ech_check): If the plugin isn't enabled, return TRUE
so that the suer doesn't get locked in one of the account druid
pages.
svn path=/trunk/; revision=28565
2005-01-17 Rodrigo Moya <rodrigo@novell.com>
* e-url.[ch]:
* Makefile.am: removed e-url.[ch], which are now in libedataserver.
svn path=/trunk/; revision=28437
2005-01-07 Rodrigo Moya <rodrigo@novell.com>
* e-categories-config.c (e_categories_config_open_dialog_for_entry):
use the new ECategoriesDialog in libedataserverui.
svn path=/trunk/; revision=28274
2005-01-06 Rodney Dawes <dobey@novell.com>
* e-config.c (e_config_create_window): Add the GTK_DIALOG_NOSEPARATOR
flag, and set appropriate border widths around the main dialog vbox,
and action area, to be more HIG compliant
svn path=/trunk/; revision=28262
2005-01-06 JP Rosevear <jpr@novell.com>
* e-error-tool.c (main): use the base name only, so if a full path
is passed to us we still write out to the current directory, for
when builddir != srcdir
svn path=/trunk/; revision=28253
2005-01-04 Rodrigo Moya <rodrigo@novell.com>
* e-categories-config.[ch]: removed most of the API. The rest will
be removed as the GAL dependencies are sorted out.
svn path=/trunk/; revision=28235
2004-12-22 Not Zed <NotZed@Ximian.com>
* e-plugin.c: include config.h.
2004-12-17 Not Zed <NotZed@Ximian.com>
* e-popup.c (e_popup_add_items): add a translation domain to api.
(e_popup_create_menu): translate the label using the supplied
domain.
(emph_popup_factory): pass domain to popup_add_items.
* e-plugin.c (ep_construct): if we have a localedir set, then
bindtextdomain so gettext can find it.
svn path=/trunk/; revision=28175
2004-12-21 JP Rosevear <jpr@novell.com>
Fixes#30992
* e-config.c (e_config_create_window): use cancel rather than
close button
svn path=/trunk/; revision=28171
2004-12-06 Not Zed <NotZed@Ximian.com>
* e-config.c (ec_rebuild): set the table spacings to 6 for
generated tables.
2004-11-22 Not Zed <NotZed@Ximian.com>
* e-config.c (ec_rebuild): if the table existed before and we have
no factory, destroy it always.
svn path=/trunk/; revision=28069
2004-12-03 Not Zed <NotZed@Ximian.com>
* e-config.c (ec_rebuild): revert the patch from chenthill, this
wont work yet.
svn path=/trunk/; revision=28057
2004-11-26 JP Rosevear <jpr@novell.com>
* e-gui-utils.c (e_create_image_widget): get the image directly
from the icon factory
* e-config.c: insert debug defines so we can
turn spew on and off
* e-event.c: insert debug defines so we can turn spew on and off
* e-menu.c: insert debug defines so we can turn spew on and off
* e-plugin.c: insert debug defines and set to off for now
* e-popup.c: insert debug defines so we can turn spew on and off
(e_popup_create_menu): get the image directly from the icon
factory
svn path=/trunk/; revision=27997
2004-11-26 JP Rosevear <jpr@novell.com>
* e-icon-factory.h: add proto
* e-icon-factory.c (e_icon_factory_init): cast to kill warning
(e_icon_factory_get_image): new function to return a GtkImage
widget give an icon name and size
svn path=/trunk/; revision=27995
2004-11-25 Chenthill Palanisamy <pchenthill@novell.com>
* e-config.c (ec_rebuild): Set the row and column spacings as
tweleve while creating the table to make it HIG compliant.
svn path=/trunk/; revision=27985
2004-11-19 Not Zed <NotZed@Ximian.com>
* e-plugin.c (ep_load): if the plugin fails to load just disable
it, don't unref it (it may be referenced elsewhere).
svn path=/trunk/; revision=27944
2004-11-18 Not Zed <NotZed@Ximian.com>
* e-plugin.c (epl_loadmodule): split out module loadng code.
(epl_construct): if we're enabled, and load-on-startup is set,
load the module right away. Not to be abused!
svn path=/trunk/; revision=27939
2004-11-03 Not Zed <NotZed@Ximian.com>
* e-plugin.c (e_plugin_list_plugins): added helper api to list all
plugins.
(ep_construct): load authors into new list for them.
(e_plugin_register_type): setup disabled list.
(ep_construct): dont load the hooks if we're not enabled.
(e_plugin_enable): make this a virutal method.
(e_plugin_invoke): if we're disabled, noop.
svn path=/trunk/; revision=27809
2004-11-01 Not Zed <NotZed@Ximian.com>
** See bug #68787
* e-account.c (xml_set_content): check the new val isn't null
before dereferencing it.
* e-account.c (xml_set_prop): same here.
svn path=/trunk/; revision=27789
2004-10-20 Not Zed <NotZed@Ximian.com>
* e-config.c (ec_rebuild): check for empty trailing sections/pages
after we exit the main loop.
* e-plugin.c (e_plugin_get_type): make ~/.eplugins the default
eplugin location, not ~/.eplug.
2004-10-18 Not Zed <NotZed@Ximian.com>
* e-config.h: fix some forward decls.
svn path=/trunk/; revision=27644