aboutsummaryrefslogtreecommitdiffstats
path: root/addressbook/gui/widgets
diff options
context:
space:
mode:
Diffstat (limited to 'addressbook/gui/widgets')
-rw-r--r--addressbook/gui/widgets/e-addressbook-view.c4
-rw-r--r--addressbook/gui/widgets/e-minicard.c2
2 files changed, 4 insertions, 2 deletions
diff --git a/addressbook/gui/widgets/e-addressbook-view.c b/addressbook/gui/widgets/e-addressbook-view.c
index 9bcd4b2827..1700cfdc89 100644
--- a/addressbook/gui/widgets/e-addressbook-view.c
+++ b/addressbook/gui/widgets/e-addressbook-view.c
@@ -401,6 +401,7 @@ table_double_click(ETableScrolled *table, gint row, EAddressbookView *view)
typedef struct {
EBook *book;
ECard *card;
+ GtkWidget *widget;
} CardAndBook;
static void
@@ -427,7 +428,7 @@ print (GtkWidget *widget, CardAndBook *card_and_book)
static void
delete (GtkWidget *widget, CardAndBook *card_and_book)
{
- if (e_contact_editor_confirm_delete()) {
+ if (e_contact_editor_confirm_delete(GTK_WINDOW(gtk_widget_get_toplevel(card_and_book->widget)))) {
/* Add the card in the contact editor to our ebook */
e_book_remove_card (card_and_book->book,
card_and_book->card,
@@ -453,6 +454,7 @@ table_right_click(ETableScrolled *table, gint row, gint col, GdkEvent *event, EA
card_and_book = g_new(CardAndBook, 1);
card_and_book->card = e_addressbook_model_get_card(model, row);
+ card_and_book->widget = GTK_WIDGET(table);
gtk_object_get(GTK_OBJECT(model),
"book", &(card_and_book->book),
NULL);
diff --git a/addressbook/gui/widgets/e-minicard.c b/addressbook/gui/widgets/e-minicard.c
index 792962a5b3..dcf3ff924a 100644
--- a/addressbook/gui/widgets/e-minicard.c
+++ b/addressbook/gui/widgets/e-minicard.c
@@ -339,7 +339,7 @@ delete (GtkWidget *widget, EMinicard *minicard)
{
EBook *book;
- if (e_contact_editor_confirm_delete()) {
+ if (e_contact_editor_confirm_delete(GTK_WINDOW(gtk_widget_get_toplevel(GTK_WIDGET(GNOME_CANVAS_ITEM(minicard)->canvas))))) {
e_card_simple_sync_card(minicard->simple);
gtk_object_get(GTK_OBJECT(GNOME_CANVAS_ITEM(minicard)->parent),