From ea05821fa7972eb54a918bb55af3aa92e921d8d4 Mon Sep 17 00:00:00 2001 From: Scott Tringali Date: Fri, 16 May 2003 13:47:28 +0000 Subject: [PATCH] Fix for missing icons (via C. Rasmussen) --- util/misc.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/util/misc.c b/util/misc.c index 5736488..65b0939 100644 --- a/util/misc.c +++ b/util/misc.c @@ -1,4 +1,4 @@ -static const char CVSID[] = "$Id: misc.c,v 1.54 2003/05/03 09:15:00 edg Exp $"; +static const char CVSID[] = "$Id: misc.c,v 1.55 2003/05/16 13:47:28 tringali Exp $"; /******************************************************************************* * * * misc.c -- Miscelaneous Motif convenience functions * @@ -259,9 +259,9 @@ void SetWindowGroup(Widget shell) { } /* Set the window group hint for this shell's window */ - wmHints = XAllocWMHints(); + wmHints = XGetWMHints(display, XtWindow(shell)); wmHints->window_group = groupLeader; - wmHints->flags = WindowGroupHint; + wmHints->flags |= WindowGroupHint; XSetWMHints(display, XtWindow(shell), wmHints); } @@ -2008,7 +2008,7 @@ void AddMouseWheelSupport(Widget w) { if (XmIsScrolledWindow(XtParent(w))) { - static char scrollTranslations[] = + static const char scrollTranslations[] = "Shift,: scrolled-window-scroll-up(1)\n" "Shift,: scrolled-window-scroll-down(1)\n" "Ctrl,: scrolled-window-page-up()\n" -- 2.11.4.GIT