aboutsummaryrefslogtreecommitdiff
path: root/src/crystfelimageview.c
diff options
context:
space:
mode:
authorThomas White <taw@physics.org>2020-03-11 16:30:49 +0100
committerThomas White <taw@physics.org>2020-07-29 18:42:24 +0200
commit3c11e6cfec7102c4c33284c75be2370a53132581 (patch)
tree0692586020efcafef82d33ce7f34aa28282e13d0 /src/crystfelimageview.c
parentcae5d80ec400bfe8b4989692398870a8a3f37719 (diff)
Use configure-event instead of size-allocate
Diffstat (limited to 'src/crystfelimageview.c')
-rw-r--r--src/crystfelimageview.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/crystfelimageview.c b/src/crystfelimageview.c
index 10683d72..ba0e95e3 100644
--- a/src/crystfelimageview.c
+++ b/src/crystfelimageview.c
@@ -192,8 +192,8 @@ static gint motion_sig(GtkWidget *window, GdkEventMotion *event,
}
-static gint resize_sig(GtkWidget *window, GdkRectangle *rec,
- CrystFELImageView *iv)
+static gint configure_sig(GtkWidget *window, GdkEventConfigure *rec,
+ CrystFELImageView *iv)
{
iv->visible_width = rec->width;
iv->visible_height = rec->height;
@@ -446,8 +446,8 @@ GtkWidget *crystfel_image_view_new()
G_CALLBACK(scroll_sig), iv);
g_signal_connect(G_OBJECT(iv), "motion-notify-event",
G_CALLBACK(motion_sig), iv);
- g_signal_connect(G_OBJECT(iv), "size-allocate",
- G_CALLBACK(resize_sig), iv);
+ g_signal_connect(G_OBJECT(iv), "configure-event",
+ G_CALLBACK(configure_sig), iv);
g_signal_connect(G_OBJECT(iv), "draw",
G_CALLBACK(draw_sig), iv);