2003-04-23 Jeffrey Stedfast <fejj@ximian.com>
* gal-view-instance.c (load_current_view): Try stat'ing the file
before loading it with xmlParseFile() to avoid warnign spewage
from libxml2 saying that the file doesn't exist.
svn path=/trunk/; revision=20955
2003-04-22 Anna Dirks <anna@ximian.com>
*misc/e-multi-config-dialog.c : add appropriate padding
and spacing to the settings dialog. Fixes#41392.
svn path=/trunk/; revision=20942
2003-04-21 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): use unicode ellipsis char for
breaking lines. Use g_utf8_find_prev_char and check for failure
so that we don't tight loop for small cells that can't display
any chars.
svn path=/trunk/; revision=20924
2003-04-21 Mike Kestner <mkestner@ximian.com>
* e-cell-tree.c (ect_draw): use e_tree_table_adapter_node_get_next
to determine how to draw sibling lines.
(ect_print): ditto
* e-tree-table-adapter.c (e_t_t_a_node_get_next): new
svn path=/trunk/; revision=20902
2003-04-19 Chris Toshok <toshok@ximian.com>
[ fixes evolution bug #40464 ]
* e-table.c (e_table_class_init): use G_SIGNAL_TYPE_STATIC_SCOPE
for the GtkSelectionData args of table_drag_data_get and
table_drag_data_received.
svn path=/trunk/; revision=20900
2003-04-18 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): if the layout splits into more
than one line, shorten it to a single line with elipses.
(generate_layout): don't ref NULL layouts
(ect_enter_edit): use g_new0 for the CellEdit
(get_position_from_xy): use generate_layout since edit->layout
isn't necessarily set here.
svn path=/trunk/; revision=20892
2003-04-16 Mike Kestner <mkestner@ximian.com>
* e-cell-text.c (build_layout): set width and alignment of layout.
(generate_layout): set width on existing layout and pass new width
param to build_layout.
(ect_draw): pass width to generate_layout
(ect_height): pass width to generate_layout
(ect_enter_edit): pass width to generate_layout
(ect_max_width): pass width to generate_layout
(ect_max_width_by_row): pass width to generate_layout
(ect_show_tooltip): pass width to generate_layout
(e_cell_text_view_command): pass width to generate_layout
svn path=/trunk/; revision=20870
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-calendar-item.c (e_calendar_item_update): Unref the metrics.
(e_calendar_item_draw): Re-use the widget's context instead of
creating a new one. Unref the metrics.
(e_calendar_item_draw_month): Unref the metrics. Don't create the
layout where it might be leaked by an early return. Unref the layout
before returning if we're outside the clip area.
(e_calendar_item_draw_day_numbers): Unref the metrics.
(e_calendar_item_recalc_sizes): Unref the metrics.
(e_calendar_item_convert_position_to_day): Unref the metrics.
* e-calendar.c (e_calendar_size_allocate): Unref the metrics.
svn path=/trunk/; revision=20855
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* gal-view-instance.c (gal_view_instance_get_popup_menu): Free the
id when we're done with it.
svn path=/trunk/; revision=20854
2003-04-15 Hans Petter Jansson <hpj@ximian.com>
* e-table-header-utils.c (e_table_draw_elided_string): Don't unref
the layout that was passed in.
(e_table_header_draw_button): Always unref the layout when we're
done with it.
* e-tree-table-adapter.c (e_tree_table_adapter_load_expanded_state):
Free the id when we're done with it.
svn path=/trunk/; revision=20853
2003-04-15 Mike Kestner <mkestner@ximian.com>
* gal-define-views-dialog.c (g_d_v_d_init): fix padding and
default size. Fixed warnings elsewhere in file.
(g_d_v_d_set_collection): set the dialog title
svn path=/trunk/; revision=20851
2003-04-11 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (do_advanced): Change the border width and
padding to comply with the HIG. Fixes bug #41202.
(do_advanced): Changed the button ordering from Cancel/Save/OK to
Save/Cancel/OK to comply with the HIG. Fixes bug #41207.
svn path=/trunk/; revision=20829
2003-04-11 Jeffrey Stedfast <fejj@ximian.com>
* e-filter-bar.c (do_advanced): Change the border width and
padding to comply with the HIG. Fixes bug #41202.
svn path=/trunk/; revision=20828
2003-04-11 JP Rosevear <jpr@ximian.com>
* e-table-one.c (one_dispose): free data here since we don't have
source in finalize
svn path=/trunk/; revision=20817
2003-04-08 Mike Kestner <mkestner@ximian.com>
* e-search-bar.c (set_option): kill an old e_utf8_gtk usage
and remove some straggling e-font.h includes.
svn path=/trunk/; revision=20769
2003-04-07 Chris Toshok <toshok@ximian.com>
* gal/widgets/e-canvas-background.c (ecb_class_init):
fill_color_gdk is a boxed GdkColor, not a pointer.
(ecb_set_property): same.
(ecb_get_property): same.
svn path=/trunk/; revision=20741
2003-04-03 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-entry.c (e_entry_init): set handle_popup to TRUE on
the EText.
* gal/e-text/e-text.c (e_text_set_property): add setter for
handle_popup.
(e_text_get_property): add getter for handle_popup.
(e_text_event): only do our special popup handling if handle_popup
is true. otherwise, pass the event along.
(e_text_class_init): install the handle_popup property.
(e_text_init): init handle_popup to FALSE, so we get default
behavior in most cases.
* gal/e-text/e-text.h: add "handle_popup" field, so the user of an
EText can decide whether to handle popups themselves.
svn path=/trunk/; revision=20664
2003-04-03 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-text.c (e_text_commit_cb): emit a keypress signal.
yes, i know this might not correspond to a single keypress, but..
svn path=/trunk/; revision=20659
2003-04-02 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-text.c (e_text_copy_clipboard): ifdef
gtk_widget_get_clipboard since we need to build against gtk 2.0.
(e_text_update_primary_selection): same.
(e_text_paste): same.
(e_text_do_popup): same.
svn path=/trunk/; revision=20657
2003-04-02 Chris Toshok <toshok@ximian.com>
* gal/e-text/e-text.c (e_text_dispose): just disconnect based on
DATA, so we only need 1 call.
(e_text_event): same.
svn path=/trunk/; revision=20655
2003-04-02 Chris Toshok <toshok@ximian.com>
[ either fixes#39702 or comes damn, damn close. also, fixes EText
to not suck *nearly* as much. ]
* gal/util/e-marshal.list: add NONE:POINTER,INT,OBJECT.
* gal/e-text/e-entry.h: (struct _EEntryClass): popup ->
populate_popup.
* gal/e-text/e-entry.c (proxy_changed): rename, the old name was
too damn long.
(proxy_activate): same.
(proxy_populate_popup): same, and change from popup to
populate_popup.
(e_entry_init): track change to cb names, and populate_popup.
also, pass the ECanvas's im_context to the EText.
(e_entry_class_init): POPUP -> POPULATE_POPUP.
* gal/e-text/e-text.h (struct _EText): remove the old selection
stuff, and add im_context/reset_im_context fields.
(struct _ETextClass): popup -> populate_popup.
* gal/e-text/e-text.c (e_text_dispose): remove all the
GtkInvisible based selection stuff, and disconnect from/unref the
im_context.
(e_text_set_property): add "im_context" handling.
(e_text_get_property): same.
(e_text_event): connect/disconnect from the IM context's signals
in the FOCUS_CHANGE handler. in the KEY_PRESS/RELEASE handler,
use gtk_im_context_filter_keypress if we have an im_context.
also, use e_text_do_popup now instead of just emitting the "popup"
signal.
(e_text_copy_clipboard): new function.
(e_text_delete_selection): new function.
(e_text_cut_clipboard): new function.
(e_text_paste_clipboard): new function.
(e_text_select_all): new function.
(primary_get_cb): new function, handle requests for the primary
selection when we're the owner.
(primary_clear_cb): new function, unfinished.
(e_text_update_primary_selection): new function.
(paste_received): new function, insert pasted text.
(e_text_paste): new function,
(popup_menu_detach): new function, not needed really.
(popup_targets_received): new function, pop up the popup once we
have the selection information necessary to sensitize the c/c/p
buttons.
(e_text_do_popup): new function, request the selection.
(e_text_reset_im_context): new function.
(e_text_command): for E_TEP_SELECT, call
e_text_update_primary_selection. for E_TEP_DELETE/INSERT,
_delete_selection -> e_text_delete_selection. for E_TEP_COPY,
call e_text_copy_clipboard. for E_TEP_PASTE/E_TEP_GET_SELECTION
call e_text_paste.
(e_text_class_init): change the "popup" signal to
"populate_popup". Also, add the "im_context" property.
(e_text_commit_cb): new function. IM context callback.
(e_text_retrieve_surrounding_cb): new function. IM context
callback.
(e_text_delete_surrounding_cb): new function. IM context
callback. unfinished.
svn path=/trunk/; revision=20653
2003-04-02 Hans Petter Jansson <hpj@ximian.com>
* e-calendar-item.c (e_calendar_item_set_selection): For example;
a selection ending 2003-apr-02 does not fit into the remaining
shown days after 1969-dec. Stop assuming that it does.
svn path=/trunk/; revision=20652
2003-04-02 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (update_node): restore expanded
state of node and all children. Fixes Ximian bug #40393.
(check_expanded): new traverser function
svn path=/trunk/; revision=20642
2003-04-01 Chris Toshok <toshok@ximian.com>
[ fixes bug #39508 ]
* gal/e-text/e-text.c (e_text_command): add back in some suitably
pango-ized code to get EText's scrolling horizontally as you move
the cursor.
svn path=/trunk/; revision=20625
2003-03-31 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (kill_gnode): if killing the root
node, set it to NULL in the priv data. Bug #39441.
svn path=/trunk/; revision=20607
2003-03-26 Not Zed <NotZed@Ximian.com>
* gal/e-text/e-entry.c (e_entry_show_popup): set the popup to
insensitive when we pop it down. hack to force it to lose focus,
fix for #39719.
svn path=/trunk/; revision=20531
2003-03-24 Mike Kestner <mkestner@ximian.com>
* e-tree-table-adapter.c (update_node): don't call delete_node
on the root node since generate_tree already does that. Thanks
to Antonio Xu <antonio.xu@sun.com> for identifying the cause of
the bug and providing a candidate patch. Bug #38320.
svn path=/trunk/; revision=20481