aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2001-07-15 17:06:27 +0800
committerChris Lahey <clahey@src.gnome.org>2001-07-15 17:06:27 +0800
commitbdc396c0012257c1d5a1bd78993dd42cdf52bdb8 (patch)
treeb0d6ac90f9369dcc3d19eb628242ef3ac0da2df7 /addressbook
parent05877aea9bad861887d7917bdeb53741b84aeb23 (diff)
downloadgsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar
gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.gz
gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.bz2
gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.lz
gsoc2013-evolution-bdc396c0012257c1d5a1bd78993dd42cdf52bdb8.tar.xz
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')
-rw-r--r--addressbook/ChangeLog9
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c10
2 files changed, 16 insertions, 3 deletions
diff --git a/addressbook/ChangeLog b/addressbook/ChangeLog
index 517cf1dab9..ba92a6a603 100644
--- a/addressbook/ChangeLog
+++ b/addressbook/ChangeLog
@@ -1,3 +1,12 @@
+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.)
+
2001-07-13 Christopher James Lahey <clahey@ximian.com>
* gui/contact-editor/contact-editor.glade: Changed Company to
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;
}