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:
@@ -384,10 +384,7 @@ on_long_pressed (GtkGestureLongPress *gesture,
|
|||||||
gdouble y,
|
gdouble y,
|
||||||
GtkWidget *self)
|
GtkWidget *self)
|
||||||
{
|
{
|
||||||
if (!gtk_widget_get_realized (self)) {
|
g_return_if_fail (gtk_widget_get_realized (self));
|
||||||
g_warning ("widget is not realized, why does it emit 'pressed'? Aborting..");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
context_menu (self, NULL);
|
context_menu (self, NULL);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user