diff options
author | Michael Meeks <michael@helixcode.com> | 2000-10-05 15:10:04 +0800 |
---|---|---|
committer | Michael Meeks <mmeeks@src.gnome.org> | 2000-10-05 15:10:04 +0800 |
commit | d5a93f01c1a20edf80be106993f64fc0385a7a59 (patch) | |
tree | d4cc42300219571c4b1865bb9c42d5d7a0ff87fa /shell/e-shell-view-menu.c | |
parent | 83b5ac87fca211734b8712b1bbe3247ab89f98fc (diff) | |
download | gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.gz gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.bz2 gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.lz gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.xz gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.tar.zst gsoc2013-evolution-d5a93f01c1a20edf80be106993f64fc0385a7a59.zip |
Disable summary stuff, it appears to be badly broken.
2000-10-05 Michael Meeks <michael@helixcode.com>
* component-factory.c (summary_fn, component_factory_init): Disable
summary stuff, it appears to be badly broken.
* Makefile.am (evolution_mail_SOURCES): add mail-summary.[ch]
* subscribe-dialog.c (update_pixmaps): upd.
(set_pixmap): upd.
(subscribe_dialog_gui_init): upd.
remove redundant and annoying forward definitions.
* folder-browser-factory.c (control_deactivate): upd.
(control_activate_cb): upd.
(control_activate): upd.
(set_pixmap): upd.
(update_pixmaps): upd.
(register_ondemand): upd.
(create_ondemand_hooks): upd.
2000-10-05 Michael Meeks <michael@helixcode.com>
* e-shell-view-menu.c (shortcut_bar_mode_changed_cb): upd.
(folder_bar_mode_changed_cb): upd.
(command_xml_dump): clobber.
(e_shell_view_menu_setup): upd.
* e-shell-view.c (shell_view_interface_set_message_cb): upd.
(shell_view_interface_unset_message_cb): upd.
(e_shell_view_construct): upd.
(get_control_for_uri): upd.
(e_shell_view_get_bonobo_ui_component): upd.
2000-10-05 Michael Meeks <michael@helixcode.com>
* contact-editor/e-contact-editor.c (create_ui): upd.
(e_contact_editor_init): upd.
* gui/component/addressbook.c (control_activate_cb): upd.
(control_deactivate): kill.
(control_activate): upd.
2000-10-05 Michael Meeks <michael@helixcode.com>
* gui/calendar-commands.c: upd.
(calendar_control_activate): upd.
(calendar_control_deactivate): upd.
2000-10-05 Michael Meeks <michael@helixcode.com>
* component/e-summary-factory.c (control_activate): upd.
(set_pixmap): upd. (update_pixmaps): upd.
(control_activate_cb): upd.
(control_deactivate): upd.
svn path=/trunk/; revision=5742
Diffstat (limited to 'shell/e-shell-view-menu.c')
-rw-r--r-- | shell/e-shell-view-menu.c | 84 |
1 files changed, 42 insertions, 42 deletions
diff --git a/shell/e-shell-view-menu.c b/shell/e-shell-view-menu.c index 6d6d55b7c7..dd7c244692 100644 --- a/shell/e-shell-view-menu.c +++ b/shell/e-shell-view-menu.c @@ -42,19 +42,19 @@ shortcut_bar_mode_changed_cb (EShellView *shell_view, EShellViewSubwindowMode new_mode, void *data) { - BonoboUIHandler *uih; + BonoboUIComponent *uic; const char *path; - gboolean toggle_state; + char *txt; if (new_mode == E_SHELL_VIEW_SUBWINDOW_HIDDEN) - toggle_state = FALSE; + txt = "0"; else - toggle_state = TRUE; + txt = "1"; path = (const char *) data; - uih = e_shell_view_get_bonobo_ui_handler (shell_view); + uic = e_shell_view_get_bonobo_ui_component (shell_view); - bonobo_ui_handler_menu_set_toggle_state (uih, path, toggle_state); + bonobo_ui_component_set_prop (uic, path, "state", txt, NULL); } static void @@ -62,19 +62,19 @@ folder_bar_mode_changed_cb (EShellView *shell_view, EShellViewSubwindowMode new_mode, void *data) { - BonoboUIHandler *uih; + BonoboUIComponent *uic; const char *path; - gboolean toggle_state; + char *txt; if (new_mode == E_SHELL_VIEW_SUBWINDOW_HIDDEN) - toggle_state = FALSE; + txt = "0"; else - toggle_state = TRUE; + txt = "1"; path = (const char *) data; - uih = e_shell_view_get_bonobo_ui_handler (shell_view); + uic = e_shell_view_get_bonobo_ui_component (shell_view); - bonobo_ui_handler_menu_set_toggle_state (uih, path, toggle_state); + bonobo_ui_component_set_prop (uic, path, "state", txt, NULL); } @@ -360,17 +360,20 @@ command_create_folder (BonoboUIHandler *uih, } static void -command_xml_dump (gpointer dummy, - EShellView *view) +command_xml_dump (gpointer dummy, + EShellView *view) { +#if 0 BonoboUIHandler *uih; BonoboWin *win; - uih = e_shell_view_get_bonobo_ui_handler (view); + uih = e_shell_view_get_bonobo_ui_component (view); win = bonobo_ui_handler_get_app (uih); bonobo_win_dump (win, "On demand"); +#endif + g_warning ("FIXME: to re-instate debugging dump we need to get the container"); } @@ -378,7 +381,7 @@ command_xml_dump (gpointer dummy, #define DEFINE_UNIMPLEMENTED(func) \ static void \ -func (BonoboUIHandler *uih, void *data, const char *path) \ +func (BonoboUIComponent *uic, void *data, const char *path) \ { \ g_warning ("EShellView: %s: not implemented.", __FUNCTION__); \ } \ @@ -389,32 +392,32 @@ DEFINE_UNIMPLEMENTED (command_new_contact) DEFINE_UNIMPLEMENTED (command_new_task_request) BonoboUIVerb new_verbs [] = { - BONOBO_UI_VERB ("NewView", command_new_view), - BONOBO_UI_VERB ("NewFolder", command_new_folder), - BONOBO_UI_VERB ("NewShortcut", command_new_shortcut), - BONOBO_UI_VERB ("NewMailMessage", command_new_mail_message), + BONOBO_UI_UNSAFE_VERB ("NewView", command_new_view), + BONOBO_UI_UNSAFE_VERB ("NewFolder", command_new_folder), + BONOBO_UI_UNSAFE_VERB ("NewShortcut", command_new_shortcut), + BONOBO_UI_UNSAFE_VERB ("NewMailMessage", command_new_mail_message), - BONOBO_UI_VERB ("NewAppointment", command_new_shortcut), - BONOBO_UI_VERB ("NewContact", command_new_contact), - BONOBO_UI_VERB ("NewTask", command_new_task_request), + BONOBO_UI_UNSAFE_VERB ("NewAppointment", command_new_shortcut), + BONOBO_UI_UNSAFE_VERB ("NewContact", command_new_contact), + BONOBO_UI_UNSAFE_VERB ("NewTask", command_new_task_request), BONOBO_UI_VERB_END }; BonoboUIVerb file_verbs [] = { - BONOBO_UI_VERB ("FileGoToFolder", command_goto_folder), - BONOBO_UI_VERB ("FileCreateFolder", command_create_folder), - BONOBO_UI_VERB ("FileExit", command_quit), + BONOBO_UI_UNSAFE_VERB ("FileGoToFolder", command_goto_folder), + BONOBO_UI_UNSAFE_VERB ("FileCreateFolder", command_create_folder), + BONOBO_UI_UNSAFE_VERB ("FileExit", command_quit), BONOBO_UI_VERB_END }; BonoboUIVerb help_verbs [] = { - BONOBO_UI_VERB_DATA ("HelpIndex", command_help, "index.html"), - BONOBO_UI_VERB_DATA ("HelpGetStarted", command_help, "usage-mainwindow.html"), - BONOBO_UI_VERB_DATA ("HelpUsingMail", command_help, "usage-mail.html"), - BONOBO_UI_VERB_DATA ("HelpUsingCalendar", command_help, "usage-calendar.html"), - BONOBO_UI_VERB_DATA ("HelpUsingContact", command_help, "usage-contact.html"), + BONOBO_UI_UNSAFE_VERB_DATA ("HelpIndex", command_help, "index.html"), + BONOBO_UI_UNSAFE_VERB_DATA ("HelpGetStarted", command_help, "usage-mainwindow.html"), + BONOBO_UI_UNSAFE_VERB_DATA ("HelpUsingMail", command_help, "usage-mail.html"), + BONOBO_UI_UNSAFE_VERB_DATA ("HelpUsingCalendar", command_help, "usage-calendar.html"), + BONOBO_UI_UNSAFE_VERB_DATA ("HelpUsingContact", command_help, "usage-contact.html"), BONOBO_UI_VERB_END }; @@ -441,32 +444,29 @@ menu_do_misc (BonoboUIComponent *component, } -#define SHORTCUT_BAR_TOGGLE_PATH "/View/ShortcutBar" -#define FOLDER_BAR_TOGGLE_PATH "/View/FolderBar" +#define SHORTCUT_BAR_TOGGLE_PATH "/menu/View/ShortcutBar" +#define FOLDER_BAR_TOGGLE_PATH "/menu/View/FolderBar" void e_shell_view_menu_setup (EShellView *shell_view) { - BonoboUIHandler *uih; - BonoboUIComponent *component; + BonoboUIComponent *uic; g_return_if_fail (shell_view != NULL); g_return_if_fail (E_IS_SHELL_VIEW (shell_view)); - uih = e_shell_view_get_bonobo_ui_handler (shell_view); - - component = bonobo_ui_compat_get_component (uih); + uic = e_shell_view_get_bonobo_ui_component (shell_view); bonobo_ui_component_add_verb_list_with_data ( - component, file_verbs, shell_view); + uic, file_verbs, shell_view); bonobo_ui_component_add_verb_list_with_data ( - component, new_verbs, shell_view); + uic, new_verbs, shell_view); bonobo_ui_component_add_verb_list ( - component, help_verbs); + uic, help_verbs); - menu_do_misc (component, shell_view); + menu_do_misc (uic, shell_view); gtk_signal_connect (GTK_OBJECT (shell_view), "shortcut_bar_mode_changed", GTK_SIGNAL_FUNC (shortcut_bar_mode_changed_cb), |