---
>   int actual_buttons_used,first_avail_button,i,j,k,sb,tb;
657,684c657,723
<                       Buttons[first_avail_button].action =
<                         Buttons[i+j+k*num_columns].action;
<                       Buttons[first_avail_button].title =
<                         Buttons[i+j+k*num_columns].title;
<                       Buttons[first_avail_button].icon_file =
<                         Buttons[i+j+k*num_columns].icon_file;
<                       Buttons[first_avail_button].BWidth =
<                         Buttons[i+j+k*num_columns].BWidth;
<                       Buttons[first_avail_button].BHeight =
<                         Buttons[i+j+k*num_columns].BHeight;
<                       Buttons[first_avail_button].icon_w =
<                         Buttons[i+j+k*num_columns].icon_w;
<                       Buttons[first_avail_button].icon_h =
<                         Buttons[i+j+k*num_columns].icon_h;
<                       Buttons[first_avail_button].iconPixmap =
<                         Buttons[i+j+k*num_columns].iconPixmap;
<                       Buttons[first_avail_button].icon_maskPixmap =
<                         Buttons[i+j+k*num_columns].icon_maskPixmap;
<                       Buttons[first_avail_button].IconWin =
<                         Buttons[i+j+k*num_columns].IconWin;
<                       Buttons[first_avail_button].hints =
<                         Buttons[i+j+k*num_columns].hints;
<                       Buttons[first_avail_button].icon_depth =
<                         Buttons[i+j+k*num_columns].icon_depth;
<                       Buttons[first_avail_button].hangon =
<                         Buttons[i+j+k*num_columns].hangon;
<                       Buttons[first_avail_button].swallow =
<                         Buttons[i+j+k*num_columns].swallow;
---
>
> /* NO! I think you should shift the List to get the free space  */
> /* Shifting First_Avail-1 --> First_Avail :: downwards          */
> /* Attention: exclude the buttons allready freed  for the Bigs  */
> /* I don't know how to determine such a freed button.           */
> /* That's why I used this full WHILE-Codelines                  */
> /* tb := TARGET_BOTTON sb := SOURCE_BOTTON for shifting         */
> /* palme_at_elphy.irz.hu-berlin.de                                 */
>
>                         tb=first_avail_button;
>                         sb=tb-1;
>                         while(sb>=(i+j+k*num_columns))
>                         {
>                           while(
>                               (Buttons[sb].action == NULL) &&
>                               (Buttons[sb].title == NULL) &&
>                               (Buttons[sb].icon_file == NULL) &&
>                               (Buttons[sb].IconWin == None) &&
>                               (Buttons[sb].iconPixmap == None) &&
>                               (Buttons[sb].icon_maskPixmap == None) &&
>                               (Buttons[sb].icon_w == 0) &&
>                               (Buttons[sb].icon_h == 0) &&
>                               (Buttons[sb].icon_depth == 0) &&
>                               (Buttons[sb].swallow == 0) &&
>                               (Buttons[sb].module == 0) &&
>                               (Buttons[sb].hangon == NULL) &&
>                               (Buttons[sb].up == 1) &&
>                               (Buttons[sb].BWidth == 0) &&
>                               (Buttons[sb].BHeight == 0)
>                               ) sb--; /* ignore already freed SourceBotton */
>                         Buttons[tb].action            = Buttons[sb].action;
>                         Buttons[tb].title             = Buttons[sb].title;
>                         Buttons[tb].icon_file         = Buttons[sb].icon_file;
>                         Buttons[tb].BWidth            = Buttons[sb].BWidth;
>                         Buttons[tb].BHeight           = Buttons[sb].BHeight;
>                         Buttons[tb].icon_w            = Buttons[sb].icon_w;
>                         Buttons[tb].icon_h            = Buttons[sb].icon_h;
>                         Buttons[tb].iconPixmap        = Buttons[sb].iconPixmap;
>                         Buttons[tb].icon_maskPixmap   = Buttons[sb].icon_maskPixmap;
>                         Buttons[tb].IconWin           = Buttons[sb].IconWin;
>                         Buttons[tb].hints             = Buttons[sb].hints;
>                         Buttons[tb].icon_depth        = Buttons[sb].icon_depth;
>                         Buttons[tb].hangon            = Buttons[sb].hangon;
>                         Buttons[tb].swallow           = Buttons[sb].swallow;
>                           tb--;
>                           while(
>                               (Buttons[tb].action == NULL) &&
>                               (Buttons[tb].title == NULL) &&
>                               (Buttons[tb].icon_file == NULL) &&
>                               (Buttons[tb].IconWin == None) &&
>                               (Buttons[tb].iconPixmap == None) &&
>                               (Buttons[tb].icon_maskPixmap == None) &&
>                               (Buttons[tb].icon_w == 0) &&
>                               (Buttons[tb].icon_h == 0) &&
>                               (Buttons[tb].icon_depth == 0) &&
>                               (Buttons[tb].swallow == 0) &&
>                               (Buttons[tb].module == 0) &&
>                               (Buttons[tb].hangon == NULL) &&
>                               (Buttons[tb].up == 1) &&
>                               (Buttons[tb].BWidth == 0) &&
>                               (Buttons[tb].BHeight == 0)
>                               ) tb--; /* ignore Targed_Botton if this is a freed one */
>                           sb--;
>                         }
>
> /* No follows the Original Code which frees the current Botton */
>
705,706c744
<
<
---
>
--
Visit the official FVWM web page at <URL:http://www.hpc.uh.edu/fvwm/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_hpc.uh.edu.
To report problems, send mail to fvwm-owner_at_hpc.uh.edu.
Received on Mon Feb 12 1996 - 16:05:31 GMT
This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:58 BST