[balsa/gtk4: 263/311] Various: Use gtk_window_destroy




commit c33ef3e7f4bce33d308295c46d62d9ee641bd96b
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Sun Nov 15 18:20:48 2020 -0500

    Various: Use gtk_window_destroy
    
    modified:   libbalsa/html.c
    modified:   src/balsa-app.c
    modified:   src/balsa-print-object-header.c
    modified:   src/spell-check.c

 libbalsa/html.c                 | 8 ++++----
 src/balsa-app.c                 | 2 +-
 src/balsa-print-object-header.c | 2 +-
 src/spell-check.c               | 4 ++--
 4 files changed, 8 insertions(+), 8 deletions(-)
---
diff --git a/libbalsa/html.c b/libbalsa/html.c
index 0b5378ac8..b6fd4d401 100644
--- a/libbalsa/html.c
+++ b/libbalsa/html.c
@@ -419,8 +419,8 @@ lbh_info_bar_response_cb(GtkInfoBar * info_bar,
                }
        }
 
-       gtk_widget_destroy(info->info_bar);
-       info->info_bar = NULL;
+    gtk_window_destroy(GTK_WINDOW(info->info_bar));
+    info->info_bar = NULL;
 }
 
 static void
@@ -490,7 +490,7 @@ lbh_resource_notify_response_cb(WebKitWebResource * resource,
                 webkit_web_resource_get_uri(resource));
         /* web_view is loading an image from its cache, so we do not
          * need to ask the user for permission to download */
-        gtk_widget_destroy(info->info_bar);
+        gtk_window_destroy(GTK_WINDOW(info->info_bar));
         info->info_bar = NULL;
     } else {
         g_debug("%s %s null info_bar", __func__,
@@ -811,7 +811,7 @@ libbalsa_html_print_bitmap(LibBalsaMessageBody *body,
     }
 
     /* destroy the offscreen window */
-    gtk_widget_destroy(offline_window);
+    gtk_window_destroy(GTK_WINDOW(offline_window));
 
     /* return the surface */
     return html_surface;
diff --git a/src/balsa-app.c b/src/balsa-app.c
index 042f4453a..66aadd909 100644
--- a/src/balsa-app.c
+++ b/src/balsa-app.c
@@ -114,7 +114,7 @@ ask_password_real(LibBalsaServer *server, const gchar *cert_subject)
                        libbalsa_server_config_changed(server);
                }
        }
-    gtk_widget_destroy(GTK_WIDGET(dialog));
+    gtk_window_destroy(GTK_WINDOW(dialog));
     return passwd;
 }
 
diff --git a/src/balsa-print-object-header.c b/src/balsa-print-object-header.c
index ec08a3dcb..dfaf8a973 100644
--- a/src/balsa-print-object-header.c
+++ b/src/balsa-print-object-header.c
@@ -183,7 +183,7 @@ balsa_print_object_header_new_real(GList * list,
 
            if (f_widget) {
                face = g_object_ref(gtk_image_get_pixbuf(GTK_IMAGE(f_widget)));
-               gtk_widget_destroy(f_widget);
+               gtk_window_destroy(GTK_WINDOW(f_widget));
            }
        }
 
diff --git a/src/spell-check.c b/src/spell-check.c
index 207dc7795..14137a6b6 100644
--- a/src/spell-check.c
+++ b/src/spell-check.c
@@ -587,7 +587,7 @@ balsa_spell_check_start(BalsaSpellCheck *spell_check)
                                    "%s",
                                    enchant_error);
 
-        gtk_widget_destroy((GtkWidget *) spell_check);
+        gtk_window_destroy(GTK_WINDOW(spell_check));
 
         return;
     }
@@ -902,7 +902,7 @@ spch_finish(BalsaSpellCheck *spell_check,
 
     g_debug("finished");
 
-    gtk_widget_destroy((GtkWidget *) spell_check);
+    gtk_window_destroy(GTK_WINDOW(spell_check));
 }
 
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]