[gnome-bluetooth] pairing-dialog: Remove remaining non-existant API
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] pairing-dialog: Remove remaining non-existant API
- Date: Thu, 28 Oct 2021 15:29:59 +0000 (UTC)
commit 70bcffd4362e109d4db9c212fbed3dc3388cce47
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 27 14:13:10 2021 -0300
pairing-dialog: Remove remaining non-existant API
Remove gtk_widget_set_can_default() and gtk_widget_grab_default(), and just
let GTK handle it internally.
lib/bluetooth-pairing-dialog.c | 2 --
1 file changed, 2 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index 11d7e884..43bac9f6 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -286,7 +286,6 @@ bluetooth_pairing_dialog_constructed (GObject *object)
/* OK button */
priv->done = gtk_button_new_with_label (_("Accept"));
gtk_widget_hide (priv->done);
- gtk_widget_set_can_default (GTK_WIDGET (priv->done), TRUE);
g_signal_connect (G_OBJECT (priv->done), "clicked",
G_CALLBACK (response_cb), self);
gtk_header_bar_pack_end (GTK_HEADER_BAR (header), priv->done);
@@ -308,7 +307,6 @@ bluetooth_pairing_dialog_constructed (GObject *object)
G_CALLBACK (response_cb), self);
gtk_header_bar_pack_start (GTK_HEADER_BAR (header), priv->cancel);
gtk_widget_show (priv->cancel);
- gtk_widget_grab_default (GTK_WIDGET (priv->done));
g_signal_connect (G_OBJECT (priv->entry_pin), "notify::text",
G_CALLBACK (text_changed_cb), self);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]