[libnma/lr/gcr-gtk4: 1/6] pkcs11-cert-chooser-dialog: fix Gtk4 build
- From: Lubomir Rintel <lkundrak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libnma/lr/gcr-gtk4: 1/6] pkcs11-cert-chooser-dialog: fix Gtk4 build
- Date: Tue, 8 Mar 2022 20:15:21 +0000 (UTC)
commit 7fad8359711c9e1e80fc0c64e46a3b89a4dbef5e
Author: Lubomir Rintel <lkundrak v3 sk>
Date: Tue Mar 8 21:10:57 2022 +0100
pkcs11-cert-chooser-dialog: fix Gtk4 build
Just one compat macro.
src/nma-pkcs11-cert-chooser-dialog.c | 3 +--
src/nma-private.h | 1 +
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/nma-pkcs11-cert-chooser-dialog.c b/src/nma-pkcs11-cert-chooser-dialog.c
index f77a3886..551b0704 100644
--- a/src/nma-pkcs11-cert-chooser-dialog.c
+++ b/src/nma-pkcs11-cert-chooser-dialog.c
@@ -283,8 +283,7 @@ static void
row_activated (GtkTreeView *tree_view, GtkTreePath *path,
GtkTreeViewColumn *column, gpointer user_data)
{
- if (gtk_window_activate_default (GTK_WINDOW (user_data)))
- return;
+ gtk_widget_activate_default (GTK_WIDGET (user_data));
}
static void
diff --git a/src/nma-private.h b/src/nma-private.h
index 254bb639..712927e8 100644
--- a/src/nma-private.h
+++ b/src/nma-private.h
@@ -24,6 +24,7 @@
#define gtk_window_new() gtk_window_new(GTK_WINDOW_TOPLEVEL)
#define gtk_widget_get_root(widget) gtk_widget_get_toplevel(widget)
#define gtk_window_set_hide_on_close(window, hide) g_signal_connect(dialog, "delete-event", G_CALLBACK
(gtk_widget_hide_on_delete), NULL)
+#define gtk_widget_activate_default(widget) gtk_window_activate_default(GTK_WINDOW(widget))
typedef void GtkRoot;
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]