1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-10-22 04:35:23 +00:00

call-record-row: Turn the realized check into a critical

This makes sure we don't ignore it should it happen again.

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/756>
This commit is contained in:
Guido Günther 2024-09-20 15:29:18 +02:00 committed by Marge Bot
parent 4baa4f5141
commit 38ad7dae2a

View file

@ -384,10 +384,7 @@ on_long_pressed (GtkGestureLongPress *gesture,
gdouble y,
GtkWidget *self)
{
if (!gtk_widget_get_realized (self)) {
g_warning ("widget is not realized, why does it emit 'pressed'? Aborting..");
return;
}
g_return_if_fail (gtk_widget_get_realized (self));
context_menu (self, NULL);
}