[gnome-bluetooth] pairing-dialog: Adapt to GtkEntry API changes
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-bluetooth] pairing-dialog: Adapt to GtkEntry API changes
- Date: Thu, 28 Oct 2021 15:29:59 +0000 (UTC)
commit 6e25db5ff02981114175a63f79fd0cf50f2b0465
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Wed Oct 27 13:48:38 2021 -0300
pairing-dialog: Adapt to GtkEntry API changes
Basically, replace gtk_entry_get/set_text() by the GtkEditable variants.
lib/bluetooth-pairing-dialog.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/lib/bluetooth-pairing-dialog.c b/lib/bluetooth-pairing-dialog.c
index 704f6ff9..fcdfb73b 100644
--- a/lib/bluetooth-pairing-dialog.c
+++ b/lib/bluetooth-pairing-dialog.c
@@ -73,7 +73,7 @@ bluetooth_pairing_dialog_set_mode (BluetoothPairingDialog *self,
g_clear_pointer (&priv->pin, g_free);
priv->pin = g_strdup (pin);
- gtk_entry_set_text (GTK_ENTRY (priv->entry_pin), pin ? pin : "");
+ gtk_editable_set_text (GTK_EDITABLE (priv->entry_pin), pin ? pin : "");
gtk_label_set_text (GTK_LABEL (priv->label_pin), pin);
switch (mode) {
@@ -178,7 +178,7 @@ bluetooth_pairing_dialog_get_pin (BluetoothPairingDialog *self)
priv->mode == BLUETOOTH_PAIRING_MODE_PIN_QUERY);
g_assert (gtk_widget_is_sensitive (GTK_WIDGET (priv->done)));
- return g_strdup (gtk_entry_get_text (GTK_ENTRY (priv->entry_pin)));
+ return g_strdup (gtk_editable_get_text (GTK_EDITABLE (priv->entry_pin)));
}
void
@@ -242,7 +242,7 @@ text_changed_cb (GObject *gobject,
priv->mode != BLUETOOTH_PAIRING_MODE_PIN_QUERY)
return;
- text = gtk_entry_get_text (GTK_ENTRY (priv->entry_pin));
+ text = gtk_editable_get_text (GTK_EDITABLE (priv->entry_pin));
if (!text || strlen (text) < 4)
gtk_widget_set_sensitive (GTK_WIDGET (priv->done), FALSE);
else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]