diff options
author | Christopher James Lahey <clahey@ximian.com> | 2001-07-15 17:06:27 +0800 |
---|---|---|
committer | Chris Lahey <clahey@src.gnome.org> | 2001-07-15 17:06:27 +0800 |
commit | bdc396c0012257c1d5a1bd78993dd42cdf52bdb8 (patch) | |
tree | b0d6ac90f9369dcc3d19eb628242ef3ac0da2df7 /addressbook/gui | |
parent | 05877aea9bad861887d7917bdeb53741b84aeb23 (diff) | |
download | gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.gz gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.zst gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.zip |
Added a call to e_table_view_to_model_row here.
2001-07-15 Christopher James Lahey <clahey@ximian.com>
* gui/widgets/e-addressbook-view.c (table_drag_data_get): Added a
call to e_table_view_to_model_row here.
(e_addressbook_view_can_print, e_addressbook_view_can_delete,
e_addressbook_view_can_copy): If the selection model is NULL here,
return NULL (this was done before in a g_return_val_if_fail which
is only conditionally included.)
svn path=/trunk/; revision=11110
Diffstat (limited to 'addressbook/gui')
-rw-r--r-- | addressbook/gui/widgets/e-addressbook-view.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c index 436632e77f..4f39360045 100644 --- a/addressbook/gui/widgets/e-addressbook-view.c +++ b/addressbook/gui/widgets/e-addressbook-view.c @@ -651,6 +651,7 @@ table_drag_data_get (ETable *table, case DND_TARGET_TYPE_VCARD: { char *value; + row = e_table_view_to_model_row (table, row); value = e_card_get_vcard(view->model->data[row]); gtk_selection_data_set (selection_data, @@ -1266,7 +1267,8 @@ e_addressbook_view_can_print (EAddressbookView *view) return FALSE; selection_model = get_selection_model (view); - g_return_val_if_fail (selection_model != NULL, FALSE); + if (selection_model == NULL) + return FALSE; return e_selection_model_selected_count (selection_model) != 0; } @@ -1280,7 +1282,8 @@ e_addressbook_view_can_delete (EAddressbookView *view) return FALSE; selection_model = get_selection_model (view); - g_return_val_if_fail (selection_model != NULL, FALSE); + if (selection_model == NULL) + return FALSE; return e_selection_model_selected_count (selection_model) != 0; } @@ -1300,7 +1303,8 @@ e_addressbook_view_can_copy (EAddressbookView *view) return FALSE; selection_model = get_selection_model (view); - g_return_val_if_fail (selection_model != NULL, FALSE); + if (selection_model == NULL) + return FALSE; return e_selection_model_selected_count (selection_model) != 0; } |