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
* 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
* 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
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
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
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
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
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
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
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
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
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
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
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
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
* 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
* 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
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
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
* 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
* 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
* 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
* 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
* 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
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
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
* 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
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
2002-03-13 Jeffrey Stedfast <fejj@ximian.com>
* e-charset-picker.c (add_charset): If the charset item doesn't
have a class (aka "Unknown"), don't write a class name, instead
just give the charset name as the menu item label. Fixes bug
#14753.
svn path=/trunk/; revision=16154
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* e-multi-config-dialog.c: Removed Page struct.
(e_multi_config_dialog_add_page): Select the initial row after
appending to the model.
svn path=/trunk/; revision=16131
2002-03-12 Christopher James Lahey <clahey@ximian.com>
* e-multi-config-dialog.c (init): Use Use e_table_memory_store
instead of e_table_memory_callbacks. Use e_cell_vbox to include a
pixbuf cell and a text cell.
svn path=/trunk/; revision=16130
* e-multi-config-dialog.c (init): Use GNOME_STOCK_BUTTON_CLOSE,
not GNOME_STOCK_BUTTON_CANCEL.
(do_close): Renamed from `cancel'.
(do_apply): Renamed from `apply'.
(do_ok): Renamed from `ok'.
svn path=/trunk/; revision=16106
* e-multi-config-dialog.c: Rename Page.widget -> Page.page_widget;
it is now an EConfigPage instead of just a GtkWidget. Add
`num_unapplied' to EMultiConfigDialogPrivate. Derive from
GnomeDialog, not GtkWindow.
(update_buttons): New function to update the sensitiveness of the
buttons according to whether all the settings have been applied or
not.
(page_new): Likewise.
(create_page_container): Renamed from `create_page_widget'.
(init): Add Apply/OK/Cancel buttons to the dialog. Init
->num_unapplied to zero.
(page_changed_callback): New, callback for the page's "changed"
signal.
(e_multi_config_dialog_add_page): Connect the callback, update
->num_unapplied, update the buttons by calling `update_buttons'.
(ok): New function for handling the OK button.
(apply): New function for handling the Apply button.
(cancel): New function for handling the Cancel button.
(impl_clicked): Implementation for the GnomeDialog's ::clicked
signal.
(class_init): Install.
* test-multi-config-dialog.c (add_pages): Update to use
EConfigPages instead of plain GtkWidgets.
* e-multi-config-dialog.c, e-multi-config-dialog.h: Derive from
GnomeDialog, not GtkWindow.
* e-config-page.c: New.
* e-config-page.h: New.
svn path=/trunk/; revision=16006
2002-03-09 Chris Toshok <toshok@ximian.com>
* configure.in: Bumped version number to 0.19.99.7
* gal/widgets/e-unicode.c (e_utf8_strstrcasedecomp): we want to
return o from here on success, not p, since p is incremented one
unicode character past the point where the substring begins.
(e_utf8_strstrcase): same.
svn path=/trunk/; revision=16000
2002-02-27 Larry Ewing <lewing@ximian.com>
* misc/e-combo-button.c (impl_button_press_event): make a right
click bring up the popup menu.
svn path=/trunk/; revision=15858