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:
Jonh Wendell
2013-12-16 17:31:50 -02:00
parent 9513d3b2a4
commit cc0c521c4c

View File

@ -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);