[balsa/gtk4: 190/294] Various: Build with gtk4
- From: Peter Bloomfield <peterb src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [balsa/gtk4: 190/294] Various: Build with gtk4
- Date: Sun, 10 Oct 2021 00:03:11 +0000 (UTC)
commit 6e783d6e02c0cdcbb26bbaebbe3493c94aec35ba
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date: Wed Oct 14 16:15:25 2020 -0400
Various: Build with gtk4
libbalsa/address.c | 4 ++--
libbalsa/autocrypt.c | 4 ++--
libbalsa/libbalsa-gpgme-cb.c | 2 +-
libbalsa/libbalsa.c | 2 +-
4 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/libbalsa/address.c b/libbalsa/address.c
index 7029a56c3..dadfceb0c 100644
--- a/libbalsa/address.c
+++ b/libbalsa/address.c
@@ -991,10 +991,10 @@ libbalsa_address_get_edit_widget(LibBalsaAddress *address,
entries[cnt] = lba_addr_list_widget(changed_cb, changed_data);
gtk_widget_set_margin_top(label, 1);
gtk_widget_set_margin_bottom(label, 1);
- gtk_container_add(GTK_CONTAINER(box), label);
+ gtk_box_append(GTK_BOX(box), label);
gtk_widget_set_margin_top(but, 1);
gtk_widget_set_margin_bottom(but, 1);
- gtk_container_add(GTK_CONTAINER(box), but);
+ gtk_box_append(GTK_BOX(box), but);
lhs = box;
tree_view = gtk_frame_get_child(GTK_FRAME(entries[cnt]));
g_signal_connect(but, "clicked", G_CALLBACK(add_row), tree_view);
diff --git a/libbalsa/autocrypt.c b/libbalsa/autocrypt.c
index 1f7e74207..df3f703c8 100644
--- a/libbalsa/autocrypt.c
+++ b/libbalsa/autocrypt.c
@@ -435,7 +435,7 @@ main_dialog_response_cb(GtkDialog *dialog,
GList *keys = user_data;
g_list_free_full(keys, (GDestroyNotify) g_bytes_unref);
- gtk_widget_destroy(GTK_WIDGET(dialog));
+ gtk_window_destroy(GTK_WINDOW(dialog));
}
/* documentation: see header file */
@@ -469,7 +469,7 @@ autocrypt_db_dialog_run(const gchar *date_string, GtkWindow *parent)
gtk_scrolled_window_set_policy(GTK_SCROLLED_WINDOW(scrolled_window), GTK_POLICY_AUTOMATIC,
GTK_POLICY_AUTOMATIC);
gtk_widget_set_vexpand(scrolled_window, TRUE);
gtk_widget_set_valign(scrolled_window, GTK_ALIGN_FILL);
- gtk_container_add(GTK_CONTAINER(vbox), scrolled_window);
+ gtk_box_append(GTK_BOX(vbox), scrolled_window);
model = gtk_list_store_new(AC_DB_VIEW_COLUMNS, G_TYPE_STRING, /* address */
G_TYPE_INT64,
/* last seen timestamp value (for sorting) */
diff --git a/libbalsa/libbalsa-gpgme-cb.c b/libbalsa/libbalsa-gpgme-cb.c
index d214b764a..586080912 100644
--- a/libbalsa/libbalsa-gpgme-cb.c
+++ b/libbalsa/libbalsa-gpgme-cb.c
@@ -143,7 +143,7 @@ row_activated_cb(GtkTreeView *tree_view,
gtk_tree_model_get(model, &iter, GPG_KEY_PTR_COLUMN, &key, -1);
dialog = libbalsa_key_dialog(window, GTK_BUTTONS_CLOSE, key, GPG_SUBKEY_CAP_ALL, NULL, NULL);
- g_signal_connect(dialog, "response", G_CALLBACK(gtk_widget_destroy), NULL);
+ g_signal_connect(dialog, "response", G_CALLBACK(gtk_window_destroy), NULL);
gtk_widget_show(dialog);
}
}
diff --git a/libbalsa/libbalsa.c b/libbalsa/libbalsa.c
index 87ab445b2..e500d0bb3 100644
--- a/libbalsa/libbalsa.c
+++ b/libbalsa/libbalsa.c
@@ -467,7 +467,7 @@ ask_cert_real(void *data)
gtk_box_append(GTK_BOX(content_area), cert_widget);
g_signal_connect(dialog, "response", G_CALLBACK(ask_cert_real_response), acd);
- gtk_widget_show_all(dialog);
+ gtk_widget_show(dialog);
return G_SOURCE_REMOVE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]