[gtk/ebassi/activate-signal: 4/6] Use private can_activate() method
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/ebassi/activate-signal: 4/6] Use private can_activate() method
- Date: Sat, 5 Dec 2020 01:04:34 +0000 (UTC)
commit fde32c5219fa598f845bdb875052671129c938c9
Author: Emmanuele Bassi <ebassi gnome org>
Date: Fri Dec 4 23:12:50 2020 +0000
Use private can_activate() method
Instead of checking the activate_signal field directly.
gtk/gtklabel.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index 58c7431814..7701422b62 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -1452,7 +1452,7 @@ gtk_label_mnemonic_activate (GtkWidget *widget,
while (parent)
{
if (gtk_widget_get_can_focus (parent) ||
- (!group_cycling && GTK_WIDGET_GET_CLASS (parent)->activate_signal) ||
+ (!group_cycling && gtk_widget_can_activate (parent)) ||
GTK_IS_NOTEBOOK (gtk_widget_get_parent (parent)))
return gtk_widget_mnemonic_activate (parent, group_cycling);
parent = gtk_widget_get_parent (parent);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]