diff options
author | Chris Toshok <toshok@ximian.com> | 2001-05-22 07:52:06 +0800 |
---|---|---|
committer | Chris Toshok <toshok@src.gnome.org> | 2001-05-22 07:52:06 +0800 |
commit | 90d1371457bed4971cbe1f023b9e2426a41404be (patch) | |
tree | 925d8549f3d89af2d8827c82218a6f61048404c1 /addressbook/gui/component | |
parent | 8dd9bc57f75f90bfccd744f9522001862b904060 (diff) | |
download | gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.gz gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.zst gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.zip |
update_view_type is gone, since the menu item is gone.
2001-05-21 Chris Toshok <toshok@ximian.com>
* gui/component/addressbook.c (change_view_type): update_view_type
is gone, since the menu item is gone.
* gui/widgets/e-addressbook-table-adapter.c (create_card): use
e_table_model_rows_inserted here.
svn path=/trunk/; revision=9914
Diffstat (limited to 'addressbook/gui/component')
-rw-r--r-- | addressbook/gui/component/addressbook.c | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/addressbook/gui/component/addressbook.c b/addressbook/gui/component/addressbook.c index 8f3e07008d..7935bbf9ce 100644 --- a/addressbook/gui/component/addressbook.c +++ b/addressbook/gui/component/addressbook.c @@ -227,59 +227,13 @@ update_command_state (EAddressbookView *eav, AddressbookView *view) } static void -update_view_type (AddressbookView *view) -{ - BonoboUIComponent *uic = bonobo_control_get_ui_component (view->control); - EAddressbookViewType view_type; - - if (!uic || bonobo_ui_component_get_container (uic) == CORBA_OBJECT_NIL) - return; - - gtk_object_get (GTK_OBJECT (view->view), "type", &view_type, NULL); - - switch (view_type) { - case E_ADDRESSBOOK_VIEW_TABLE: - if (uic) - bonobo_ui_component_set_prop (uic, "/menu/View/AsTable", - "label", _("As _Minicards"), NULL); - - break; - case E_ADDRESSBOOK_VIEW_MINICARD: - if (uic) - bonobo_ui_component_set_prop (uic, "/menu/View/AsTable", - "label", _("As _Table"), NULL); - break; - default: - g_warning ("view_type must be either TABLE or MINICARD\n"); - return; - } -} - -static void change_view_type (AddressbookView *view, EAddressbookViewType view_type) { gtk_object_set (GTK_OBJECT (view->view), "type", view_type, NULL); - - update_view_type (view); -} - -static void -toggle_view_as_cb (BonoboUIComponent *uih, void *user_data, const char *path) -{ - AddressbookView *view = user_data; - EAddressbookViewType view_type; - - gtk_object_get (GTK_OBJECT (view->view), "type", &view_type, NULL); - - if (view_type == E_ADDRESSBOOK_VIEW_TABLE) - change_view_type (view, E_ADDRESSBOOK_VIEW_MINICARD); - else - change_view_type (view, E_ADDRESSBOOK_VIEW_TABLE); } BonoboUIVerb verbs [] = { BONOBO_UI_UNSAFE_VERB ("ContactsPrint", print_cb), - BONOBO_UI_UNSAFE_VERB ("ViewAsTable", toggle_view_as_cb), BONOBO_UI_UNSAFE_VERB ("ViewNewContact", new_contact_cb), BONOBO_UI_UNSAFE_VERB ("ToolSearch", search_cb), @@ -327,8 +281,6 @@ control_activate (BonoboControl *control, e_addressbook_view_setup_menus (view->view, uic); - update_view_type (view); - e_pixmaps_update (uic, pixmaps); bonobo_ui_component_thaw (uic, NULL); |