aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui
diff options
context:
space:
mode:
authorChris Toshok <toshok@ximian.com>2001-05-22 07:52:06 +0800
committerChris Toshok <toshok@src.gnome.org>2001-05-22 07:52:06 +0800
commit90d1371457bed4971cbe1f023b9e2426a41404be (patch)
tree925d8549f3d89af2d8827c82218a6f61048404c1 /addressbook/gui
parent8dd9bc57f75f90bfccd744f9522001862b904060 (diff)
downloadgsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar
gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.gz
gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.bz2
gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.lz
gsoc2013-evolution-90d1371457bed4971cbe1f023b9e2426a41404be.tar.xz
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')
-rw-r--r--addressbook/gui/component/addressbook.c48
-rw-r--r--addressbook/gui/widgets/e-addressbook-table-adapter.c2
2 files changed, 1 insertions, 49 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);
diff --git a/addressbook/gui/widgets/e-addressbook-table-adapter.c b/addressbook/gui/widgets/e-addressbook-table-adapter.c
index 01337bf8e3..4881615811 100644
--- a/addressbook/gui/widgets/e-addressbook-table-adapter.c
+++ b/addressbook/gui/widgets/e-addressbook-table-adapter.c
@@ -252,8 +252,8 @@ create_card (EAddressbookModel *model,
for (i = 0; i < count; i ++) {
priv->simples[index + i] = e_card_simple_new (e_addressbook_model_card_at (priv->model, index + i));
gtk_object_ref (GTK_OBJECT (priv->simples[index + i]));
- e_table_model_row_inserted (E_TABLE_MODEL (adapter), index + i);
}
+ e_table_model_rows_inserted (E_TABLE_MODEL (adapter), index, count);
}
static void