Commit Graph

176 Commits

Author SHA1 Message Date
2a9def0dc9 new function, build pango layout for string.
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
2002-11-15 20:29:59 +00:00
e69c2b94c2 New. (e_clipped_label_destroy): Removed.
* 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
2002-11-14 21:49:19 +00:00
792733a3c6 Changed to use g_object_*() and g_signal_*()
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
2002-11-14 17:46:44 +00:00
f9ea4ba866 port to GObject.
2002-11-11  Chris Toshok  <toshok@ximian.com>

	* e-dateedit.[ch]: port to GObject.

svn path=/trunk/; revision=18717
2002-11-12 03:26:44 +00:00
07d5771f17 (init): Use GObject functions instead of
GtkObject throughout.

svn path=/trunk/; revision=18706
2002-11-11 19:50:22 +00:00
f2b2d6abb5 Removed. (impl_finalize): New. (class_init): Override GObject::finalize,
* 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
2002-11-11 17:23:00 +00:00
ce98870b71 include gnome-dialog
2002-11-07  JP Rosevear  <jpr@ximian.com>

	* e-filter-bar.c: include gnome-dialog

svn path=/trunk/; revision=18649
2002-11-07 23:01:25 +00:00
b59fb51176 ignore the generated marshal source.
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
2002-11-07 04:52:05 +00:00
f26171af1e (impl_expose_event): Use
gtk_container_propagate_expose().

svn path=/trunk/; revision=18526
2002-11-04 15:20:53 +00:00
9c73777f22 First big sync of my GNOME 2 porting work (incomplete, and still
pretty broken).

Weeeeee!

svn path=/trunk/; revision=18503
2002-11-02 08:25:03 +00:00
3a11574695 Emit a search_activated signal. (e_search_bar_set_item_id): Revert to
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
2002-10-28 22:37:53 +00:00
4b68843dfa If the clear button was pressed, we want the entry to be sensitive (not
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
2002-10-24 01:48:20 +00:00
eac24fd792 (activate_by_subitems): gtk_widget_grab_focus()
on the entry when adding it in.

svn path=/trunk/; revision=18418
2002-10-23 17:39:09 +00:00
4665c04ce8 check if the selection fits in the leftover days
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
2002-10-15 16:45:21 +00:00
44a1f8aeec [Add a small delay to the switching of pages in the multi-config
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
2002-09-30 20:02:36 +00:00
ce52b78fb8 (create_page_container): Don't set up
the description label here.

svn path=/trunk/; revision=18243
2002-09-27 18:21:58 +00:00
c010a13946 Clear search by setting text to "" and search to first search.
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
2002-09-24 04:58:00 +00:00
0ddf9119dd Fix some non-ANSI switch statements.
* e-filter-bar.c: Fix some non-ANSI switch statements.

svn path=/trunk/; revision=18155
2002-09-22 22:50:50 +00:00
ca0432fb04 need to make the find now button sensitive when you select something from
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
2002-08-29 21:41:07 +00:00
bd94562c04 If the item is ADVANCED_ID, check the query and efb->setquery to see
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
2002-08-29 17:24:43 +00:00
061919e5c4 Don't set the item id; clear search isn't in the menu anymore. Fixes
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
2002-08-23 16:31:26 +00:00
8b36f00ff0 don't adjust for two digit dates here, the e_time_parse routines do that
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
2002-08-22 15:40:39 +00:00
115a2836e1 Set the query text into the filter name when saving it, for #10979.
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
2002-08-06 05:19:49 +00:00
1080bf46a1 Add missing cast. (e_calendar_item_signal_emission_idle_cb): Likewise.
* 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
2002-07-24 06:28:45 +00:00
ef539c50b7 Also perform a search on the query_changed signal, which is what gets
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
2002-07-23 16:03:07 +00:00
6dee50394a (setup_standard_verbs): Set the <commands> part
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
2002-07-17 16:57:38 +00:00
2b12d52c56 (update_sensitivity): Removed.
(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
2002-07-02 16:14:08 +00:00
e3041e673f (subitem_activated_cb): Don't emit
"search_activated" here.
(e_search_bar_set_subitem_id): And not here either.
(e_search_bar_set_text): Same.

svn path=/trunk/; revision=17346
2002-07-02 15:55:55 +00:00
2227003e55 (activate_by_subitems): Don't set the entry to be
an empty string here.

svn path=/trunk/; revision=17345
2002-07-02 15:50:13 +00:00
0fd51afe4b (build_items): Put the numbers in front of the
rules only if type is zero [i.e. not in the option menu].

svn path=/trunk/; revision=17224
2002-06-18 19:38:12 +00:00
02eab77be4 New helper function. (build_items): g_strdup() the text for all the items.
* 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
2002-05-30 17:56:52 +00:00
2ab4653659 Put the search menu in a SearchPlaceholder.
* evolution.xml: Put the search menu in a SearchPlaceholder.

svn path=/trunk/; revision=16979
2002-05-22 22:56:57 +00:00
5b60538512 New, overrides GtkWidget::draw. (impl_expose_event): New, overrides
* e-combo-button.c (impl_draw): New, overrides GtkWidget::draw.
(impl_expose_event): New, overrides GtkWidget::expose_event.

svn path=/trunk/; revision=16978
2002-05-22 22:15:33 +00:00
2867707026 Prepend the advanced menu with a separator.
* 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-20 20:53:17 +00:00
888c7ceeb8 Strip underscores from the menu item labels.
* e-search-bar.c (activate_by_subitems): Strip underscores from
the menu item labels.

svn path=/trunk/; revision=16952
2002-05-20 20:45:35 +00:00
70e9e37d3e Don't print out the colors here unless debugging is turned on.
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 21:27:05 +00:00
78b91d43f8 Updated this to match the changed function name in gal.
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 21:53:06 +00:00
4ebf5cbd15 Oops. The previous change made the search bar widgets get packed in the
* 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
2002-04-09 19:42:56 +00:00
5be9af3b13 Construct the buttons earlier so that the option-menu-setup code that
* 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 19:55:50 +00:00
f3a6f0a3a4 show a specific page number
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-04-06 19:55:49 +00:00
a455db74f5 Change the ETable specs so it doesn't sort.
* e-multi-config-dialog.c: Change the ETable specs so it doesn't
sort.

svn path=/trunk/; revision=16289
2002-03-29 22:05:40 +00:00
9eeff8bfec Add accelerators for "Find Now" and "Clear".
* 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
2002-03-20 22:25:06 +00:00
bc11ab14a5 Remove all the SearchBar items before setting them up again.
* 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
2002-03-20 21:18:08 +00:00
91c17571fd No accelerator for "FindNow". (add_button): Add a one-pixel padding to the
* 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
2002-03-18 21:20:57 +00:00
74eff81d8f Rename the "Search Now" menu entry to "Find Now". Rename the corresponding
* 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
2002-03-18 20:56:15 +00:00
1657404cf7 New halper function to update the sensitivity of the commands.
* 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
2002-03-18 20:54:36 +00:00
ad1e6e7f44 Init clear_button to NULL. (add_button): New helper function to add a
* 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
2002-03-18 20:37:14 +00:00
6b5f07ff01 New, implementation for a new "SearchNow" verb. (setup_standard_verbs):
* 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
2002-03-18 20:14:42 +00:00
6f9b8ecfb3 [Search bar re-design implementation, Take 2.]
* 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-18 20:06:00 +00:00
c85ad2279b [Start implementing the new Search Bar design.]
* 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 22:51:13 +00:00