Commit 7ccf82be authored by Felix Riemann's avatar Felix Riemann

[exif-display] Don't draw on the drawing area until it has been realized

Avoids crashes with multiple plugins using the sidebar. Apparently there
can be expose events before the widget is realized. Fixes bgo#593003.
parent 805b12eb
2009-08-25 Felix Riemann <friemann@gnome.org>
* plugins/exif-display/eog-exif-display-plugin.c:
Only draw to the GtkDrawingArea when it is realized. Fixes crashes
when multiple plugins use the sidebar. Fixes bug #593003.
2009-08-24 Felix Riemann <friemann@gnome.org>
* NEWS: Prepare for initial release.
......
......@@ -449,6 +449,9 @@ drawing_area_expose (GtkDrawingArea *drawing_area, GdkEventExpose *event,
int scale_factor_y;
GtkStyle *gtk_style;
if (!GTK_WIDGET_REALIZED (GTK_WIDGET (drawing_area)))
return;
draw_channels_histogram = read_gconf_bool_setting (
EOG_EXIF_DISPLAY_CONF_UI_DISPLAY_CHANNELS_HISTOGRAM);
draw_rgb_histogram = read_gconf_bool_setting (
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment