1
0
mirror of git://projects.qi-hardware.com/eda-tools.git synced 2024-07-05 02:52:21 +03:00

eeshow/gui/sheet.c (sheet_setup): wrong use of ctx, broke resizing

... with a segfault.
This commit is contained in:
Werner Almesberger 2016-08-18 12:52:37 -03:00
parent cfa730459c
commit f8742fa050

View File

@ -465,6 +465,6 @@ static void size_allocate_event(GtkWidget *widget, GdkRectangle *allocation,
void sheet_setup(struct gui_ctx *ctx) void sheet_setup(struct gui_ctx *ctx)
{ {
g_signal_connect(G_OBJECT(ctx->da), "size_allocate", g_signal_connect(G_OBJECT(ctx->da), "size_allocate",
G_CALLBACK(size_allocate_event), &ctx); G_CALLBACK(size_allocate_event), ctx);
input_push(&sheet_input_ops, ctx); input_push(&sheet_input_ops, ctx);
} }