Commit Graph

15 Commits

Author SHA1 Message Date
012597c56e Fix for bug #259606
svn path=/trunk/; revision=33438
2007-04-20 05:37:15 +00:00
5ddb0f8e08 Change the variable name from is_actived to is_active
svn path=/trunk/; revision=31987
2006-05-15 10:27:23 +00:00
fe716726ac Fixes #341525
2006-05-15  Li Yuan <li.yuan@sun.com>

        Fixes #341525

        * e-sidebar.c: (button_toggled_callback):
        If the button has been selected, it is no need to emit the signal.

svn path=/trunk/; revision=31986
2006-05-15 10:20:33 +00:00
cb71029bdb shell/ChangeLog shell/e-component-registry.c shell/e-component-registry.h
2005-05-16	Srinivasa Ragavan <sragavan@novell.com>

shell/ChangeLog
shell/e-component-registry.c
shell/e-component-registry.h
shell/e-shell-window.c
shell/e-sidebar.h
shell/e-sidebar.c
addressbook/ChangeLog
addressbook/gui/component/GNOME_Evolution_Addressbook.server.in.in
calendar/ChangeLog
calendar/gui/GNOME_Evolution_Calendar.server.in.in
mail/ChangeLog
mail/GNOME_Evolution_Mail.server.in.in

Added support for tooltips for component switching buttons.

svn path=/trunk/; revision=29358
2005-05-16 04:46:43 +00:00
8541e321f0 new protos, modes
2005-01-04  JP Rosevear  <jpr@novell.com>

	* e-sidebar.h: new protos, modes

	* e-sidebar.c: handle 2 more modes, text only and toolbar style;
	allow visibility to be set for the buttons

	* e-shell-window.h: new proto

	* e-shell-window.c (setup_widgets): set the sidebar setting and
	visibility based on stored gconf settings
	(e_shell_window_save_defaults): save the current sidebar setting
	visibility
	(e_shell_window_peek_sidebar): return the sidebar

	* e-shell-window-commands.c (e_shell_window_commands_setup): add
	listeners for each of the component button radio items and for the
	hide toggle
	(view_buttons_icontext_item_toggled_handler): listener callback,
	set mode
	(view_buttons_icon_item_toggled_handler): ditto
	(view_buttons_text_item_toggled_handler): ditto
	(view_buttons_toolbar_item_toggled_handler): ditto
	(view_buttons_hide_item_toggled_handler): listener callback, set
	visibility

	* apps_evolution_shell.schemas.in.in: add component button style
	and visibility defaults

svn path=/trunk/; revision=28239
2005-01-04 19:58:45 +00:00
a0da580e7e Convert to G_DEFINE_TYPE
2004-12-21  JP Rosevear  <jpr@novell.com>

	* e-corba-config-page.c: Convert to G_DEFINE_TYPE

	* e-history.c: ditto

	* e-shell-folder-title-bar.c: ditto

	* e-shell-offline-handler.c: ditto

	* e-shell-settings-dialog.c: ditto

	* e-shell-window.c: ditto

	* e-sidebar.c: ditto

	* e-user-creatable-items-handler.c: ditto

	* e-component-registry.c: ditto

	* importer/evolution-importer-client.c: ditto

svn path=/trunk/; revision=28164
2004-12-21 15:42:46 +00:00
b2e6995ed5 Fixes #59361
2004-06-04  JP Rosevear  <jpr@novell.com>

	Fixes #59361

	* e-sidebar.c (layout_buttons): handle 0 and 1 buttons properly

svn path=/trunk/; revision=26210
2004-06-04 14:07:10 +00:00
12fb773502 Change the algorithm so that if the buttons can't be laid out perfectly
* e-sidebar.c (layout_buttons): Change the algorithm so that if
	the buttons can't be laid out perfectly rectangularly, then the
	extra space is given to the first button (ie, Mail), rather than
	the last button (eg, Connector). Also, merge the icons-only and
	icons-plus-text layout code together since they were nearly
	identical.
	(e_sidebar_add_button, e_sidebar_set_mode): Tweak things a bit so
	that in icons-only mode, the icons are centered in the buttons.

