Changeset 3211


Ignore:
Timestamp:
2002-07-04T10:01:23+12:00 (22 years ago)
Author:
sjboddie
Message:

Updated translate.pl to work with gimp-1.2

Location:
trunk/gsdl/bin/script
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/gsdl/bin/script/gimp/flash_button-1.2.pl

    r2634 r3211  
    243243    if ($whitespace) {
    244244    gimp_rect_select ($image, 0, 0, 1, $height, 0, 0, 0);
    245     gimp_edit_clear ($image, $backlayer);
     245    gimp_edit_clear ($backlayer);
    246246    gimp_selection_none ($image);
    247247    gimp_rect_select ($image, $width-1, 0, 1, $height, 0, 0, 0);
    248     gimp_edit_clear ($image, $backlayer);
     248    gimp_edit_clear ($backlayer);
    249249    gimp_selection_none ($image);
    250250    }
  • trunk/gsdl/bin/script/gimp/title_icon-1.2.pl

    r2634 r3211  
    250250    # clear the new layer
    251251    gimp_selection_all ($image);
    252     gimp_edit_clear ($image, $imagelayer);
     252    gimp_edit_clear ($imagelayer);
    253253    gimp_selection_none ($image);
    254254   
     
    287287        } else {
    288288            gimp_selection_all ($image);
    289             gimp_edit_clear ($image, $textlayer);
     289            gimp_edit_clear ($textlayer);
    290290            gimp_selection_none ($image);
    291291            $fsize --;
  • trunk/gsdl/bin/script/translate.pl

    r2299 r3211  
    3838}
    3939
    40 use Gimp;
     40use Gimp qw/:auto :DEFAULT/;
    4141use parsargv;
    4242use util;
     
    208208        $options .= " -fontsize 12 -height 20 -whitespace -image_dir $image_dir";
    209209    }
    210     `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button.pl $options`;
     210    `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`;
    211211
    212212    # get width of new images and edit width macro
     
    224224        $options .= " -foundry cronyx -fontname helvetica";
    225225    }
    226     `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button.pl $options`;
     226    `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`;
    227227
    228228    # generate green image
     
    233233        $options .= " -foundry cronyx -fontname helvetica";
    234234    }
    235     `$ENV{'GSDLHOME'}/bin/script/gimp/green_bar.pl $options`;
     235    `$ENV{'GSDLHOME'}/bin/script/gimp/green_bar-1.2.pl $options`;
    236236
    237237    # get width of new images and edit width macro
     
    247247        $options .= " -fontsize 8 -foundry cronyx -fontname helvetica";
    248248    }
    249     `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button.pl $options`;
     249    `$ENV{'GSDLHOME'}/bin/script/gimp/flash_button-1.2.pl $options`;
    250250
    251251    # get width of new images and edit width macro
     
    262262        $options .= " -foundry cronyx -fontname helvetica";
    263263    }
    264     `$ENV{'GSDLHOME'}/bin/script/gimp/green_bar.pl $options`;
     264    `$ENV{'GSDLHOME'}/bin/script/gimp/green_bar-1.2.pl $options`;
    265265
    266266    } elsif ($image_type eq "green_title") {
     
    278278        $options .= " -foundry cronyx -fontname helvetica";
    279279    }
    280     `$ENV{'GSDLHOME'}/bin/script/gimp/title_icon.pl $options`;
     280    `$ENV{'GSDLHOME'}/bin/script/gimp/title_icon-1.2.pl $options`;
    281281
    282282    # get width of resulting image and edit _width..._ macro in $image_macros
     
    353353}
    354354
    355 sub net {
    356   gsdl_translate;
    357 }
    358 
     355Gimp::on_net {   gsdl_translate; };
    359356exit main;
Note: See TracChangeset for help on using the changeset viewer.