# HG changeset patch # User Olaf Wintermann # Date 1736004606 -3600 # Node ID ea949c0109d8a22364aba98d2a98291acc4f5010 # Parent 0921f8a5d53580a3909c4c65b089d1accfc2865f add resize handler to progressbar (Motif) diff -r 0921f8a5d535 -r ea949c0109d8 ui/motif/label.c --- a/ui/motif/label.c Sat Jan 04 16:22:14 2025 +0100 +++ b/ui/motif/label.c Sat Jan 04 16:30:06 2025 +0100 @@ -84,6 +84,9 @@ static void ui_progressbar_expose(Widget widget, UiProgressBar *pb, XtPointer c) { Display *dp = XtDisplay(widget); Window w = XtWindow(widget); + if(w == 0) { + return; + } if(!pb->gc) { XGCValues gcvals; gcvals.foreground = pb->color; @@ -158,6 +161,11 @@ XmNexposeCallback, (XtCallbackProc)ui_progressbar_expose, progressbarData); + XtAddCallback( + drawingArea, + XmNresizeCallback, + (XtCallbackProc)ui_progressbar_expose, + progressbarData); XtManageChild(frame);