cell-renderer: Check for NULL return in vfunc start_editing()
This virtual function may return NULL, so, let's check if that's the case and exit the function apropriately. https://bugzilla.gnome.org/show_bug.cgi?id=720554
This commit is contained in:
@ -876,6 +876,9 @@ gtk_cell_renderer_start_editing (GtkCellRenderer *cell,
|
||||
(GdkRectangle *) background_area,
|
||||
(GdkRectangle *) cell_area,
|
||||
flags);
|
||||
if (editable == NULL)
|
||||
return NULL;
|
||||
|
||||
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (editable)),
|
||||
GTK_STYLE_CLASS_CELL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user