aboutsummaryrefslogtreecommitdiffstats
path: root/shell/e-shell-folder-title-bar.h
Commit message (Collapse)AuthorAgeFilesLines
* Remove some `#if 0'ed broken code. New members title_icon andEttore Perazzoli2002-07-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-folder-title-bar.c: Remove some `#if 0'ed broken code. New members title_icon and title_button_icon in struct EShellFolderTitleBarPrivate. Remove member icon_widget. New static global variable empty_pixbuf. (init): Initialize these new members to NULL. Don't initialize icon_widget anymore since it's gone. (e_shell_folder_title_bar_construct): Create the title_button_icon and pack it into the title_button_hbox. Also, create the title_icon and pack that one as well. Retouched some of the hardcoded padding values. (size_allocate_icon): Rewritten to use the title_icon and return the allocated space like size_allocate_navigation_buttons. (e_shell_folder_title_bar_set_icon): Remove bogus const from the @icon arg. Ref the pixbuf, and update the two pixmap widgets from it. If @icon is NULL, use the empty_pixbuf. (impl_destroy): Renamed from destroy(). (realize): Removed. (unrealize): Removed. (impl_size_allocate): Renamed from size_allocate(). (class_init): Call it. (add_icon_widget): Removed. (new_empty_pixbuf): New. (new_empty_pixmap_widget): New. (size_allocate_navigation_buttons_and_title_icon): Renamed from size_allocate_navigation_buttons; set up the title_icon too. * e-shell-view.c (update_folder_title_bar): Unref the folder_icon after using it. * e-icon-factory.c (e_icon_factory_get_icon): Ref the returned pixbuf. svn path=/trunk/; revision=17419
* New. (display_uri): Call it before returning so the navigation buttonsEttore Perazzoli2002-02-231-0/+4
| | | | | | | | | | | | * e-shell-view.c (update_navigation_buttons): New. (display_uri): Call it before returning so the navigation buttons always have the right sensitivity. * e-shell-folder-title-bar.c (e_shell_folder_title_bar_update_navigation_buttons): New. (add_navigation_buttons): Remove the "Back" label. svn path=/trunk/; revision=15799
* `e_shell_folder_title_bar_set_title_clickable()', notEttore Perazzoli2002-02-231-2/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-view.c (e_shell_view_show_folder_bar): `e_shell_folder_title_bar_set_title_clickable()', not `e_shell_folder_title_bar_set_clickable()'. * e-shell-folder-title-bar.c: Rename `button', `button_label' and `button_arrow' to `title_button', `title_button_label' and `title_button_arrow'. Renamed `label' to `title_label'. Renamed `arrow_xpm' to `down_arrow_xpm'. Added `left_arrow.xpm' and `right_arrow.xpm'. (class_init): Add the "back_clicked" and "forward_clicked" signals. (add_navigation_buttons): New function to add the navigation buttons to the title bar. (back_button_clicked_callback): Callback for the back button, emits "back_clicked". (forward_button_clicked_callback): Callback for the forward button, emits "forward_clicked". (e_shell_folder_title_bar_construct): Call `add_navigation_buttons()'. (forward_button_clicked_callback): (create_arrow_pixmap): Removed. (create_pixmap_widget_from_xpm): New. (title_button_box_realize_cb): Removed. (e_shell_folder_title_bar_construct): Don't connect. Just add the icon normally using the new `create_pixmap_widget_from_xpm()'. (e_shell_folder_title_bar_set_title_clickable): Renamed from `e_shell_folder_title_bar_set_clickable'. (size_allocate_navigation_buttons): New. (size_allocate_title_button): Get an @offset. (size_allocate_label): Get an @offset. (size_allocate): Allocate the navigation buttons and offset everything else accordingly. * e-shell-folder-title-bar.h: New signals "back_clicked", "forward_clicked". svn path=/trunk/; revision=15797
* Fix the license text to make sense.Ettore Perazzoli2001-10-271-1/+0
| | | | svn path=/trunk/; revision=14192
* Update the licensing information to require version 2 of the GPLEttore Perazzoli2001-10-271-2/+2
| | | | | | explicitly. svn path=/trunk/; revision=14186
* Remove member `hbox' from `struct _EShellFolderTitleBarPrivate'.Ettore Perazzoli2001-08-071-13/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * e-shell-folder-title-bar.c: Remove member `hbox' from `struct _EShellFolderTitleBarPrivate'. (make_icon_pixmap): Removed. (rgb_from_gdk_color): Removed. (endarken_style): Removed. (set_style_cb): Removed. (create_arrow_pixmap): Renamed from `create_icon_pixmap'. (get_max_clipped_label_width): New helper function. (size_allocate_icon): New helper function. (size_allocate_button): New helper function. (size_allocate_label): New helper function. (add_icon_widget): New helper function. (realize): Changed to use `add_icon_widget()'. (size_allocate): New function, handler for the ::size_allocate method. (class_init): Install it. (e_shell_folder_title_bar_construct): Changed so that the widget get added to this widget instead of adding an hbox to it and adding the widgets to the hbox. (e_shell_folder_title_bar_set_icon): Changed to use `add_icon_widget()'. * e-shell-folder-title-bar.h, e-shell-folder-title-bar.c: Changed to derive from GtkHBox, not GtkEventBox. svn path=/trunk/; revision=11718
* Update the copyrights, replacing Helix Code with Ximian andEttore Perazzoli2001-06-231-1/+1
| | | | | | helixcode.com with ximian.com all over the place. svn path=/trunk/; revision=10440
* New function (probably should just be static).Jason Leach2001-05-311-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 2001-05-30 Jason Leach <jleach@ximian.com> * e-shell-view.c (e_shell_view_set_current_shortcuts_group_num): New function (probably should just be static). (e_shell_view_load_settings): Load the current shortcut group here using the above new function. (e_shell_view_save_settings): Save current shortcut group in here. 2001-05-30 Jason Leach <jleach@ximian.com> * e-shell-folder-title-bar.c: New 'folder_bar_label' member for EShellFolderTitleBar, it's for information that's shown to the left of the icon like the dates in the calendar (or, potentially total and unread numbers for mailer). (e_shell_folder_title_bar_set_folder_bar_label): New function, lets others set the title bar extra label. * Evolution-ShellView.idl: New method 'setFolderBarLabel' for our exposed ShellView interface. * evolution-shell-view.c (class_init): New signal "set_folder_bar_label" for EvolutionShellViewClass. * evolution-shell-view.c (impl_ShellView_set_folder_bar_label): Emit the new signal here. * e-shell-view.c (setup_corba_interface): Connect the signal here. * e-shell-view.c (corba_interface_set_folder_bar_label): New function, callback for the above signals, does the actual extra label setting for the folder title bar. * e-shell-folder-commands.c (e_shell_command_add_to_shortcut_bar): Fix a warning here. svn path=/trunk/; revision=10059
* Remove <config.h> #includes from the `.h' files, which is known to be,Ettore Perazzoli2001-02-061-4/+0
| | | | | | um, a wrong thing to do. svn path=/trunk/; revision=7983
* Some changes to the pop-up folder tree, so that it makes more visualEttore Perazzoli2000-07-221-0/+3
| | | | | | sense. svn path=/trunk/; revision=4271
* Improve the title bar pop-up button: use a toggle button instead of aEttore Perazzoli2000-07-211-9/+10
| | | | | | | regular one and allow sticking the pop-up with the close button (we'll need to have it change the icon). svn path=/trunk/; revision=4259
* Added a title bar for the folder view. Removed title bar from theEttore Perazzoli2000-05-301-0/+77
shortcut view. Made shortcuts behave correctly when moved around. Also, implemented automatic re-saving of the shortcuts when they change. svn path=/trunk/; revision=3276