svn path=/trunk/; revision=25807
2004-05-05 15:36:37 +00:00
c0754b6345 take into account the position of the sidebar which isnt on the very left
2004-04-22  Trent Lloyd  <lathiat@bur.st>

	* e-sidebar.c (do_layout_text_buttons): take into account the position
	of the sidebar which isnt on the very left in right to left languages,
	otherwise the buttons are drawn in the wrong place.

svn path=/trunk/; revision=25582
2004-04-22 13:53:28 +00:00
410e8fb0a4 track hbox and label widget (button_free): unref them
2004-01-11  JP Rosevear <jpr@ximian.com>

	* e-sidebar.c (button_new): track hbox and label widget
	(button_free): unref them
	(do_layout_text_buttons): layout buttons with text
	(do_layout_icon_buttons): layout icon only buttons
	(do_layout): layout based on mode
	(impl_size_request): distinguish between horizontal and vertical
	padding
	(init): set a default mode
	(e_sidebar_add_button): align the button text to the left, only
	add the text if we are in the text mode
	(e_sidebar_get_mode): accessor
	(e_sidebar_set_mode): accessor

	* e-sidebar.h: add prototype and mode enum

svn path=/trunk/; revision=24163
2004-01-12 04:08:16 +00:00
61b53f116a remove padding around the folder list. (impl_size_request): don't add
2003-12-11  Not Zed  <NotZed@Ximian.com>

        * e-sidebar.c (do_layout): remove padding around the folder list.
        (impl_size_request): don't add padding around folder list.

svn path=/trunk/; revision=23917
2003-12-11 00:04:57 +00:00
5d07b9739f Call e_sidebar_select_button() instead of switch_view().
* e-shell-window.c (e_shell_window_switch_to_component): Call
e_sidebar_select_button() instead of switch_view().

* e-sidebar.c (update_buttons): New helper function.
(e_sidebar_select_button): New.

svn path=/trunk/; revision=23299
2003-11-12 20:22:12 +00:00
0935ca72c9 Add a little border to the buttons so it looks nicer.
* e-sidebar.c (e_sidebar_add_button): Add a little border to the
buttons so it looks nicer.

* e-component-registry.c (query_components): Set an icon from the
"evolution:button_icon" attribute.

svn path=/trunk/; revision=23023
2003-10-23 00:20:01 +00:00
ec0f879ca6 (PADDING): Increase to 6 pixels.
(button_toggled_callback): Add a cast.
(e_sidebar_set_selection_widget): Handle the NULL widget case
properly.
(impl_remove): New, implementation for GtkContainer::remove.
(do_layout): Add padding between the selection_widget and the
button box.

svn path=/trunk/; revision=22989
2003-10-22 17:24:38 +00:00
3dbe4a3ce1 Add an "evolution:button_label" property on the component for use in the
* gui/component/GNOME_Evolution_Addressbook.server.in.in: Add an
"evolution:button_label" property on the component for use in the
shell.

* gui/GNOME_Evolution_Calendar.server.in.in: Add an
"evolution:button_label" property on the component for use in the
shell.

* GNOME_Evolution_Mail.server.in.in: Add an
"evolution:button_label" attribute to the Component for use in the
shell.

* e-shell-window.c (struct _ComponentView): New member button_id.
(struct _EShellWindowPrivate): New member sidebar.
(component_new_new): Get a button_id arg.
(component_button_clicked_callback): Removed.
(sidebar_button_selected_callback): New.
(create_component_button): Removed.
(setup_widget): Set up the sidebar using ESidebar and hook up its
"button_selected" signal.  Also get the component name from a
property on the server info.
(e_shell_window_new): Use BASE_VERSION for the version in the app
name instead of hardcoding "1.5".

* e-sidebar.c: New.
* e-sidebar.h: New.

svn path=/trunk/; revision=22988
2003-10-22 17:14:05 +00:00